Google APIs · Videos

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 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.

FieldTypeWhat it holds
videos[]arrayThe videos, in Google's order, ten a page.
position, pageintegerThe video's place, counted on across pages, and the page it is on.
titlestringThe video's title.
urlstringThe video, past Google's redirect when it could be followed.
snippetstringThe lines Google shows about it.
durationstringAs the card shows it: "9:26".
duration_secondsintegerThe same length in seconds: 566.
platformstringWhere it is: "YouTube", "Instagram", "TikTok"…
channelstringWho put it up.
datestringAs Google writes it.
thumbnailstringThe video's picture.
video_idstringYouTube's id of the video.
pages[]arrayEach page the call read, with how many videos it gave.
pagination.next_startinteger or nullWhere the next page starts; null when Google has no more.
meta.creditsintegerThe credits the call spent.
request_idstringThe 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.

PlanPrice a monthPages a monthPer 1,000
Free$01,000free
Starter$2525,000$1.00
Developer$75100,000$0.75
Production$150300,000$0.50
Scale$350800,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.