Usage breakdown
spicrawl_usageBilling-grade usage for your org over a date window, from the daily rollup (usage_daily), grouped by day, project, engine, feature or key. group_by=key returns per API key (key_id, name, prefix, project_id) counters per metric per day, from usage_key_daily; keyless (dashboard) usage is not in it, and a project-scoped key sees only its own project's keys. Use it to answer 'how many requests/credits did I use, and where'. The window defaults to the last 30 days including today; to is EXCLUSIVE (a single day 2026-08-01 is from=2026-08-01, to=2026-08-02) and the window may not exceed 400 days. The response carries stale_seconds (age of the newest rollup row; null when the window is empty). Requires the key to have the read scope.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | EXCLUSIVE end date, YYYY-MM-DD (UTC). Default: tomorrow, so today is included. | |
| from | No | Inclusive start date, YYYY-MM-DD (UTC). Default: 29 days before today. | |
| metrics | No | Metrics to return. Omit for all of them. | |
| group_by | No | How to group the rows. Default 'day'. | |
| project_id | No | Restrict to one project id (must be a valid Spicrawl identifier). |