Google Videos API

Our Google Videos API allows you to scrape SERP results from Google Videos. The API is accessed through the following endpoint: /search?engine=google_videos.

A user may query the following: https://serpapi.com/search?engine=google_videos utilizing a GET request. Head to the playground for a live and interactive demo.

API Parameters

Search Query

q

Required

Parameter defines the query you want to search. You can use anything that you would use in a regular Google Videos search. e.g. inurl:, site:, intitle:. We also support advanced search query parameters such as as_dt and as_eq. See the full list of supported advanced search query parameters.

Geographic Location

location

Optional

Parameter defines from where you want the search to originate. If several locations match the location requested, we'll pick the most popular one. Head to the /locations.json API if you need more precise control. The location and uule parameters can't be used together. It is recommended to specify location at the city level in order to simulate a real user’s search. If location is omitted, the search may take on the location of the proxy.

uule

Optional

Parameter is the Google encoded location you want to use for the search.

uule and location parameters can't be used together.

Localization

google_domain

Optional

Parameter defines the Google domain to use. It defaults to google.com. Head to the Google domains page for a full list of supported Google domains.

gl

Optional

Parameter defines the country to use for the Google search. It's a two-letter country code. (e.g., us for the United States, uk for United Kingdom, or fr for France). Head to the Google countries page for a full list of supported Google countries.

hl

Optional

Parameter defines the language to use for the Google search. It's a two-letter language code. (e.g., en for English, es for Spanish, or fr for French). Head to the Google languages page for a full list of supported Google languages.

lr

Optional

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.

Advanced Filters

tbs

Optional

