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.

zero_trace

Optional

Enterprise only. Parameter enables ZeroTrace mode. It can be set to false (default) or true. Enable this mode to skip storing search parameters, search files, and search metadata on our servers. This may make debugging more difficult.

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

Results for: coffee

Results for: coffee

JSON Example

{
  "search_metadata": {
    "id": "66e18e2da54d7530b45f5989",
    "status": "Success",
    "json_endpoint": "https://serpapi.com/searches/7d6c47d2536e9b5d/66e18e2da54d7530b45f5989.json",
    "created_at": "2024-09-11 12:33:49 UTC",
    "processed_at": "2024-09-11 12:33:49 UTC",
    "google_videos_url": "https://www.google.com/search?udm=7&q=coffee&hl=en&gl=us",
    "raw_html_file": "https://serpapi.com/searches/7d6c47d2536e9b5d/66e18e2da54d7530b45f5989.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": 221000000,
    "time_taken_displayed": 0.25
  },
  "video_results": [
    {
      "position": 1,
      "title": "How I ACTUALLY Make Coffee At Home",
      "link": "https://www.youtube.com/watch?v=oiHdMqQ9UV0",
      "displayed_link": "www.youtube.com › watch",
      "thumbnail": "https://serpapi.com/searches/66e18e2da54d7530b45f5989/images/3b081b8bc8929675a4269d4807644790d01515072958a1595d231ecdfc4aecaa.jpeg",
      "date": "1 month ago",
      "snippet": "Check out the Fits Everybody Collection at http://www.skims.com/mdc #skimspartner —- 00:00 Hello There 00:52 Pourover Setup 06:32 Pourover ...",
      "key_moments": [
        {
          "time": "00:00",
          "title": "Hello There",
          "link": "https://www.youtube.com/watch?v=oiHdMqQ9UV0&t=0",
          "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR9bVZD5eUX5DC817yi4pfx2hr5cy1_7beQcB1qdEpgLw&s"
        },
        {
          "time": "00:52",
          "title": "Pourover Setup",
          "link": "https://www.youtube.com/watch?v=oiHdMqQ9UV0&t=52",
          "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSEp4K_KePnURON6XiHZC_1c5SEjhI6v7H6edXgI_jHhA&s"
        },
        {
          "time": "06:32",
          "title": "Pourover Recipe",
          "link": "https://www.youtube.com/watch?v=oiHdMqQ9UV0&t=392",
          "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRt0QVVcMHnqsA9_5Br5hxfk2fjCZULltwodaz13U2VLg&s"
        },
        {
          "time": "09:37",
          "title": "Espresso Station",
          "link": "https://www.youtube.com/watch?v=oiHdMqQ9UV0&t=577",
          "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTSF3RmpxBApolB4gI4S4IpwReqVzsxbDNCChiA4n72Jw&s"
        }
      ],
      "rich_snippet": {
        "top": {
          "extensions": [
            "YouTube",
            "Morgan Eckroth",
            "1 month ago"
          ],
          "detected_extensions": {
            "month_ago": 1
          }
        }
      },
      "duration": "18:39",
      "video_link": "https://encrypted-vtbn0.gstatic.com/video?q=tbn:ANd9GcRZGghMvKDsUh6BVdNwfgBHVpTGAXZeWETYlw"
    },
    {
      "position": 2,
      "title": "Are you buying the right Coffee Beans? (Beginner's Guide to ...",
      "link": "https://www.youtube.com/watch?v=uWWVNq5GHp4",
      "displayed_link": "www.youtube.com › watch",
      "thumbnail": "https://serpapi.com/searches/66e18e2da54d7530b45f5989/images/3b081b8bc89296756d749e3cd2d2f07560b848f871a97a4e72cf0bcb9861a044.jpeg",
      "date": "May 25, 2024",
      "snippet": "Head to https://www.aeropress.com/ethan and save 20% off your order! A huge thank you to AeroPress for sponsoring this video. Coffee beans ...",
      "key_moments": [
        {
          "time": "00:00",
          "title": "Intro",
          "link": "https://www.youtube.com/watch?v=uWWVNq5GHp4&t=0",
          "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQhQC6e5iS8a19yKmxmc6HmlKwyN9H1dRc8pdFeURqV4A&s"
        },
        {
          "time": "03:18",
          "title": "Thank you to AeroPress!",
          "link": "https://www.youtube.com/watch?v=uWWVNq5GHp4&t=198",
          "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ6q_yBF4s4oaugJyDiacFIxweq_q1y2LWlgEaK4SRBHA&s"
        },
        {
          "time": "04:45",
          "title": "Coffee Roasting Takeaways",
          "link": "https://www.youtube.com/watch?v=uWWVNq5GHp4&t=285",
          "thumbnail": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSyaJ5pmV3N3LjMkAP-ZPY4LCDmsGdEm7tCFdumFv5fmw&s"
        },
        ...
      ],
      "rich_snippet": {
        "top": {
          "extensions": [
            "YouTube",
            "Ethan Chlebowski",
            "May 25, 2024"
          ],
          "detected_extensions": {
            "may": 25
          }
        }
      },
      "duration": "49:14",
      "video_link": "https://encrypted-vtbn0.gstatic.com/video?q=tbn:ANd9GcQ1dJvv24fGuse2ciIDrlk8sOvQZRfz2AaT8w"
    },
    {
      "position": 3,
      "title": "A Day With a Barista in One of NYC's Busiest Coffee Shops ...",
      "link": "https://www.youtube.com/watch?v=aJwdWeiSc8c",
      "displayed_link": "www.youtube.com › watch",
      "thumbnail": "https://serpapi.com/searches/66e18e2da54d7530b45f5989/images/3b081b8bc8929675120f5fce60d6b3966a0fee26384d806f3e219a4bf6968e62.jpeg",
      "date": "3 weeks ago",
      "snippet": "Americanos and iced lattes and cold brews, oh my! In this episode of \"On The Job,\" Priya Krishna dives into the daily grind of baristas.",
      "rich_snippet": {
        "top": {
          "extensions": [
            "YouTube",
            "NYT Cooking",
            "3 weeks ago"
          ],
          "detected_extensions": {
            "weeks_ago": 3
          }
        }
      },
      "duration": "13:17",
      "video_link": "https://encrypted-vtbn0.gstatic.com/video?q=tbn:ANd9GcTTjCgSqJW6bfd00t-oOE3JmnLSfe7h3pw0mg"
    },
    ...
  ],
  "related_searches": [
    {
      "query": "coffee song tiktok",
      "link": "https://www.google.com/search?sca_esv=9783522cabc36d5f&hl=en&gl=us&udm=7&q=Coffee+song+TikTok&sa=X&ved=2ahUKEwjRhcGg87qIAxU5ElkFHadmMysQ1QJ6BAgXEAE",
      "serpapi_link": "https://serpapi.com/search.json?device=desktop&engine=google_videos&gl=us&google_domain=google.com&hl=en&q=Coffee+song+TikTok"
    },
    {
      "query": "coffee - youtube",
      "link": "https://www.google.com/search?sca_esv=9783522cabc36d5f&hl=en&gl=us&udm=7&q=Coffee+-+youtube&sa=X&ved=2ahUKEwjRhcGg87qIAxU5ElkFHadmMysQ1QJ6BAgWEAE",
      "serpapi_link": "https://serpapi.com/search.json?device=desktop&engine=google_videos&gl=us&google_domain=google.com&hl=en&q=Coffee+-+youtube"
    },
    {
      "query": "clear coffee",
      "link": "https://www.google.com/search?sca_esv=9783522cabc36d5f&hl=en&gl=us&udm=7&q=Clear+coffee&sa=X&ved=2ahUKEwjRhcGg87qIAxU5ElkFHadmMysQ1QJ6BAgVEAE",
      "serpapi_link": "https://serpapi.com/search.json?device=desktop&engine=google_videos&gl=us&google_domain=google.com&hl=en&q=Clear+coffee"
    },
    ...
  ],
  "pagination": {
    "current": 1,
    "next": "https://www.google.com/search?q=coffee&sca_esv=9783522cabc36d5f&hl=en&gl=us&udm=7&ei=M47hZpGgGrmk5NoPp83N2QI&start=10&sa=N&ved=2ahUKEwjRhcGg87qIAxU5ElkFHadmMysQ8NMDegQIDxAW",
    "other_pages": {
      "2": "https://www.google.com/search?q=coffee&sca_esv=9783522cabc36d5f&hl=en&gl=us&udm=7&ei=M47hZpGgGrmk5NoPp83N2QI&start=10&sa=N&ved=2ahUKEwjRhcGg87qIAxU5ElkFHadmMysQ8tMDegQIDxAE",
      "3": "https://www.google.com/search?q=coffee&sca_esv=9783522cabc36d5f&hl=en&gl=us&udm=7&ei=M47hZpGgGrmk5NoPp83N2QI&start=20&sa=N&ved=2ahUKEwjRhcGg87qIAxU5ElkFHadmMysQ8tMDegQIDxAG",
      "4": "https://www.google.com/search?q=coffee&sca_esv=9783522cabc36d5f&hl=en&gl=us&udm=7&ei=M47hZpGgGrmk5NoPp83N2QI&start=30&sa=N&ved=2ahUKEwjRhcGg87qIAxU5ElkFHadmMysQ8tMDegQIDxAI",
      "5": "https://www.google.com/search?q=coffee&sca_esv=9783522cabc36d5f&hl=en&gl=us&udm=7&ei=M47hZpGgGrmk5NoPp83N2QI&start=40&sa=N&ved=2ahUKEwjRhcGg87qIAxU5ElkFHadmMysQ8tMDegQIDxAK",
      "6": "https://www.google.com/search?q=coffee&sca_esv=9783522cabc36d5f&hl=en&gl=us&udm=7&ei=M47hZpGgGrmk5NoPp83N2QI&start=50&sa=N&ved=2ahUKEwjRhcGg87qIAxU5ElkFHadmMysQ8tMDegQIDxAM",
      "7": "https://www.google.com/search?q=coffee&sca_esv=9783522cabc36d5f&hl=en&gl=us&udm=7&ei=M47hZpGgGrmk5NoPp83N2QI&start=60&sa=N&ved=2ahUKEwjRhcGg87qIAxU5ElkFHadmMysQ8tMDegQIDxAO",
      "8": "https://www.google.com/search?q=coffee&sca_esv=9783522cabc36d5f&hl=en&gl=us&udm=7&ei=M47hZpGgGrmk5NoPp83N2QI&start=70&sa=N&ved=2ahUKEwjRhcGg87qIAxU5ElkFHadmMysQ8tMDegQIDxAQ",
      "9": "https://www.google.com/search?q=coffee&sca_esv=9783522cabc36d5f&hl=en&gl=us&udm=7&ei=M47hZpGgGrmk5NoPp83N2QI&start=80&sa=N&ved=2ahUKEwjRhcGg87qIAxU5ElkFHadmMysQ8tMDegQIDxAS",
      "10": "https://www.google.com/search?q=coffee&sca_esv=9783522cabc36d5f&hl=en&gl=us&udm=7&ei=M47hZpGgGrmk5NoPp83N2QI&start=90&sa=N&ved=2ahUKEwjRhcGg87qIAxU5ElkFHadmMysQ8tMDegQIDxAU"
    }
  },
  "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"
    }
  }
}

JSON structure overview

{
  "video_results": [
    {
      "position": "Integer - 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",
      "date": "String - Date of video",
      "snippet": "String - Description of video",
      "key_moments": [
        {
          "time": "String - Start time of the moment in the video",
          "title": "String - Title of the moment in the video",
          "link": "String - Link to the moment in the video",
          "thumbnail": "String - Thumbnail of the moment in the video"
        }
      ],
      "duration": "String - Lenght of video",
      "rich_snippet": "Hash - Rich data of video",
      "video_link": "String - Link to the small video shown in the results"
    }
  ],
  "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": [
    {
      "position": "Integer - Position of video",
      "title": "String - Video title",
      "source": "String - Source of the video",
      "extensions": "Array - Additional information of the video",
      "profile_name": "String - Name of the video creator",
      "clip": "String - URL to a clip of the video in the search results",
      "thumbnail": "String - URL to the video thumbnail",
      "link": "String - Link to the video"
    }
  ],
  "related_searches": [
    {
      "query": "String - Search text",
      "link": "String - Link to the search",
      "serpapi_link": "String - Link to the search on SerpApi"
    }
  ]
}