Your company
GET /api/org/usage
Copy page
What your company used, by day and by route.
GET /
Authentication: your key as a bearer token.
Query parameters
| Field | Type | Required | Default |
|---|---|---|---|
from | string | Optional | |
to | string | Optional |
Request
curl 'https://api.darkcrawl.dev/api/org/usage?from=2026-11-25&to=2026-11-26' \
-H "Authorization: Bearer $DARKCRAWL_API_KEY"import os
import requests
resp = requests.get(
"https://api.darkcrawl.dev/api/org/usage?from=2026-11-25&to=2026-11-26",
headers={"Authorization": "Bearer " + os.environ["DARKCRAWL_API_KEY"]},
timeout=330,
)
print(resp.json())const resp = await fetch("https://api.darkcrawl.dev/api/org/usage?from=2026-11-25&to=2026-11-26", {
headers: {
Authorization: "Bearer " + process.env.DARKCRAWL_API_KEY,
},
signal: AbortSignal.timeout(330000),
});
console.log(await resp.json());Response
Status 200.
{
"success": true,
"data": [
{
"day": "2026-11-25",
"endpoint": "POST /v2/crawl",
"requests": 12,
"pages": 72,
"aiUsd": 0,
"agentRuns": 0
},
{
"day": "2026-11-25",
"endpoint": "POST /v2/scrape",
"requests": 3,
"pages": 21,
"aiUsd": 0,
"agentRuns": 0
},
{
"day": "2026-11-25",
"endpoint": "ai",
"requests": 0,
"pages": 0,
"aiUsd": 0.31,
"agentRuns": 0
},
{
"day": "2026-11-26",
"endpoint": "POST /v2/scrape",
"requests": 3,
"pages": 18,
"aiUsd": 0,
"agentRuns": 0
},
{
"day": "2026-11-26",
"endpoint": "POST /v2/search",
"requests": 1,
"pages": 1,
"aiUsd": 0,
"agentRuns": 0
}
],
"next": null
}Errors
| Code | Status |
|---|---|
BAD_REQUEST | 400 |
ORG_DISABLED | 403 |
What each code means, and what to do about it: Errors.
Notes
- One row for each day and route with counted calls, and one
airow for a day with AI use.fromandtoare UTC dates, both included, and the range holds at most 90 days. Leave both out for the last 7 days, today included. pageshere are charged pages only. The row whoseendpointisaiis the day's AI use, inaiUsd.- The whole range comes in one reply, so
nextis alwaysnull. - Not counted against your plan's request limits, but still rate-limited per key. Answered while your company is suspended or its trial has ended. A disabled company gets
403 ORG_DISABLED.