API v2 subscription and credits usage
API credits status endpoint
API credits usage status
Check your subscription and remaining API credits at the dashboard or with the usage endpoint. Replace the API key placeholder with your key from your profile.
curl 'https://api.scrapingant.com/v2/usage?x-api-key=<YOUR_SCRAPINGANT_API_KEY>'
A successful request returns a JSON object. Example values:
{
"plan_name": "Enthusiast",
"start_date": "2022-01-11T00:00:00",
"end_date": "2022-02-11T00:00:00",
"plan_total_credits": 100000,
"remained_credits": 96740
}
| Field | Meaning |
|---|---|
plan_name | Active subscription plan name |
start_date / end_date | Active subscription period |
plan_total_credits | Total credits in the active subscription |
remained_credits | Credits remaining in the active subscription |
A missing API key returns HTTP 422; an invalid API key returns HTTP 403. Error responses contain a JSON detail string. See errors and credit costs for the related references.