One workspace's usage
Totals and one row per UTC day for a workspace of this partner.
Requires scope: partner
Totals and one row per UTC day for a workspace of this partner. A deleted workspace is not found.
Authorization
bearerAuth Authorization: Bearer <key>. Read the key from the SPICRAWL_API_KEY environment
variable; never hard-code or log it. spicrawl_test_… keys can never spend live
credits. Scopes: scrape, batch, sessions (granted by default), browser
and read (granted deliberately), and partner (only on a partner account's key).
A missing scope is 403 ERR::AUTH::INSUFFICIENT_SCOPE naming the scope.
In: header
Path Parameters
^[A-Za-z0-9._:-]{1,128}$length <= 128Query Parameters
dateExclusive.
dateResponse Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://example.com/v1/partner/workspaces/string/usage"{ "external_user_id": "string", "period": {}, "totals": { "requests": 0, "requests_failed": 0, "credits_micro": 0, "credits_wallet_micro": 0, "credits_own_micro": 0 }, "rows": [ {} ]}The partner's usage across its workspaces GET
Usage summed over the partner's child workspaces. `group_by=day` gives one row per UTC day; `group_by=workspace` gives one row per workspace, named by `external_user_id`, and pages it.
The partner balance GET
The partner's ACCOUNT credits for the current monthly window: the same credits its own requests use.