Skip to content

Docs

Authentication

Send Authorization: Bearer YOUR_API_KEY. Create a key in the dashboard. The full key is shown only once.

Sending your API key

Pass your API key in the Authorization: Bearer <key> header (recommended) or x-api-key: <key>.

curl "https://api.ytapi.dev/v1/videos/dQw4w9WgXcQ" \
  -H "Authorization: Bearer yta_YOUR_KEY"

Key lifecycle & security

Keys are created in your dashboard, SHA-256 hashed at rest, and shown in full exactly once upon creation. Revoking a key takes effect immediately across all edge locations; requests with a revoked key receive 401 Unauthorized.