If you’re seeing an error like 403 Not Enough Credits when using the API, it usually means the request you’re sending is trying to use more credits than you currently have in your account.
Here’s how to troubleshoot and fix it.
1. Check Your page_size Setting
If you don’t explicitly set a page_size, the API defaults to 100 results per request. Depending on the endpoint you’re using, each result may cost multiple credits.
For example:
If your endpoint uses 3 credits per result and
Your page_size is 100 (the default)
Your request will attempt to use 300 credits (3 × 100)
If your balance is under 300 credits, this will trigger the Not Enough Credits error.
✅ Solution: Lower Your page_size
Adjust the page_size to match your available credits.
Example:
You have 120 credits
You’re using an endpoint that costs 3 credits per result
Set page_size=40 or lower
{
"page_size": 40
}
This keeps your request within the available balance.
Still Not Sure?
If you’re unsure whether the issue is related to your plan, API key, or a bug—no problem.
👉 Just send us a quick message using the chat icon in the bottom-right corner, and we’ll take a look and help you get it sorted.