Get a peek at our latest innovations at Sanity Product Day on Dec 8th β†’

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 Get the most out of your content is a platform to build websites and applications. It comes with great APIs that let you treat content like data. Free to get started, and pay-as-you-go on all plans. Find out more.