Google video search API
Google’s Videos tab: title, link, snippet, thumbnail, duration, platform, channel and upload date for a query.
GET /v1/google/search/videosBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/google/search/videos?q=guitar%20lesson",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "searchParameters": { "q": "guitar lesson", "type": "videos", "engine": "google", "gl": "us", "hl": "en", "num": 10, "page": 1 }, "videos": [ { "title": "Guitar Lesson 1 - Absolute Beginner? Start Here! [Free 10 Day ...", "link": "https://www.youtube.com/watch?v=BBz-Jyr23M4", "snippet": "Feeling stuck, inconsistent… or not sure what to practise next? ✓ START YOUR FREE 10-DAY TRIAL Join here ...", "imageUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTlIl47DXFsMGb4utY-Vcy_pe6f_e7Ee2rks8PxTH-V9E0rAppCEvlw_g&s", "duration": "16:11", "source": "YouTube", "channel": "Andy Guitar", "date": "Sep 2, 2016", "position": 1 }, { "title": "First Guitar Lesson for Complete Beginners (Start Playing in ...", "link": "https://www.youtube.com/watch?v=jh7_FRlFPw4&vl=en", "snippet": "Just finished your first guitar lesson? Here's your next step — my FREE songbook. 15 iconic songs you can play starting …", "imageUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS0tfBKlidzXRckq7dK5VEESRXH5dIcdl828hRTQaiTQ4JMrvvj5ag-UA&s", "duration": "11:14", "source": "YouTube", "channel": "Good Guitarist", "date": "Jan 3, 2026", "position": 2 }, "… 8 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
qquery · required | string | The search, as typed into Google (operators work). Example: coffee. |
glquery | string | Country to search from, default us. Example: gb. |
hlquery | string | Interface language, default en. Example: de. |
locationquery | string | Where the search happens, as a canonical place name ("Austin,Texas,United States"). Example: Austin,Texas,United States. |
numquery | integer | Results per page (default 10, at most 10). |
pagequery | integer | Page, from 1. |
tbsquery | string | Time filter: qdr:h (past hour), qdr:d, qdr:w, qdr:m, qdr:y, or a cdr:1,cd_min:…,cd_max:… range. Example: qdr:w. |
safequery | "active" | "off" | SafeSearch, default off. One of active, off. |
Status codes
| Status | Meaning |
|---|---|
200 | The videos. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | No Google Maps place matches that reference. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Google is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Only YouTube?
No, every platform Google lists (YouTube, TikTok, Vimeo, news sites).
Google is a trademark of Google LLC. We are not affiliated with or endorsed by Google.