YouTube Ad Results API

/ Home / YouTube Search API / Ad Results

When a YouTube search contains advertisements, they are parsed and exist within the ads_results array in the JSON output.

YouTube Ad results examples

Ads results overview

When SerpApi encounters ads results, we add them to our JSON output as the array ads_results. For each ads result, we are able to extract its title, link, channel, views, thumbnail and more.

Ads results overview

JSON Example

{
  ...
  "ads_results": [
    {
      "position_on_page": 1,
      "title": "LEGO® Star Wars™ Echo Base Defense Unboxing",
      "link": "https://www.youtube.com/watch?v=0DZBVBZZJ_Y",
      "channel": {
        "name": "LEGO",
        "link": "https://www.youtube.com/user/LEGO"
      },
      "views": 90848,
      "description": "Watch the action-packed battle unfold with Nicole and Sheaden!",
      "thumbnail": {
        "static": "https://i2.ytimg.com/vi/0DZBVBZZJ_Y/0.jpg",
        "rich": "https://i.ytimg.com/an_webp/0DZBVBZZJ_Y/mqdefault_6s.webp?du=3000&sqp=CJDYzfMF&rs=AOn4CLBRBJ8XkWGOg8JIoq_O1Fg8AQiaDQ"
      }
    }
  ],
  ...
}