YouTube API

YouTube data.
Find the story behind the views.

Search videos, follow channel uploads, and read transcripts and comments. Choose player details or expanded video context for your tools.

PUT IT TO WORK

What will you build?

Three ways to use YouTube data.

Plan your next video

Search a topic, compare the videos around it, and find an angle worth covering.

Read what viewers ask

Pull comments into a research sheet. Spot the questions that keep coming up.

Make videos searchable

Use timestamped captions to build a transcript index that points readers back to the video.

YOUR FIRST REQUEST

Search YouTube.

Find videos about home espresso. Change the query to your own topic, then use the results in a research sheet or content brief.

  1. 01
    Add your API key

    Set SCRAPEATLAS_API_KEY in your environment.

  2. 02
    Choose your input

    Use the sample request as a starting point.

  3. 03
    Work with the JSON

    Send the result to your app, sheet or research tool.

Request and response fields
QUICKSTART / API EXAMPLES
# ScrapeAtlas · use your customer API key
export BASE_URL="https://api.scrapeatlas.com"

curl --get "$BASE_URL/v1/youtube/search" \
  -H "x-api-key: $SCRAPEATLAS_API_KEY" \
  --data-urlencode "query=home espresso" \
  --data-urlencode "type=videos"
GET/v1/youtube/searchJSON response

Use your ScrapeAtlas API key. Replace the sample input with your own.

GETTING STARTED

A few practical details.

API key setup
How do I make a request?

Create a ScrapeAtlas API key, send it in the x-api-key header, and pass the endpoint’s request fields. The example above is ready to adapt to your own input.

What does the response contain?

Search videos, follow channel uploads, and read transcripts and comments. Choose player details or expanded video context for your tools. Each endpoint’s reference shows its response fields and a JSON example.

Can I use this from an AI assistant?

Yes. Connect ScrapeAtlas through MCP to use YouTube tools from your assistant. You can also call the same API from your own scripts or the CLI.