App reviews, troubleshooting, and recommendations
Is it possible to call store front API when my store is in development?
This is my query:
url = f'https://{self.STORE_NAME}.myshopify.com/admin/api/2024-01/graphql.json'
query = '''{
products(first: 3,after: null) {
pageInfo {
endCursor
startCursor
}
edges {
node {
id
title
variants(first: 250) {
edges {
node {
id
title
availableForSale
}
}
}
}
}
}
}
'''
headers = {
'X-Shopify-Storefront-Access-Token': self.STORE_TOKEN,
'Content-Type': 'application/graphql',
}
response = requests.post(url, data=query, headers=headers)
It return this error:
{"errors":"[API] Invalid API key or access token (unrecognized login or wrong password)"}
I triple check the access tokens, I try the public and the private, check all scope permissions, but it not work.
Solved! Go to the solution
This is an accepted solution.
This is an accepted solution.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025