(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

Optional

Parameter defines the level of filtering for adult content. It can be set to active or off, by default Google will blur explicit content.

nfpr

Optional

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.

filter

Optional

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.

Pagination

start

Optional

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

Optional

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

Serpapi Parameters

engine

Required

Set parameter to google_videos to use the Google Videos API engine.

device

Optional

Parameter defines the device to use to get the results. It can be set to desktop (default) to use a regular browser, tablet to use a tablet browser (currently using iPads), or mobile to use a mobile browser (currently using iPhones).

no_cache

Optional

Parameter will force SerpApi to fetch the Google Videos results even if a cached version is already present. A cache is served only if the query and all parameters are exactly the same. Cache expires after 1h. Cached searches are free, and are not counted towards your searches per month. It can be set to false (default) to allow results from the cache, or true to disallow results from the cache. no_cache and async parameters should not be used together.

async

Optional

Parameter defines the way you want to submit your search to SerpApi. It can be set to false (default) to open an HTTP connection and keep it open until you got your search results, or true to just submit your search to SerpApi and retrieve them later. In this case, you'll need to use our Searches Archive API to retrieve your results. async and no_cache parameters should not be used together. async should not be used on accounts with Ludicrous Speed enabled.

api_key

Required

Parameter defines the SerpApi private key to use.

output

Optional

Parameter defines the final output you want. It can be set to json (default) to get a structured JSON of the results, or html to get the raw html retrieved.

API Results

JSON Results

JSON output includes structured data for Video Results, Found In Videos, Related Searches, and Short Videos.

A search status is accessible through search_metadata.status. It flows this way: Processing -> Success || Error. If a search has failed, error will contain an error message. search_metadata.id is the search ID inside SerpApi.

HTML Results

HTML output is useful to debug JSON results or support features not supported yet by SerpApi.
HTML output gives you the raw HTML results from Google Videos.

API Examples

JSON structure overview

{
  ...
  "video_results": [
    {
      "position": "Number - Position of video"
      "title": "String - Title of video",
      "link": "String - Link to video",
      "displayed_link": "String - Displayed link of video",
      "thumbnail": "String - Displayed thumbnail of video",
      "snippet": "String - Description of video",
      "duration": "String - Lenght of video",
      "rich_snippet": "Hash - Rich data of video",
    }
  ],
  "found_in_videos": [
    {
      "thumbnail": "String - Displayed thumbnail of video",
      "key_moment": {
        "time": "String - Start time of the moment in the video",
        "title": "String - Title of the moment in the video"
      },
      "title": "String - Title of video",
      "link": "String - Link to video",
      "channel": "String - Youtube channel name",
    }
  ],
  "short_videos": [
    {
      "title": "String - Title of the short video",
      "link": "String - Link to the video",
      "source": "String - Video source",
      "extensions": "Array - Extensions to the video",
      "thumbnail": "String - Link to the thumbnail of the video"
    }
  ],
  "related_searches": [
    {
      "text": "String - Search text",
      "link": "String - Link to Google Videos Page",
    }
  ],
  ...
}

Results for: coffee

Results for: coffee

JSON Example

{
  "search_metadata": {
    "id": "642ebe1d15afff0695b881a4",
    "status": "Success",
    "json_endpoint": "https://serpapi.com/searches/3952ad2634546fdd/642ebe1d15afff0695b881a4.json",
    "created_at": "2023-04-06 12:42:05 UTC",
    "processed_at": "2023-04-06 12:42:05 UTC",
    "google_videos_url": "https://www.google.com/search?tbm=vid&q=coffee&hl=en&gl=us",
    "raw_html_file": "https://serpapi.com/searches/3952ad2634546fdd/642ebe1d15afff0695b881a4.html",
    "total_time_taken": 1.37
  },
  "search_parameters": {
    "engine": "google_videos",
    "q": "coffee",
    "google_domain": "google.com",
    "hl": "en",
    "gl": "us",
    "device": "desktop"
  },
  "search_information": {
    "video_results_state": "Results for exact spelling",
    "query_displayed": "coffee",
    "total_results": 375000000,
    "time_taken_displayed": 0.3
  },
  "video_results": [
    {
      "position": 1,
      "title": "Coffee | The Nutrition Source | Harvard T.H. Chan School of ...",
      "link": "https://www.hsph.harvard.edu/nutritionsource/food-features/coffee/",
      "displayed_link": "www.hsph.harvard.edu › ... › Food Features",
      "thumbnail": "https://serpapi.com/searches/642ebe1d15afff0695b881a4/images/3b081b8bc8929675a4269d4807644790d01515072958a1595d231ecdfc4aecaa.jpeg",
      "snippet": "Coffee beans are the seeds of a fruit called a coffee cherry. Coffee cherries grow on coffee trees from a genus of plants called Coffea. There are a wide ...",
      "duration": "0:58",
      "rich_snippet": {
        "top": {
          "extensions": [
            "Harvard T.H. Chan School of Public Health",
            "Harvard T.H. Chan School of Public Health",
            "Aug 7, 2017"
          ],
          "detected_extensions": {
            "aug": 7
          }
        }
      },
      "video_link": "https://encrypted-vtbn0.gstatic.com/video?q=tbn:ANd9GcSk9FaUQ5jQbshqnT6aOQ3q3jedKdJUo2JyQg"
    },
    {
      "position": 2,
      "title": "Beabadoobee - Coffee - YouTube",
      "link": "https://www.youtube.com/watch?v=C6CeA6vRtW4",
      "displayed_link": "www.youtube.com › watch",
      "thumbnail": "https://serpapi.com/searches/642ebe1d15afff0695b881a4/images/3b081b8bc89296756d749e3cd2d2f07560b848f871a97a4e72cf0bcb9861a044.jpeg",
      "snippet": "Beabadoobee - CoffeeListen on Spotify - http://dirtyh.it/beacompletespDirected by Thomas Davies.",
      "duration": "1:58",
      "rich_snippet": {
        "top": {
          "extensions": [
            "YouTube",
            "Beabadoobee",
            "Mar 26, 2020"
          ],
          "detected_extensions": {
            "mar": 26
          }
        }
      },
      "video_link": "https://encrypted-vtbn0.gstatic.com/video?q=tbn:ANd9GcRHJJWR1YQsxfEb0hQKSRhvoAlQgbyZ7UUyPA"
    },
    {
      "position": 3,
      "title": "Kelly Rowland - COFFEE (Official Music Video) - YouTube",
      "link": "https://www.youtube.com/watch?v=IJZZ6dPPawM",
      "displayed_link": "www.youtube.com › watch",
      "thumbnail": "https://serpapi.com/searches/642ebe1d15afff0695b881a4/images/3b081b8bc8929675120f5fce60d6b3966a0fee26384d806f3e219a4bf6968e62.jpeg",
      "snippet": "Stream COFFEE: https://eqdistro.io/coffee\"To me, COFFEE is about embracing your individuality, sexuality, or imperfections.",
      "duration": "2:26",
      "rich_snippet": {
        "top": {
          "extensions": [
            "YouTube",
            "Kelly Rowland",
            "Apr 16, 2020"
          ],
          "detected_extensions": {
            "apr": 16
          }
        }
      },
      "video_link": "https://encrypted-vtbn0.gstatic.com/video?q=tbn:ANd9GcRqeIUox9mHPAxeUgxonXG1EpLTFM1iRC2T4A"
    },
    ...
  ],
  "related_searches": [
    {
      "query": "coffee song tiktok",
      "link": "https://www.google.com/search?hl=en&gl=us&tbm=vid&q=Coffee+song+TikTok&sa=X&ved=2ahUKEwjd7ozko5X-AhXxJEQIHSUuDGUQ1QJ6BAgQEAE"
    },
    {
      "query": "coffee songs for instagram",
      "link": "https://www.google.com/search?hl=en&gl=us&tbm=vid&q=Coffee+songs+for+instagram&sa=X&ved=2ahUKEwjd7ozko5X-AhXxJEQIHSUuDGUQ1QJ6BAgPEAE"
    },
    {
      "query": "upbeat songs about coffee",
      "link": "https://www.google.com/search?hl=en&gl=us&tbm=vid&q=Upbeat+songs+about+coffee&sa=X&ved=2ahUKEwjd7ozko5X-AhXxJEQIHSUuDGUQ1QJ6BAgOEAE"
    },
    ...
  ],
  "pagination": {
    "current": 1,
    "next": "https://www.google.com/search?q=coffee&hl=en&gl=us&tbm=vid&ei=Hr4uZN3nN_HJkPIPpdywqAY&start=10&sa=N&ved=2ahUKEwjd7ozko5X-AhXxJEQIHSUuDGUQ8NMDegQIGBAW",
    "other_pages": {
      "2": "https://www.google.com/search?q=coffee&hl=en&gl=us&tbm=vid&ei=Hr4uZN3nN_HJkPIPpdywqAY&start=10&sa=N&ved=2ahUKEwjd7ozko5X-AhXxJEQIHSUuDGUQ8tMDegQIGBAE",
      "3": "https://www.google.com/search?q=coffee&hl=en&gl=us&tbm=vid&ei=Hr4uZN3nN_HJkPIPpdywqAY&start=20&sa=N&ved=2ahUKEwjd7ozko5X-AhXxJEQIHSUuDGUQ8tMDegQIGBAG",
      "4": "https://www.google.com/search?q=coffee&hl=en&gl=us&tbm=vid&ei=Hr4uZN3nN_HJkPIPpdywqAY&start=30&sa=N&ved=2ahUKEwjd7ozko5X-AhXxJEQIHSUuDGUQ8tMDegQIGBAI",
      "5": "https://www.google.com/search?q=coffee&hl=en&gl=us&tbm=vid&ei=Hr4uZN3nN_HJkPIPpdywqAY&start=40&sa=N&ved=2ahUKEwjd7ozko5X-AhXxJEQIHSUuDGUQ8tMDegQIGBAK",
      "6": "https://www.google.com/search?q=coffee&hl=en&gl=us&tbm=vid&ei=Hr4uZN3nN_HJkPIPpdywqAY&start=50&sa=N&ved=2ahUKEwjd7ozko5X-AhXxJEQIHSUuDGUQ8tMDegQIGBAM",
      "7": "https://www.google.com/search?q=coffee&hl=en&gl=us&tbm=vid&ei=Hr4uZN3nN_HJkPIPpdywqAY&start=60&sa=N&ved=2ahUKEwjd7ozko5X-AhXxJEQIHSUuDGUQ8tMDegQIGBAO",
      "8": "https://www.google.com/search?q=coffee&hl=en&gl=us&tbm=vid&ei=Hr4uZN3nN_HJkPIPpdywqAY&start=70&sa=N&ved=2ahUKEwjd7ozko5X-AhXxJEQIHSUuDGUQ8tMDegQIGBAQ",
      "9": "https://www.google.com/search?q=coffee&hl=en&gl=us&tbm=vid&ei=Hr4uZN3nN_HJkPIPpdywqAY&start=80&sa=N&ved=2ahUKEwjd7ozko5X-AhXxJEQIHSUuDGUQ8tMDegQIGBAS",
      "10": "https://www.google.com/search?q=coffee&hl=en&gl=us&tbm=vid&ei=Hr4uZN3nN_HJkPIPpdywqAY&start=90&sa=N&ved=2ahUKEwjd7ozko5X-AhXxJEQIHSUuDGUQ8tMDegQIGBAU"
    }
  },
  "serpapi_pagination": {
    "current": 1,
    "next_link": "https://serpapi.com/search.json?device=desktop&engine=google_videos&gl=us&google_domain=google.com&hl=en&q=coffee&start=10",
    "next": "https://serpapi.com/search.json?device=desktop&engine=google_videos&gl=us&google_domain=google.com&hl=en&q=coffee&start=10",
    "other_pages": {
      "2": "https://serpapi.com/search.json?device=desktop&engine=google_videos&gl=us&google_domain=google.com&hl=en&q=coffee&start=10",
      "3": "https://serpapi.com/search.json?device=desktop&engine=google_videos&gl=us&google_domain=google.com&hl=en&q=coffee&start=20",
      "4": "https://serpapi.com/search.json?device=desktop&engine=google_videos&gl=us&google_domain=google.com&hl=en&q=coffee&start=30",
      "5": "https://serpapi.com/search.json?device=desktop&engine=google_videos&gl=us&google_domain=google.com&hl=en&q=coffee&start=40",
      "6": "https://serpapi.com/search.json?device=desktop&engine=google_videos&gl=us&google_domain=google.com&hl=en&q=coffee&start=50",
      "7": "https://serpapi.com/search.json?device=desktop&engine=google_videos&gl=us&google_domain=google.com&hl=en&q=coffee&start=60",
      "8": "https://serpapi.com/search.json?device=desktop&engine=google_videos&gl=us&google_domain=google.com&hl=en&q=coffee&start=70",
      "9": "https://serpapi.com/search.json?device=desktop&engine=google_videos&gl=us&google_domain=google.com&hl=en&q=coffee&start=80",
      "10": "https://serpapi.com/search.json?device=desktop&engine=google_videos&gl=us&google_domain=google.com&hl=en&q=coffee&start=90"
    }
  }
}