Get Credit Usage API Endpoint
Use POST /v2/credits/usage to see how many credits your API calls used, by endpoint and period.
Updated November 24, 2026
With the Get Credit Usage API Endpoint, you can see how many credits your API calls have used, split by endpoint and by time period.
Use case
An example use case is reporting. You can pull your API credit usage into your own dashboard or invoice check, for example to see which endpoint uses the most credits each week.
This endpoint only counts calls to the REST API. It does not include usage from MCP or from the ocean.io app.
Step-by-step guide
Here's a step-by-step guide to make an API call to the Get Credit Usage API Endpoint, using Postman.
Click on + in your workspace to add a new call.
Ensure the request type is set to POST
Copy and paste the link below into the Enter URL or paste text field, where you replace XXX with your API token (need help to find your API token?)
https://api.ocean.io/v2/credits/usage?apiToken=XXX
Ensure you add Content-Type: application/json in your Headers.
In the Body, tell the endpoint which dates and which period size you want. Below is an example:
{
"startDate": "2026-11-01",
"endDate": "2026-11-10",
"granularity": "day"
}
startDate(required): the first day to include.endDate(optional): the last day to include. If you leave it out, it is today.granularity(required): the size of each period. Choosehour,day,weekormonth.
Both dates are included in the result. The endDate cannot be before the startDate.
Ensure you choose JSON in the Body, before hitting Send and make your call.
What you get back
You get a list called usage. Each item in the list has three fields:
periodStart: when the period starts.endpoint: the API endpoint that used the credits.credits: the credits that endpoint used in that period.
Below is an example:
{
"usage": [
{
"periodStart": "2026-11-01T00:00:00",
"endpoint": "/v2/reveal/emails",
"credits": 12
}
]
}
How far back can I look?
The longest range between startDate and endDate depends on the granularity:
hour: 31 daysday: 366 daysweek: 732 daysmonth: 1,830 days
If the range is too long, you get a 400 error that says "Date range too large". Pick a bigger granularity or split the range into smaller calls.
Credit usage: Calling this endpoint is free. It is limited to 10 requests per minute and 200 requests per day for your organization.