Baidu Inline Videos API

For some searches, Baidu includes inline videos blocks. SerpApi is able to scrape, extract, and make sense of this information. When a Baidu search contains inline videos, they are parsed and exist within the inline_videos array in the JSON output. SerpApi is able to extract link, title, source, avatar, thumbnail, date, and tag for each inline videos.

API Examples

JSON structure overview

{
  ...
  "inline_videos": [
    {
      "link": "String - URL to the video",
      "title": "String - Title of the video",
      "source": "String - Source of the video",
      "avatar": "String - Optional avatar of the source",
      "thumbnail": "String - Thumbnail of the video",
      "date": "String - Date of the video",
      "tag": "String - Optional tag of the video",
    },
    ...
  ],
  ...
}

Results for: OPPO

Results for: OPPO

JSON Example

{
  ...
  "inline_videos": [
    {
      "link": "https://haokan.baidu.com/v?pd=wisenatural&vid=6279184532342381677",
      "thumbnail": "https://t14.baidu.com/it/u=3935676747,3878542879&fm=225&app=113&size=f558,372&n=0&f=JPEG&fmt=auto&maxorilen2heic=2000000?s=A9C1CF1449525CCE5AC8E4CA0300F0B1",
      "title": "OPPO R系列的一次拨乱反正 OPPO Reno7 Pro评测",
      "avatar": "https://gimg4.baidu.com/poster/src=https://pic.rmb.bdstatic.com/cc48e5d856429abf0546322b1606c644.png&refer=http://www.baidu.com&app=2004&size=f48,48&n=0&g=0n&er=404&q=75&fmt=auto&maxorilen2heic=2000000?sec=1666717200&t=2fe7b2fda71a055013387162bffa752c",
      "source": "手机之家",
      "date": "11个月前",
      "tag": "合集"
    },
    {
      "link": "http://weibo.com/tv/show/1034:4814371428433971",
      "thumbnail": "https://t15.baidu.com/it/u=2765420336,3872549757&fm=220&app=103&size=f558,372&n=0&f=JPEG&fmt=auto&maxorilen2heic=2000000",
      "title": "回顾OPPO手机发展史,从无到有,看完你就知道OPPO有多强了!",
      "source": "微博",
      "date": "1个月前"
    },
    {
      "link": "http://www.bilibili.com/video/av337280153",
      "thumbnail": "https://t13.baidu.com/it/u=155491745,3744220423&fm=225&app=113&size=f558,372&n=0&f=JPEG&fmt=auto&maxorilen2heic=2000000?s=1FF56884BA70429E9CB800B7030050A2",
      "title": "【刷爆科技圈】OPPO Find N发布!集百家之长,上手真有被惊艳到!",
      "avatar": "https://gimg4.baidu.com/poster/src=https://pic.rmb.bdstatic.com/66b2b02a22f1c2da975c87bdbf739570.jpeg&refer=http://www.baidu.com&app=2004&size=f48,48&n=0&g=0n&er=404&q=75&fmt=auto&maxorilen2heic=2000000?sec=1666717200&t=bc3c2408f77dc22a15422098fed03ba2",
      "source": "哔哩哔哩",
      "date": "10个月前"
    },
    ...
  ],
  ...
}