Issue with API requests being called repeatedly in Next.js project.
It sounds like you're seeing a limit of 7,000 requests per day when checking your API usage. This is likely related to Sanity's usage quotas, which vary by plan. Let me break down what this might mean:
Understanding Your API Request Limits
The 7,000 requests/day figure isn't explicitly mentioned in Sanity's current technical limits documentation, but here's what you should know:
Rate Limits vs. Quota Limits
Sanity has two types of limits:
Rate limits (per second) - These are enforced per IP address:
- Maximum global API call rate: 500 req/s
- Maximum mutation rate: 25 req/s
- Maximum concurrent queries: 500
Monthly quotas - These vary by plan and are what you're likely seeing
Plan-Based Quotas
Your monthly API request quota depends on your plan:
- Free Plan: Limited monthly API requests (the exact limit varies)
- Growth Plan: Higher included limits with pay-as-you-go for overages
- Enterprise Plan: Custom quotas
The Growth Plan pricing page mentions that you can add an "Increased Quota" add-on for $299/month that extends limits to 1M API requests per month (which would be roughly 33,000 per day).
What You Should Do
- Check your project dashboard at sanity.io/manage to see your current plan and usage details
- Review your API usage patterns - 7,000 requests/day might be sufficient for many use cases, but if you're hitting limits:
- Implement caching on your frontend
- Use the API CDN which has unlimited cached requests
- Consider upgrading to Growth plan if you need more capacity
- Optimize your queries - Make sure you're not making unnecessary API calls
If you're on the Free plan and need more requests, you can add a credit card to pay for overages, or upgrade to the Growth plan for higher included limits.
Sanity – Build the way you think, not the way your CMS thinks
Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.