Skip to content

Your company

GET /api/org/usage

Copy page

What your company used, by day and by route.

GET /api/org/usage

Authentication: your key as a bearer token.

Query parameters

FieldTypeRequiredDefault
fromstringOptional
tostringOptional

Request

bash
curl 'https://api.darkcrawl.dev/api/org/usage?from=2026-11-25&to=2026-11-26' \
  -H "Authorization: Bearer $DARKCRAWL_API_KEY"

Response

Status 200.

Response
{
  "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

CodeStatus
BAD_REQUEST400
ORG_DISABLED403

What each code means, and what to do about it: Errors.

Notes

  • One row for each day and route with counted calls, and one ai row for a day with AI use. from and to are UTC dates, both included, and the range holds at most 90 days. Leave both out for the last 7 days, today included.
  • pages here are charged pages only. The row whose endpoint is ai is the day's AI use, in aiUsd.
  • The whole range comes in one reply, so next is always null.
  • 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.