Getting started
Authentication
Every request except /v1/services needs an API key.
Sending the key#
Send the key as a bearer token in the Authorization header. The x-api-key header works too.
Authorization: Bearer $CRAWLFETCH_KEY
Scopes#
Each key carries scopes. A key without the scope an endpoint needs gets 403 insufficient_scope.
| scope | endpoints |
|---|---|
| resolve | GET /v1/youtube, /v1/tiktok, /v1/instagram, /v1/resolve |
| formats | GET /v1/<service>/formats, /v1/formats |
| usage:read | GET /v1/usage |
Live and test keys#
Live keys start with gc_live_ and test keys with gc_test_. Both spend credits; the prefix helps you keep environments apart.
Rotating a key#
Create a new key in API keys, deploy it, then revoke the old one. A revoked key stops working immediately.
If a key leaks
Revoke it in the dashboard straight away and email [email protected] if you see charges you did not make.