Method
account.usage
Usage per day and method.
Details
- Endpoint
- GET /v0/account/usage
- Credits
- Free
- Rate class
- Light. Counts against your light requests per second.
Returns calls and credits per day and per method for the signed-in account, newest day first. Defaults to the last 30 days; pass `from` and `to` as YYYY-MM-DD (UTC, inclusive) for another range, or `key` to see one key. Recent calls show within about 5 seconds.
Parameters
| Name | Type | Description |
|---|---|---|
| from | string | First day, YYYY-MM-DD (UTC). Default 30 days ago. |
| to | string | Last day, YYYY-MM-DD (UTC). Default today. |
| key | string | Only this key id. |
Request
Send your key in the x-api-key header, or leave it out to use the keyless tier.
curl
curl "https://api.tide.ad/v0/account/usage?from=2026-11-01&to=2026-11-03" \
-H "x-api-key: YOUR_API_KEY"TypeScript
const res = await fetch("https://api.tide.ad/v0/account/usage?from=2026-11-01&to=2026-11-03", {
headers: {
"x-api-key": process.env.TIDE_API_KEY!,
},
});
const data = await res.json();Response
JSON
{
"from": "2026-11-01",
"to": "2026-11-03",
"items": [
{
"day": "2026-11-03",
"method": "getAsset",
"calls": 120,
"credits": 240
}
],
"totals": {
"calls": 120,
"credits": 240
}
}