Which API endpoint can I get Country/Region and State like the image below?

Shopify Partner
1 0 0



I am developing the creating customer address feature in my Storefront, and I need to figure out how to get the Country and State list. Please help me.

I don't want to use Admin API (will get CORS error on Client side), because I just want to fetch it on Client side 


Reply 1 (1)

Shopify Staff
2731 297 768

Hi DevNhaX,


Based on this GitHub discussion, it does look like you can access the countries that a store ships to by querying the `shipsToCountries` field on the `shop` top-level resource of the Storefront API. The result of this query would be a JSON object containing a list of countries that the shop ships to, so this list could be useful for populating a dropdown list of countries in an address form.


Hope this helps! 

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog