Access denied via storefront API

Tourist
24 0 3

Hello, 

I recently started to play around with store fronts api to get some information on my store and my brothers store. My brothers api calling was working fine until yesterday when I tried accessing it I got "access denied." Has shopify changed its API's and Endpoints? I don't see anything on the change log. I would appreciate some help. It was working so well. Thank you

1 Like
Shopify Partner
1838 173 562

Hi, are you sure you or someone else have not changed the access scopes?

I turn coffee in to code - since 1998
0 Likes
Tourist
24 0 3
Well it worked with graphql until recently around like 4:30ish, I’m getting access denied. It appears that the graphql doesn’t work anymore or you need permission to do it now. I tried it on other stores as well the same thing happened.
0 Likes
Highlighted
Tourist
24 0 3
Instead of the graphql endpoint, what other Public api can I call to get the information I need?
0 Likes
Shopify Partner
1838 173 562

Storefront API definitely has not stopped working (which you can always check here) and there were no changes made recently that would affect the Storefront API in ways you describe. I can only guess that it must be something in the way you are calling the API or how your specific stores are configured for API use, but cannot tell what because you haven't provided many details either how your store's private app Storefront API access is configured or how you are querying the storefront i.e. what you're attempting to do.

 

Apart from Storefront API there are no public APIs to access store public data in such depth as is with the API. You can use AJAX API for the cart, you can use some of the theme's JS/JSON endpoints, but that's just about it.

I turn coffee in to code - since 1998
0 Likes
Tourist
24 0 3

I try and call my websites Store Front API and it says ACCESS DENIED. I have not changed anything meaning I did not change the access scopes. I have no idea what is going on. Myself along with others have had this problem and it began yesterday.

0 Likes
Tourist
24 0 3

Ok so shopify did change something with the store-front api I guess Ill need to do a quick fix. I have two questions.

 

Can we get products sorted by updated_date from products.json?

 

What happens when a website (like mine) doesn't give you access to the products.json page? Being shopify it has to have one, but how would I get it? Like my brothers site supports products.json but I cannot find a url, so my question is there any other way to find the products.json page even though it may appear "blocked" in a way. 

0 Likes
Shopify Partner
1838 173 562

Yeah, I saw the other thread where they did confirm some changes that weren't announced 😒 I guess the changelog page still isn't fully utilised within Shopify as it has only been added recently - something I hope will improve in time.

 

I am not aware of a way to sort the products.json endpoint on a store. You can page it, but that's just about it. Sorting would need to be done client side.

I turn coffee in to code - since 1998
0 Likes
Tourist
24 0 3
Can you specify? What do you mean page it? I really wish shopify didn’t change the graphql I just got it working 😓.
0 Likes
Shopify Partner
1838 173 562

I don't know the specifics of the change, but it appears to me it had something to do with public storefront access tokens being used to scrape stores.

 

As for products.json and paging I meant

/products.json?page=1

 etc.

I turn coffee in to code - since 1998
0 Likes