YouTube Data API AI-ready video metadata.
FlashData's YouTube Data API returns video metadata, existing captions with timestamps, search results and channel details as JSON. Use Bulk jobs to retrieve metadata and captions for a file of video IDs.
Try up to 4,000 standard YouTube requests for free.
No credit card required.Trial details
API playground
API PLAYGROUND
{"results": [{"results": [{"thumbnails": [{},{}]},{results[0].results[0].title↔ result- YouTube data sources
- 8
- Extended Search requested results
- Up to 700
- Trace text to the video
- Timestamps
START WITH YOUR TASK
Which YouTube API do you need?
Start with what you have and the result you want. Each source below links to its request parameters and response example.
Scroll horizontally to compare all columns →
| Your task | Start with | Choose this API | What to expect |
|---|---|---|---|
| Find videos, channels or playlists | Search query | youtube_search | Request 1–20 results. Uses the standard YouTube Data rate. |
| Search a larger collection | Search query | youtube_search_extended | Request 1–700 results. Separate Extended Search rate; availability determines the returned count. |
| Read video details | Video ID | youtube_metadata | Title, description, engagement and optional chapters or formats. |
| Get existing subtitle text | Video ID + language | youtube_transcriptyoutube_captions | Transcript defaults to automatic captions; Captions defaults to uploader-provided tracks. Neither creates a transcription or translation. |
| Explore a channel | Channel handle | youtube_channel | Channel profile and recent videos. |
| Suggest search terms | Search query | youtube_suggestions | Autocomplete suggestions, with language and region options. |
| Classify the video license | Video ID | youtube_trainability | Checks the Creative Commons license label. Does not establish model-training permission. |
Standard YouTube Data
$0.50 / 1,000 requests · Pay as you go
Includes Search, Metadata, Transcripts, Captions, Channels, Suggestions and License Check.
Extended Search
$2.50 / 1,000 requests · Estimated Pay as you go
For broader discovery, up to 700 requested results. Uses a separate rate from standard YouTube Data. The estimate comes from the public source catalog; check your account’s source rate before running a large workload.
Extended Search detailsWHY YOUTUBE DATA API
Video search, transcripts and bulk processing.
Search filters.
Search by keyword, refine by upload date, duration or other filters, and request up to 700 results with Extended Search. Returned counts depend on availability.
Captions with timestamps.
Retrieve available captions with timestamps so readers can return to the relevant part of a video. Add titles, channel details and available chapters to your records.
Bulk metadata and transcripts.
Upload a list of video IDs to process metadata, transcripts, captions or license checks with Bulk jobs. Track the collection’s progress and retrieve its results together.
FEATURES
Eight YouTube data sources.
Find relevant videos, explore their details and retrieve the text available on YouTube.
YouTube transcript APIs: existing captions or speech-to-text
Search
Find videos, channels and playlists with filters for your research.
API referenceExtended Search
Request up to 700 results when you need to explore a larger collection.
API referenceVideo metadata
Read titles, descriptions, engagement and available chapters and formats.
API referenceTranscripts
Retrieve available text with timestamps. Defaults to YouTube’s automatic captions.
API referenceCaptions
Request a language and caption source. Defaults to uploader-provided captions.
API referenceChannels
Look up a channel by handle and get its profile and recent videos.
API referenceSearch suggestions
Get autocomplete suggestions for a query, language and region.
API referenceLicense check
Check whether a video’s license is identified as Creative Commons.
API referenceUSE CASES
Applications for video data.
Video knowledge bases
Index available transcripts with video IDs and timestamps so users can find passages and return to the source.
Content & channel research
Combine search, channel information and video metadata to organize a collection or study published content.
AI application context
Feed retrieved text and metadata into your own summarization, question-answering or research workflow.
GET STARTED
How to retrieve YouTube data.
- 01
Find your source
Search for videos or start with a known video ID. Use a channel handle when exploring a creator’s recent videos.
- 02
Choose the data
Request metadata or an available transcript. Select the language and whether to use automatic or uploader-provided captions.
- 03
Use the results
Index text with timestamps, enrich your video library or use the retrieved data in your own AI application.
EXAMPLE REQUESTRealtime
Python 3 · requests
python3 -m pip install requestsimport json
import requests
api_key = "YOUR_API_KEY"
payload = {
"source": "youtube_transcript",
"video_id": "dQw4w9WgXcQ",
"params": {
"language": "en",
"auto": True,
},
}
response = requests.post(
"https://data.flashdata.dev/v1/queries/realtime",
headers={"X-API-Key": api_key},
json=payload,
timeout=120,
)
response.raise_for_status()
print(json.dumps(response.json(), ensure_ascii=False, indent=2))Replace YOUR_API_KEY near the top of the example. Keep real keys out of source control.
USAGE PRICING
YouTube Data API
pricing.
The rate shown applies to all YouTube Data APIs except Extended Search, which has its own rate. Each query in a batch is billed separately.
Shared Credits across Google and YouTube APIs.From$0.20per 1,000 standard requestsUSD · Business plan · Subscription required · $1,999.00 / monthCompare all plans
How do I start my free trial?
Create an account and verify your email. Eligible accounts receive trial Credits automatically. View your balance in account overview. No credit card is required.
How is the trial allowance shared?
One shared trial balance covers Google Search, YouTube Data and downloads. This estimate uses current Pay as you go rates for this product. This estimate covers standard YouTube Data requests. Extended Search has a separate, higher rate. Check your balance in the console.
What does the starting price require?
The starting usage rate is $0.20 per 1,000 standard requests on the Business plan. This rate requires a subscription costing $1,999.00 / month; the plan includes 40,000 Credits per billing period. Usage consumes Credits, and additional top-ups are charged separately. The rate shown applies to all YouTube Data APIs except Extended Search, which has its own rate. Each query in a batch is billed separately.
Current prices and plan limitsWhat is FlashData's YouTube Data API?
Retrieve YouTube search results, video metadata, existing captions, channel details, suggestions and license information. Responses default to JSON. Standard sources share your plan's YouTube Data rate; Extended Search has a separate rate.
Read the referenceCan you transcribe a video that has no captions?
No. FlashData retrieves existing YouTube captions; it does not transcribe audio or create translations. Choose a language and automatic or uploader-provided captions. If that selection is unavailable, you’ll need to request another available track.
How do I get YouTube transcripts in a specific language?
Send the video ID to youtube_transcript with params.language set to a language code, or an array of up to 10 distinct codes. Set params.auto to true for automatic captions or false for uploader-provided captions. Results contain available caption text with timestamps; FlashData does not create translations.
Read the referenceCan I get YouTube video metadata without downloading the video?
Yes. Send the video ID to youtube_metadata to retrieve the title, description, channel information, engagement and available chapters. This returns metadata without creating a media download job or requiring cloud storage.
Read the referenceCan I choose JSON, plain text or Markdown?
Yes. JSON is the default. Choose plain text or Markdown in the playground, or use the response headers in your API request. See the guide for examples.
Read the referenceDoes Extended Search always return 700 results?
No. You can request up to 700 results, but the actual count depends on the query, filters and available results. Standard Search accepts up to 20 results. Extended Search has its own rate.
Can I get YouTube transcripts and metadata for a list of video IDs?
Yes. Upload a text file of video IDs to retrieve metadata, transcripts, captions or license checks with a Bulk job. For search, channels and suggestions, use individual requests or submit a regular batch.
Read the referenceDoes the license check confirm I can train a model?
No. It checks whether a video’s license is identified as Creative Commons. It does not retrieve YouTube’s separate training permissions or confirm permission for your intended use.
Is FlashData the official YouTube Data API?
FlashData is a separate service with its own API key, request schemas, billing and response formats. The official YouTube Data API is Google's service for YouTube resources and authorized account operations. Choose according to the data and operations your application requires.
Read the referenceWhich sources accept a Bulk file?
File-based Bulk supports video metadata, transcripts, captions and license checks, as well as media downloads. Search, Extended Search, channels and suggestions use individual requests or regular batches. Bulk takes one video ID per line and admits work within your plan's limits.
Read the referenceAccess the YouTube Data API.
Verify your email to receive trial Credits if eligible. No credit card required.