Google Video Results API

When SerpApi encounters video results, we add them to our JSON output as the array video_results. For each video result, we are able to extract its title, link, displayed_link, thumbnail, snippet, rich_snippet. To scrape Google Videos results with SerpApi, create a search with these parameters:

API Parameters

tbm

Required

Parameter must be set to vid. (I.e., tbm=vid)

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",
    },
  ]
  ...
}

Results for: Coffee

Results for: Coffee

JSON Example

{
  "video_results": [
    {
      "position": 1,
      "title": "Coffee | The Nutrition Source",
      "link": "https://www.hsph.harvard.edu/nutritionsource/food-features/coffee/",
      "displayed_link": "www.hsph.harvard.edu › ... › Food Features",
      "thumbnail": "<URL to image>",
      "snippet": "Coffee beans are the seeds of a fruit called a coffee cherry. Coffee cherries grow on coffee trees from a ...",
      "duration": "0:58",
      "rich_snippet": {
        "top": {
          "extensions": [
            "Harvard T.H. Chan School of Public Health",
            "Harvard T.H. Chan School of Public Health",
            "Feb 27, 2019"
          ],
          "detected_extensions": {
            "feb": 27
          }
        }
      }
    },
    {
      "position": 2,
      "title": "Miguel - Coffee (Official Video) - YouTube",
      "link": "https://www.youtube.com/watch?v=9Z55sZ2oVY4",
      "displayed_link": "www.youtube.com › watch",
      "thumbnail": "<URL to image>",
      "snippet": "'Coffee' by Miguel Listen to Miguel: https://Miguel.lnk.to/listenYDSubscribe to the official Miguel YouTube ...",
      "duration": "4:55",
      "rich_snippet": {
        "top": {
          "extensions": [
            "YouTube",
            "MiguelVEVO",
            "Jun 16, 2015"
          ],
          "detected_extensions": {
            "jun": 16
          }
        }
      }
    },
    ...
  ]
}

Results for: Coffee on mobile devices

For some searches, Google videos search includes "Found in videos". SerpApi is able to scrape, extract, and make sense of this information.
Results for: Coffee on mobile devices

JSON Example

{
  "video_results": [
    {
      "position": 1,
      "title": "Miguel - Coffee (Official Video)",
      "link": "https://m.youtube.com/watch?v=9Z55sZ2oVY4",
      "thumbnail": "http://serpapi.com/searches/62d6711494489307edf97f09/images/e73690996b86d93269121961c27d809846f68ee9a4084e2667f96d639403a565.jpeg",
      "date": "Jun 16, 2015",
      "source": "YouTube",
      "author": "MiguelVEVO",
      "duration": "4:55"
    },
    {
      "position": 2,
      "title": "Coffee | The Nutrition Source | Harvard TH Chan School of Public ...",
      "link": "https://www.hsph.harvard.edu/nutritionsource/food-features/coffee/",
      "thumbnail": "http://serpapi.com/searches/62d6711494489307edf97f09/images/e73690996b86d932a6dfc42ea66f2685d12ead8c7b8bd16a3bc2f578e553d769.jpeg",
      "date": "Aug 7, 2017",
      "source": "Harvard T.H. Chan School of Public Health",
      "author": "Harvard T.H. Chan School of Public Health",
      "duration": "0:58"
    }
    ...
  ],
  "found_in_videos": [
    {
      "thumbnail": "http://serpapi.com/searches/62d6711494489307edf97f09/images/bc4dff7dc571376ff3895bb261c2164373a5ba18df9ae951c613b7f45e65e47f.jpeg",
      "key_moment": {
        "time": "8:39",
        "title": "Coffee Is a Tropical Fruit"
      },
      "title": "THE BEST COFFEE IN NEW YORK CITY WITH ACTION BRONSON",
      "link": "https://www.youtube.com/watch?v=o2gHpE9QyUY&t=519",
      "channel": "YouTube • Action Bronson"
    },
    {
      "thumbnail": "http://serpapi.com/searches/62d6711494489307edf97f09/images/bc4dff7dc571376ff3895bb261c216438120402488fa6d28eccdd5addcfbb2d4.jpeg",
      "key_moment": {
        "time": "0:29",
        "title": "What Is Trade Coffee"
      },
      "title": "Coffee | Basics with Babish",
      "link": "https://www.youtube.com/watch?v=6yItCQB4V9A&t=29",
      "channel": "YouTube • Babish Culinary Universe"
    },
    ...
  ],
  ...
}