Quickstart
API key to first transcript in under 2 minutes
1
Register
Send your email to create an account and trigger a verification email:
Terminal
$ curl -X POST https://2outube.com/api/v1/register \
-H "Content-Type: application/json" \
-d '{"email": "you@example.com"}'
Response
{
"success": true,
"message": "Verification email sent. Check your inbox."
}
2
Verify your email
Click the verification link in your inbox. You'll receive your API key in the JSON response:
Response after clicking verification link
{
"success": true,
"api_key": "2yt_abc123...",
"credits": 200,
"plan": "free"
}
Save your API key. It is only shown once. If you lose it, use the
/api/v1/rotate-key endpoint to generate a new one.
3
Fetch a transcript
Pass your API key in the Authorization header and provide a video_id:
Terminal
$ curl -H "Authorization: Bearer YOUR_API_KEY" \
"https://2outube.com/api/v1/transcript?video_id=dQw4w9WgXcQ"
Response
{
"video_id": "dQw4w9WgXcQ",
"title": "Rick Astley - Never Gonna Give You Up",
"language": "en",
"segments": [
{
"text": "We're no strangers to love",
"start": 18.0,
"duration": 3.12
},
{
"text": "You know the rules and so do I",
"start": 21.12,
"duration": 3.48
}
]
}
Python example
Python
import requests
API_KEY = "2yt_your_key_here"
VIDEO_ID = "dQw4w9WgXcQ"
response = requests.get(
"https://2outube.com/api/v1/transcript",
params={"video_id": VIDEO_ID},
headers={"Authorization": f"Bearer {API_KEY}"}
)
data = response.json()
for segment in data["segments"]:
print(f"[{segment['start']:.1f}s] {segment['text']}")
JavaScript example
JavaScript
const apiKey = "2yt_your_key_here";
const videoId = "dQw4w9WgXcQ";
const response = await fetch(
`https://2outube.com/api/v1/transcript?video_id=${videoId}`,
{ headers: { Authorization: `Bearer ${apiKey}` } }
);
const data = await response.json();
data.segments.forEach(seg =>
console.log(`[${seg.start.toFixed(1)}s] ${seg.text}`)
);
What's next?
Explore the full API capabilities