Signup comes with $1 in credit. No subscription needed.Claim your $1

Tools / YouTube / API

Pull a YouTube channel's videos into Python with one API call

Instead of a youtube-scraper package or the YouTube Data API and its quota, a Python script can POST social.posts with platform youtube and the channel handle to the RouterGrowth API. The JSON lists the channel's videos with link, upload date, views, likes, comment count and description.

Real run: 6 records $0.00525 per post social.posts MCP · REST · CLI

Ask your agent

Write a Python script that reads the last ten uploads of five design tool channels and charts views per video.

Connect RouterGrowth once, then ask in plain words. New workspaces start with $1 of credit. Get a key or read the setup guide.

A real run

What does it return?

One call to social.posts (social posts & content), run through RouterGrowth on October 19, 2026. These are the first rows it returned; fields that name a person are masked.

6records returned
52.9 sto answer
$0.0315charged for the run
urlcreated_atviewslikesreplies
https://www.youtube.com/watch?v=Sdh_I7PSuew2026-10-151949614917
https://www.youtube.com/watch?v=ThXrNXxpS-o2026-10-179023742
https://www.youtube.com/watch?v=WEJ2cZBT3PA2026-10-177752450

Six videos from Figma's channel, all from the week of the run, with views from about 6,000 to 34,000.

Step by step

How do you do it?

  1. Store the key

    Set ROUTERGROWTH_API_KEY in the environment and send it as a Bearer token.

  2. POST the run

    Send capability social.posts, input platform youtube, handle @figma and a limit to /v1/run.

  3. Wait for the result

    A channel read can take under a minute; this one took about 53 seconds. Poll the run id if your script should not block.

  4. Use the list

    result.posts holds one dict per video with url, text, created_at and engagement.

Price

What does it cost?

List prices on YouTube, read from the catalog when this page was built. The exact figure is quoted before every run, and a monthly plan lowers it.

$0.00525per post
$0.002minimum for a call that returns results
$0when the call finds nothing

In practice

What do you ask it?

You describe the job; the agent picks the calls, shows the price and runs them.

Write a Python script that reads the last ten uploads of five design tool channels and charts views per video.

From Python, get Figma's newest videos and then the comments under the one with the most views.

Connect

How do you connect it?

One MCP server for Claude, ChatGPT, Claude Code, Codex and Cursor, or the same call over the CLI and REST with the input above.

MCP server
claude mcp add --transport http routergrowth https://api.routergrowth.com/mcp
CLI
npm install -g routergrowth && routergrowth setup
routergrowth run -c social.posts -i '{"platform": "youtube", "handle": "@figma", "limit": 6}'
REST
curl -X POST https://api.routergrowth.com/v1/run \
  -H "Authorization: Bearer $ROUTERGROWTH_API_KEY" \
  -d '{"capability": "social.posts", "input": {"platform": "youtube", "handle": "@figma", "limit": 6}}'

Worth knowing

What should you know first?

No quota math

There are no YouTube API units to budget; each call is billed per video returned.

Handle or URL

The handle accepts @name or the channel URL.

Async when slow

Submit, keep the run id and poll /v1/runs/<id> so a long channel read does not hold the script.

FAQ

Questions about youtube-scraper python

Do I need the YouTube Data API?

No. The call runs on RouterGrowth's providers; there is no Google key or quota.

Which Python libraries do I need?

requests or httpx for the call, and pandas if you want a DataFrame.

Does it return the transcript?

No. It returns the video records; transcripts are not part of social.posts.

Can I get the comments as well?

Yes. Pass a video URL from the result to social.comments.

More on YouTube

Related pages

Reading this as an agent? This page as markdown: /tools/youtube/scraper-python.md

One key. Every network.

Connect your agent once. The first calls run on the $1 that comes with signup.