Appearance
Get request history
GET /v1/account/get-api-usage
Returns a paginated list of your API requests, including the endpoint called, status code, credits used, and timestamp. Useful for debugging and monitoring your API usage. Supports filtering by endpoint name and status code.
Authentication
All requests require the x-api-key header. Get your key at scrapecreators.com.
Query Parameters
| Name | Type | Required | Description | Example |
|---|---|---|---|---|
page | string | no | Page number for pagination (max 100) | 1 |
endpoint | string | no | Filter by endpoint name (partial match) | /v1/tiktok/profile |
statusCode | string | no | Filter by HTTP status code | 200 |
Example Request
curl
bash
curl 'https://api.scrapecreators.com/v1/account/get-api-usage' \
-H 'x-api-key: $SCRAPECREATORS_API_KEY'Node / TypeScript
js
const params = new URLSearchParams({ });
const res = await fetch(`https://api.scrapecreators.com/v1/account/get-api-usage?${params}`, {
headers: { 'x-api-key': process.env.SCRAPECREATORS_API_KEY }
});
const data = await res.json();
console.log(data);Python
python
import os, requests
r = requests.get(
'https://api.scrapecreators.com/v1/account/get-api-usage',
headers={'x-api-key': os.environ['SCRAPECREATORS_API_KEY']},
params={},
)
r.raise_for_status()
print(r.json())CLI
bash
scrapecreators account get-api-usage --helpExample Response
json
[
{
"id": "00000000-0000-0000-0000-000000000000",
"endpoint": "/v1/tiktok/profile?handle=stoolpresidente",
"status_code": 200,
"duration_ms": 762,
"success": true,
"response_time": "2026-04-15T11:21:31.513+00:00",
"request_time": "2026-04-15T11:21:30.754+00:00",
"request_payload": {
"handle": "stoolpresidente"
},
"http_method": "GET",
"created_at": "2026-04-15T11:22:10.556302+00:00",
"duration_secs": 1,
"credits": 1
}
]Credits
Most ScrapeCreators endpoints consume 1 credit per successful response. Some heavier endpoints (transcripts, AI-driven enrichment, ad detail lookups) may cost more. Check GET /v1/credit-balance for your remaining balance.
Errors
| Status | Meaning | Action |
|---|---|---|
| 200 | Success. | Use the JSON payload. |
| 400 | Invalid or missing parameter. | Verify required parameters and value format. |
| 401 | Missing or invalid x-api-key. | Pass a valid API key in the header. |
| 402 | Out of credits. | Top up at scrapecreators.com or wait for plan reset. |
| 404 | Resource not found or private. | Confirm the handle, URL, or id and that the resource is public. |
| 429 | Rate limited. | Backoff and retry with exponential delay. |
| 500 | Server error or upstream platform failure. | Retry with backoff; report persistent errors to support. |