YouTube channel search API
Search one channel’s videos with the channel page’s own search box, about 30 a page.
GET /v1/youtube/channels/{channel}/searchBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/youtube/channels/@mkbhd/search?q=iphone",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "kind": "youtube#videoListResponse", "items": [ { "kind": "youtube#video", "id": "Od6M0AXpcxQ", "snippet": { "publishedTimeText": "2 months ago", "publishedAt": "2026-09-25T12:00:00.000Z", "publishedAtIsApproximate": true, "channelId": "UCBJycsmduvYEL83R_U4JriQ", "channelTitle": "Marques Brownlee", "title": "iPhone 18 Pro/Duo Impressions: Mogged", "description": "The first folding iPhone Duo and iPhone 18 Pro are here, and this is everything you need t…", "thumbnails": { "default": { "…": "3 fields" }, "medium": { "…": "3 fields" }, "high": { "…": "3 fields" }, "standard": { "…": "3 fields" } }, "liveBroadcastContent": "none" }, "channel": { "id": "UCBJycsmduvYEL83R_U4JriQ", "title": "Marques Brownlee", "handle": "@mkbhd", "url": "https://www.youtube.com/@mkbhd", "thumbnails": { "default": { "…": "3 fields" }, "medium": { "…": "3 fields" }, "high": { "…": "3 fields" } }, "isVerified": true }, "statistics": { "viewCount": "28331476" }, "contentDetails": { "duration": "PT17M14S", "durationSeconds": 1034 } }, { "kind": "youtube#video", "id": "ohqxP8EEumo", "snippet": { "publishedTimeText": "2 months ago", "publishedAt": "2026-09-25T12:00:00.000Z", "publishedAtIsApproximate": true, "channelId": "UCBJycsmduvYEL83R_U4JriQ", "channelTitle": "Marques Brownlee", "title": "iPhone 18 Pro Review: All About that Chip", "description": "iPhone 18 Pro is basically an S year upgrade. And one part of it is really impressive.\n\nPr…", "thumbnails": { "default": { "…": "3 fields" }, "medium": { "…": "3 fields" }, "high": { "…": "3 fields" }, "standard": { "…": "3 fields" } }, "liveBroadcastContent": "none" }, "channel": { "id": "UCBJycsmduvYEL83R_U4JriQ", "title": "Marques Brownlee", "handle": "@mkbhd", "url": "https://www.youtube.com/@mkbhd", "thumbnails": { "default": { "…": "3 fields" }, "medium": { "…": "3 fields" }, "high": { "…": "3 fields" } }, "isVerified": true }, "statistics": { "viewCount": "12536399" }, "contentDetails": { "duration": "PT16M36S", "durationSeconds": 996 } }, "… 1 more" ], "pageInfo": { "resultsPerPage": 6 }}Parameters
| Name | Type | Description |
|---|---|---|
channelpath · required | string | A channel id (UC…), a handle with or without the @, or any channel URL (/@handle, /channel/UC…, /c/name, /user/name). Example: @MrBeast. |
qquery · required | string | Words to find. Example: iphone. |
afterquery | string | The previous page’s nextPageToken. Tokens last 6 hours. |
Response fields
200 with a YouTubeVideoList, in the shape of YouTube Data API v3 resources.
| Field | Type | Description |
|---|---|---|
kind | "youtube#videoListResponse" | |
items | YouTubeVideo[] | |
nextPageToken | string | Pass as after for the next page. Absent on the last page. Lasts 6 hours. |
pageInfo | object | |
missing | object[] | Batch only: requested ids that did not resolve, and why. |
Status codes
| Status | Meaning |
|---|---|
200 | Matching 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 | The video, channel, playlist or post does not exist, was removed, or has nothing there. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | YouTube is temporarily unavailable. Retryable; nothing was charged. |
Every error has code, message, hint and retryable. All error codes
Questions
Shorts included?
Whatever the channel search box returns.
YouTube is a trademark of Google LLC. We are not affiliated with or endorsed by Google or YouTube.