Guide
YouTube API Key Guide
Learn when you need a Google Cloud key and how Scority API keys work for transcript extraction.
Open →Authenticate Scority API requests with the x-api-key header from trusted server-side code.
Every request to the production Transcript API must include an API key in the x-api-key header.
curl "https://api.scority.ai/v1/youtube/transcript?video_id=dQw4w9WgXcQ" \
-H "x-api-key: YOUR_API_KEY"const response = await fetch(
"https://api.scority.ai/v1/youtube/transcript?video_id=dQw4w9WgXcQ",
{
headers: {
"x-api-key": process.env.SCORITY_API_KEY
}
}
)
const transcript = await response.json()import os
import requests
response = requests.get(
"https://api.scority.ai/v1/youtube/transcript",
params={"video_id": "dQw4w9WgXcQ"},
headers={"x-api-key": os.environ["SCORITY_API_KEY"]},
timeout=30,
)
transcript = response.json()If you are comparing Google YouTube API keys with Scority API keys, read the guide that separates official Google credentials from Scority x-api-key authentication.
Learn when you need a Google Cloud key and how Scority API keys work for transcript extraction.
Open →Inspect the x-api-key header definition in the machine-readable API contract.
Open →Learn when Google OAuth is required and when Scority x-api-key auth is enough.
Open →