Get Shared Catalog data by id programmatically Magento 2.

Shared Catalog is the native functionality of B2B Magento Commerce. Magento gives you the ability to maintain shared catalogs with the custom pricing structure for different companies. A Public Default(General) Catalog will be available native with Magento B2B.

You can get Shared Catalog data by shared catalog id using programmatically.
Magento\SharedCatalog\Api\SharedCatalogRepositoryInterface Interface used to get,delete and save  Shared catalog data related stuff. Get Shared Catalog data by Customer group id Magento 2.

Call function like,

$sharedCatalog = $this->getSharedCatalog();
echo “<pre>”;print_r($sharedCatalog->debug());exit;

You can get the result of shared catalog data by id as below,

Result will give the info about shared catalog details like name, assigned customer group id, type is 1 for public catalog and 0 for custom catalog.