# GET /api/org/usage

> What your company used, by day and by route.

GET `/api/org/usage`

**Authentication:** your key as a [bearer token](https://darkcrawl.dev/docs/api-reference/authentication/).

## Query parameters

| Field  | Type     | Required | Default |
| ------ | -------- | -------- | ------- |
| `from` | `string` | Optional |         |
| `to`   | `string` | Optional |         |

## Request

**curl**

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

**Python**

```python
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())
```

**Node**

```javascript
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`.

```json
{
  "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](https://darkcrawl.dev/docs/api-reference/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`.
