1. [Help center](/academy/help.txt) 2. [APIs](/academy/help/apis.txt) 3. [API Endpoints](/academy/help/api-endpoints.txt) # 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](https://app.ocean.io/docs/getCreditUsage), 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?](/academy/help/articles/managing-your-api-token.txt)) `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. Choose `hour`, `day`, `week` or `month`. 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 days * `day`: 366 days * `week`: 732 days * `month`: 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. ## On this page * [Use case](#use-case) * [Step-by-step guide](#step-by-step-guide) * [What you get back](#what-you-get-back) * [How far back can I look?](#how-far-back-can-i-look)