
π Documentation & Examples
Everything you need to integrate with Supadata
π Quick Start Examples
// Supadata API Example
const response = await fetch('https://supadata.ai/', {
method: 'GET',
headers: {
'Content-Type': 'application/json'
}
});
const data = await response.json();
console.log(data);Web & YouTube to Text API for Makers
How to Get a Supadata API Key
- Create a free account at https://supadata.ai/ and open your dashboard.
- Copy your API key from the dashboard β no credit card required, takes a few seconds.
The free tier includes 100 credits per month; paid plans add more credits and higher limits (see https://supadata.ai/pricing). Authenticate by sending your key in the x-api-key header against the base URL https://api.supadata.ai/v1.
Get a YouTube transcript:
curl "https://api.supadata.ai/v1/youtube/transcript?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ" \
-H "x-api-key: YOUR_API_KEY"
Extract a web page as text:
curl "https://api.supadata.ai/v1/web/scrape?url=https://example.com" \
-H "x-api-key: YOUR_API_KEY"
Note the correct host is api.supadata.ai/v1 with the x-api-key header β not a Bearer token to supadata.ai/api/.... Each request spends credits from your monthly allotment, and a 401 response means the key is missing or invalid while a 429 means you've run out of credits or hit the rate limit. Other endpoints cover YouTube video/channel metadata, transcripts for arbitrary web video, and batch jobs. Full endpoint reference: https://docs.supadata.ai.
Turn URLs and YouTube Videos into Structured Data
Skip the hassle of video transcription and data scraping. With our powerful API, you can effortlessly convert web pages and YouTube videos into structured, machine-readable text, enabling seamless integration into your software and AI products.
Why Use This API?
Using our API provides several key benefits:
- Fast and Accurate β Extract text from web pages and YouTube videos quickly with high accuracy.
- Enhance AI Models β Improve your machine learning and AI projects with structured data.
- Save Development Time β Automate the transcription and data extraction process instead of manual scraping.
- Scalable Solution β Handle large volumes of requests efficiently with our API.
- Easy Integration β Simple API endpoints that work seamlessly with your existing tech stack.
Example Usage (JavaScript)
const fetch = require('node-fetch');
async function extractTextFromURL(url) {
const response = await fetch('https://supadata.ai/api/extract', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': 'Bearer YOUR_API_KEY'
},
body: JSON.stringify({ url })
});
const data = await response.json();
console.log(data);
}
extractTextFromURL('https://example.com');
Get Started
Start extracting structured text today! Learn more at Supadata.ai.






