Can't see rate limit header in Admin API response

claymazing
Tourist
6 0 7

I am trying to figure out if our website is nearing the API call limit for certain Apps.  I have a private app which uses the Admin API so according to the documentation here https://shopify.dev/concepts/about-apis/rate-limits I would have thought that in the response I received I would have seen header X-Shopify-Shop-Api-Call-Limit however the response does not contain this header anywhere that I can see.  The headers I receive are:

 

Date
Content-Type
Transfer-Encoding
Connection
X-Sorting-Hat-PodId
X-Sorting-Hat-ShopId
Vary
Referrer-Policy
X-Frame-Options
X-ShopId
X-ShardId
Cache-Control
Content-Language
X-Shopify-Login-Required
Shopify-Auth-Mechanisms
Strict-Transport-Security
Set-Cookie
X-Shopify-Stage
Content-Security-Policy
X-Content-Type-Options
X-Download-Options
X-Permitted-Cross-Domain-Policies
X-XSS-Protection
X-Dc
Content-Encoding
NEL
Report-To
X-Request-ID
CF-Cache-Status
cf-request-id
Expect-CT
Server
CF-RAY
alt-svc

 

 

None of which seem to have any information about rate limiting.  Am I missing something?  If it matters I am making my API calls from a Python 3 Private app like so:

 

headers = {"X-Shopify-Access-Token" :"MY_PRIVATE_APP_PASSWORD"}
res = requests.get("https://mysitename.myshopify.com/admin/orders/SPECIFIC_ORDER_ID)

 

 

Replies 2 (2)

stevenkuang
Visitor
1 0 0

I am having the same problem, I can't find X-Shopify-Shop-Api-Call-Limit anywhere in my header. The header I received back is similar to your. Let me know if anyone figures out why this is happening

claymazing
Tourist
6 0 7

@stevenkuang  (and anybody else with a similar issue).  The solution that worked for me was to make the API call using Postman.  There's a tutorial for how here (https://shopify.dev/tutorials/debug-apps-with-postman-for-mac-os).  You don't have to have a Mac despite what the link says.  It's also worth noting that I had to download the desktop version rather than using the browser version since my API calls would otherwise be blocked by CORS policy.