See Sanity in action πŸ‘€ Join us for a live product demo + Q&A β†’

API CDN - Over 1 Million API Calls in 48 Hours

1 replies
Last updated: Feb 24, 2021
Hi, total newb here. I recently got a notification that I exceeded my API CDN request limit. I checked my usage, and sure enough, I went over 1 million API calls within a timeframe of about 48 hours.
For reference, I built my site with React, and hosted it on Netlify, and set it up to deploy the site when I merge to the 'master' branch on my GitHub repo. My website is pretty small -> only 7 documents. I am looking for advice on how to go about finding the source of all these API calls
πŸ™. Thanks!
Feb 22, 2021, 11:12β€―PM
UPDATE: I solved it; A
that was fetching content from Sanity didn't have the optional 'skip' parameter, which caused an infinite loop πŸ€¦β€β™‚οΈ. Leave that running for a day, and you will exceed 1,000,000 API callsπŸ’₯.
Feb 24, 2021, 4:53β€―AM – build remarkable experiences at scale

Sanity is a customizable solution that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.