Google Videos
Overview
| Method |
Endpoint |
Version |
Description |
POST |
/api/v1/open/search |
v1 |
Google Search API endpoint for retrieving search results |
| Header |
Type |
Required |
Description |
Content-Type |
string |
Yes |
Must be set to application/json |
Accept |
string |
No |
Response format (defaults to application/json) |
Authentication
API Key Authentication
- Pass the API key as a request parameter: api_key=your_api_key
- Example: "api_key": "your_api_key_here"
Request Example
curl -X POST "https://domain/api/v1/open/search" \
-H "Content-Type: application/json" \
-d '{
"api_key": "your_api_key_here",
// ...
}'
All responses follow a standardized JSON structure:
{
"code": 200,
"msg": "Success",
"reqId": "req_1234567890",
"timestamp": "2025-01-08T10:30:00Z",
"data": {
// Response data object
}
}
HTTP Status Codes
| Code |
Status |
Description |
Retry |
| 200 |
OK |
Request successful |
No |
Request Parameters
| Parameter |
Type |
Required |
Description |
Default |
api_key |
string |
Yes |
API key for authentication |
|
engine |
string |
Yes |
Search engine type, currently engine value is google_videos |
google |
q |
string |
Yes |
Search query, supports regular Google search syntax (like inurl:, site:, intitle:) and advanced search parameters |
|
google_domain |
string |
No |
Google domain, defaults to google.com |
google.com |
gl |
string |
No |
Search country code (e.g., us-United States, uk-United Kingdom, fr-France). Head to the Google countries page for a full list of supported Google countries. |
|
hl |
string |
No |
Search language code (e.g., en-English, es-Spanish, fr-French). Head to the Google languages page for a full list of supported Google languages. |
|
lr |
string |
No |
Parameter defines one or multiple languages to limit the search to. It uses lang_{two-letter language code} to specify languages and | as a delimiter. (e.g., lang_fr|lang_de will only search French and German pages). Head to the Google lr languages page for a full list of supported languages. |
|
device |
string |
No |
Device type, currently only supports desktop version |
desktop |
date |
string |
No |
Time range filter: h-last hour, d-last day, w-last week, m-last month, y-last year |
|
start |
number |
No |
Parameter defines the result offset. It skips the given number of results. It's used for pagination. (e.g., 0 (default) is the first page of results, 10 is the 2nd page of results, 20 is the 3rd page of results, etc.). |
|
num |
number |
No |
Parameter defines the maximum number of results to return. (e.g., 10 (default) returns 10 results, 40 returns 40 results, and 100 returns 100 results). |
|
tbs |
string |
No |
(to be searched) parameter defines advanced search parameters that aren't possible in the regular query field. (e.g., advanced search for patents, dates, news, videos, images, apps, or text contents). |
|
safe |
string |
No |
Parameter defines the level of filtering for adult content. It can be set to active or off, by default Google will blur explicit content. off or active |
|
nfpr |
string |
No |
Parameter defines if the filters for 'Similar Results' and 'Omitted Results' are on or off. It can be set to 1 (default) to enable these filters, or 0 to disable these filters. 1 or 0 |
0 |
filter |
string |
No |
Parameter defines the exclusion of results from an auto-corrected query when the original query is spelled wrong. It can be set to 1 to exclude these results, or 0 to include them (default). Note that this parameter may not prevent Google from returning results for an auto-corrected query if no other results are available. 1 or 0 |
1 |
html |
string |
No |
Whether to return HTML format, 1-yes, 0-no |
0 |
Response Example
{
"code": 200,
"data": {
"search_metadata": {
"raw_html_file": "oss_html",
"total_time_taken": 2.032416469,
"id": "1985902431212408832",
"json_endpoint": "oss_json",
"created_at": "2025-10-29 08:53:31",
"processed_at": "2025-10-29 08:53:33",
"google_url": "https://www.google.com/search?q=coffee&udm=7",
"status": "Success"
},
"search_information": {
"organic_results_state": "Showing results for exact spelling despite spelling suggestion",
"time_taken_displayed": 0.042
},
"search_parameters": {
"engine": "google_videos",
"html": "0",
"google_domain": "www.google.com",
"q": "coffee",
"tbm": "vid"
},
"video_results": [
{
"position": 1,
"title": "My Daily Coffee Routine: How I Brew Coffee Every Day",
"link": "https://www.youtube.com/watch?v=KpfhVXC_PBA",
"thumbnail": "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAAAQABAAAD/2wCEAAkGBwgH",
"displayed_link": "www.youtube.com › watch",
"snippet": "In this video, I walk you through my daily brewing routine: the exact methods I use every morning to get the perfect cup.",
"duration": "32:45",
"rich_snippet": {
"top": {
"detected_extensions": {
"date": "Lance Hedrick"
},
"extensions": [
"YouTube",
"Lance Hedrick"
]
}
},
"video_link": "https://encrypted-vtbn0.gstatic.com/video?q=tbn:ANd9GcRw0gA8UE5bw2hywOG1CpQP6J2d2emLT3fVhA"
}
],
"related_searches": [
{
"block_position": 1,
"query": "best coffee grinder under 250",
"link": "https://www.google.com/search?sca_esv=0ee965d81246b17d&gl=us&hl=en&udm=7&q=Best+Coffee+grinder+under+250&sa=X&ved=2ahUKEwia-ePL2aqQAxUfh1YBHWlfPZMQ1QJ6BAgcEAE"
}
],
"pagination": {
"next": "https://www.google.com/search?coffee&sca_esv=552fb68e3d08662a&gl=us&hl=en&udm=2&ei=1TvvaPazNr7c4-EPj-Cv4Q8&start="
}
},
"msg": "string",
"reqId": "string"
}
Complete Response Parameters Overview
object Contains metadata about the search execution
| Parameter |
Type |
Description |
Applicable Terminal |
id |
string |
Unique identifier for the search request |
desktop |
json_endpoint |
string |
Provide an interface endpoint for searching related JSON data, through which JSON-formatted search data can be obtained |
desktop |
created_at |
string |
The timestamp when the search request was created, recording the time when the search was initiated |
desktop |
processed_at |
string |
The timestamp when the search results were processed and became available for return, recording the time point from processing to completion of the search |
desktop |
google_url |
string |
The Google search URL, which contains the search keyword "coffee" along with language parameters (hl=en for English), regional parameters (gl=us for the United States), and other search parameters, used to redirect to the corresponding Google search page |
desktop |
status |
string |
Status of the search execution (e.g., Success) |
desktop |
raw_html_file |
string |
Identifier for the original HTML file |
desktop |
total_time_taken |
number |
The total time spent on the entire search process (including request sending, result parsing, and other stages) |
desktop |
object Contains information about the search results
| Parameter |
Type |
Description |
Applicable Terminal |
organic_results_state |
string |
State of organic results |
desktop |
time_taken_displayed |
number |
TDisplay time (i.e., the time spent on displaying the search results) |
desktop |
search_parameters
object Contains the parameters used for the search
| Parameter |
Type |
Description |
Applicable Terminal |
q |
string |
Keywords used for this query |
desktop |
engine |
string |
Search engine used for this query (e.g., google_web) |
desktop |
html |
string |
When HTML=0, returns JSON; when HTML=1, returns HTML; when HTML=2, returns both JSON and HTML |
desktop |
device |
string |
Device type used during search (e.g., desktop) |
desktop |
google_domain |
string |
Specifies the corresponding Google domain (e.g., google.com, etc., used to distinguish Google services in different regions/locales) |
desktop |
tbm |
string |
vid |
desktop |
video_results
object[] Google video search, video content (e.g., YouTube videos, film/TV clips, etc.)
| Parameter |
Type |
Description |
Applicable Terminal |
position |
number |
The video's ranking position in search results |
desktop |
title |
string |
Video title |
desktop |
link |
string |
Video webpage link |
desktop |
thumbnail |
string |
Thumbnail link (address of a small preview image related to the content, used for quick visual identification, including data:image/png;base64) |
desktop |
displayed_link |
string |
Displayed link (simplified, formatted for easy readability on the page) |
desktop |
snippet |
string |
Video brief introduction/Clip |
desktop |
duration |
string |
Video duration |
desktop |
rich_snippet |
object |
Segment object with rich metadata |
desktop |
rich_snippet.top |
object |
Top-level structure of enriched segments |
desktop |
rich_snippet.top.detected_extensions |
object |
Extended metadata |
desktop |
rich_snippet.top.detected_extensions.date |
string |
The date of the associated metadata |
desktop |
rich_snippet.top.extensions |
string[] |
Expanded Information List |
desktop |
video_link |
string[] |
Direct resource link of the video |
desktop |
object[] Search keywords, system-recommended related search terms, broaden/refine search direction, explore similar/related topics.
| Parameter |
Type |
Description |
Applicable Terminal |
block_position |
number |
Position indicators for content blocks (used to specify the ordering/position of the content block within the overall layout or result list) |
desktop |
query |
string |
Related search query keywords (associated content terms used for searching) |
desktop |
link |
string |
Google search results page link (leads to the search results page for that keyword) |
desktop |
object (Pagination) related fields used to describe pagination navigation information for search results
| Parameter |
Type |
Description |
Applicable Terminal |
next |
string |
URL for the next page of search results |
desktop |