spicrawlspicrawlDocs
Partner

One workspace's usage

Totals and one row per UTC day for a workspace of this partner.

Requires scope: partner

GET
/v1/partner/workspaces/{external_user_id}/usage

Totals and one row per UTC day for a workspace of this partner. A deleted workspace is not found.

Authorization

bearerAuth
AuthorizationBearer <token>

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

external_user_id*string
Match^[A-Za-z0-9._:-]{1,128}$
Lengthlength <= 128

Query Parameters

from?string
Formatdate
to?string

Exclusive.

Formatdate

Response 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": [    {}  ]}