How to identify the market of a product in Shopify using REST or GraphQL API

Hello all!!

There is a shopify plus store that have 2 markets in it. One for customers for United Kingdom and another for USA customers. All the products that are present in the store have been distributed in these UK and US markets. Some products are present for both the markets and there are products that are specific to US market and UK market.

My requirement is to prepare a list with only the products that have been included in the US market only and this I want to fetch using either REST Admin API or GraphQL API

I searched several tutorials and API guides but didn’t find any solution. Please can someone help me in this?

Thanks in advance.

Hey @AR77 ,

You can refer to our Markets developer overview where it details all the information related to Markets and you will find under Market Catalogs it references a developer document on how to query products that are only published in a specific country.

I hope that helps!

2 Likes

Thank you very much, have checked the links that you have shared. Hopefully the example given in this link Query whether a product is published in a given country will solve my problem, will give it a try.

Thanks again!!

Hello.

Can you please help with a graphql or rest api request to assign or publish a product to all available Markets?