Google Videos API
Google's Videos tab as JSON: each video's title, link, snippet and thumbnail, its length as Google shows it and in seconds, the platform and channel, and YouTube's own video id. Ten a page.
Videos from every platform Google finds
The tab lists videos from YouTube, Instagram, TikTok and the rest. duration keeps short ones (under 4 minutes), medium (4 to 20) or long.
curl -G https://api.serpbit.com/v1/videos \ -H "Authorization: Bearer $SERPBIT_API_KEY" \ --data-urlencode "q=eiffel tower" \ --data-urlencode "duration=medium" { "videos": [{ "position": 1, "title": "Gustave Eiffel, The Eiffel Tower", "url": "https://www.youtube.com/watch?v=vurh8_SO6_c", "duration": "9:26", "duration_seconds": 566, "platform": "YouTube", "channel": "Smarthistory", "video_id": "vurh8_SO6_c" }] }
What comes back
The videos
Title, link, snippet and thumbnail, ten a page, in Google's order.
How long
durationas Google shows it, "9:26", andduration_secondsas a number.Where and who
platform: YouTube, Instagram, TikTok and others;channel: who put it up.YouTube's id
video_id, ready for YouTube's own player or API.From where you ask
glandhlfor a country and language,tbsfor a time range.
The same call in Python and JavaScript
Short videos on a topic, then a count of where they are hosted. The clients read the key from SERPBIT_API_KEY and retry a failed call without billing it twice. Any HTTP client works too.
# pip install serpbit from collections import Counter from serpbit import Serpbit sb = Serpbit() # reads SERPBIT_API_KEY answer = sb.videos("eiffel tower", duration="short", pages=3) for v in answer["videos"]: print(v["position"], v.get("platform"), v.get("duration_seconds"), v["title"]) print(Counter(v.get("platform") for v in answer["videos"]))
// npm install serpbit import Serpbit from "serpbit"; const sb = new Serpbit(); // reads SERPBIT_API_KEY const answer = await sb.videos("eiffel tower", { duration: "short", pages: 3 }); const platforms = {}; for (const v of answer.videos) { console.log(v.position, v.platform, v.duration_seconds, v.title); platforms[v.platform] = (platforms[v.platform] ?? 0) + 1; } console.log(platforms);
Response fields
The main fields of a video. Most are left out when Google shows nothing for them. The reference has every parameter.
| Field | Type | What it holds |
|---|---|---|
| videos[] | array | The videos, in Google's order, ten a page. |
| position, page | integer | The video's place, counted on across pages, and the page it is on. |
| title | string | The video's title. |
| url | string | The video, past Google's redirect when it could be followed. |
| snippet | string | The lines Google shows about it. |
| duration | string | As the card shows it: "9:26". |
| duration_seconds | integer | The same length in seconds: 566. |
| platform | string | Where it is: "YouTube", "Instagram", "TikTok"… |
| channel | string | Who put it up. |
| date | string | As Google writes it. |
| thumbnail | string | The video's picture. |
| video_id | string | YouTube's id of the video. |
| pages[] | array | Each page the call read, with how many videos it gave. |
| pagination.next_start | integer or null | Where the next page starts; null when Google has no more. |
| meta.credits | integer | The credits the call spent. |
| request_id | string | The call's id, to quote to support. |
What it is used for
See which platforms show up
Count platform over the first pages of a topic to see where its videos are hosted: YouTube, TikTok, Instagram and others.
Track your videos for your keywords
Search each keyword on a schedule, find your videos by channel or video_id, and keep their position.
Find short videos on a subject
duration=short keeps videos under 4 minutes; duration_seconds lets you sort or cut the list further.
Hand videos to YouTube's API
A YouTube video's video_id is ready for YouTube's own player or API.
What 1,000 cost
1 credit a page of videos, on the same key and credits as every other API. A call that fails is free, and so is the same call again within the hour.
| Plan | Price a month | Pages a month | Per 1,000 |
|---|---|---|---|
| Free | $0 | 1,000 | free |
| Starter | $25 | 25,000 | $1.00 |
| Developer | $75 | 100,000 | $0.75 |
| Production | $150 | 300,000 | $0.50 |
| Scale | $350 | 800,000 | $0.44 |
In US dollars before tax. All plans and credit packs are on the pricing page.
Questions
Is it only YouTube?
No. It is what Google's Videos tab lists, from every platform it finds; platform says which one each video is on.
Can I keep only short videos?
Yes. duration=short keeps videos under 4 minutes, medium 4 to 20 minutes, long the rest.
Can I get more than ten at once?
Yes. pages=3 returns pages 1 to 3 in one call as one list; each page is billed.
Can an AI agent use it?
Yes. Our MCP server has it as the google_videos tool: add https://api.serpbit.com/mcp as a connector in Claude, ChatGPT or Cursor and sign in.
Is Serpbit part of Google?
No. Serpbit is not affiliated with Google or YouTube; both are trademarks of Google LLC.
Start with 1,000 free credits.
Every month. No card.