JustSERPDocs
Google

Google Videos

Google's Videos tab for a query: ten videos a page with their site, channel, length and date.

GET
/v1/google/videos

Google's Videos tab for a query: ten videos a page with their site, channel, length and date. Answers the document: search_metadata, search_parameters, search_information (with the result count), videos, related_searches and pagination. Desktop only (device mobile or tablet is a 400). source, Google's video-source filter, is a 400: it has no address a plain page load can send. A result's key moments are not read.

Authorization

headerX-API-Key<token>

Your API key.

Query Parameters

cancel_token?string

A name you make up for this request (a UUID is fine), so you can later GET /v1/cancel with it. Only you know it, so only you can cancel. Use a new one for every request, retries included: a cancelled token stays cancelled for a few minutes.

Length1 <= length <= 128
q*string

What to search for.

Length1 <= length
location?string

A canonical place name, e.g. "Austin,Texas,United States" (becomes Google's uule). Not with uule.

uule?string

Google's own location value (w+CAIQ...). Not with location.

gl?string

Country of the search, two letters.

Default"us"
hl?string

Interface language, e.g. en, pt-br.

Default"en"
device?"desktop"

Only desktop: mobile and tablet are a 400.

Default"desktop"
Value in"desktop"
lr?string

Language of the documents, lang_fr or several lang_it|lang_de.

cr?string

Country of the documents, countryFR or several countryFR|countryDE.

nfpr?string

1 leaves out results for an auto-corrected spelling.

Default"0"
Value in"0""1"
filter?string

0 turns off Google's duplicate-content and host-crowding filters.

Default"1"
Value in"0""1"
safe?string

Adult-content filtering.

Default"blur"
Value in"active""blur""off"
page?integer

Results page; Google's start is (page - 1) * 10.

Range1 <= value <= 100
Default1
time_period?string

Only videos from this period.

Value in"last_hour""last_day""last_week""last_month""last_year"
duration?string

short (dur:s), medium (dur:m), long (dur:l).

Value in"short""medium""long"
quality?"high"

high (hq:h): high-definition videos.

Value in"high"
captioned?"closed"

closed (cc:1): videos with closed captions.

Value in"closed"
tbs?string

Google's tbs as the caller writes it; not with the filter parameters.

Response Body

The results page, as the document. When the page could not be parsed, the usual envelope.

application/json
  1. response

The Videos document. A block is present only when the page has it.

search_metadata?
search_parameters?

The request as sent, with the defaults that were used.

search_information?
videos?array<>
related_searches?array<>

The tab often has none.

pagination?

The page lists no page numbers.

[key: string]?any
Example Request
curl -X GET 'https://api.justserp.com/v1/google/videos?q=python+tutorial'
Example Response
{  "search_metadata": {    "id": "string",    "status": "string",    "created_at": "string",    "request_url": "string",    "html_url": "string"  },  "search_parameters": {},  "search_information": {    "query_displayed": "string",    "total_results": 0,    "time_taken_displayed": 0  },  "videos": [    {      "position": 0,      "title": "string",      "link": "string",      "displayed_link": "string",      "snippet": "string",      "highlighted": [        "string"      ],      "length": "string",      "date": "string",      "source": "string",      "channel": "string",      "thumbnail": "string"    }  ],  "related_searches": [    {      "query": "string",      "link": "string"    }  ],  "pagination": {    "current": 0,    "previous": "string",    "next": "string"  }}