Sand AISand AI MAGI-2MAGI-2 现已上线 SandBase:支持原生音频的 1080p 视频立即试用

Yahoo Videos Search

API 文档
https://api.sandbase.ai/v1/api/yahoo/videos

Yahoo Videos results for a keyword: titles, thumbnails, durations and source sites.

价格
$0.015美元 / 次调用
方法
POST
响应
JSON
参数
1 个必填 · 0 个可选

Playground

输入
p
输出就绪

您的输出将显示在这里

完成输入,然后点击运行。

API README

Yahoo Videos Search API

This API returns Yahoo video search results for a keyword. Each result has a title, duration, view count, thumbnail and the site that hosts the video. It needs one input, the search query p.

Use cases

  • Find the most viewed videos for a keyword to see what content ranks for a topic.
  • Collect original video URLs from sites like YouTube for a content research list.
  • Track related search terms to expand a keyword list for video content.
  • Compare video titles and durations across queries to plan new video formats.

Request

curl -X POST "https://api.sandbase.ai/v1/api/yahoo/videos" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"p": "coffee"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
pstringYesp

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "related_searches": [
    {
      "link": "https://video.search.yahoo.com/search/video;_ylt=A2RRXHqUkelq8gIAlhP7w8QF;_ylu=Y…",
      "position": 1,
      "thumbnail": "https://tse1.mm.bing.net/th?q=Best+Coffee&pid=Api&mkt=en-US&cc=US&setlang=en&adl…",
      "title": "Best coffee"
    }
  ],
  "videos_results": [
    {
      "duration": "05:35",
      "extracted_views": 3300000,
      "link": "https://video.search.yahoo.com/search/video;_ylt=A2RRXHqUkelq8gIApRP7w8QF;_ylu=Y…",
      "original": "https://www.youtube.com/watch?v=xQ156y4TtJs",
      "position": 1,
      "source": "youtube.com",
      "thumbnail": "https://up.yimg.com/ib/th/id/OVP.3w2J3ife7H_kW-PbU9Q-lAHgFo?pid=Api&h=360&w=480&…",
      "title": "How humanity got hooked on coffee - Jonathan Morris",
      "views": "3.3M views"
    }
  ]
}

Response fields

FieldMeaning
videos_results[].titleTitle of the video.
videos_results[].originalURL of the video on the site that hosts it, such as a YouTube watch page.
videos_results[].sourceDomain that hosts the video, for example youtube.com.
videos_results[].durationVideo length as a text string, for example 05:35.
videos_results[].viewsView count as shown in the result, for example 3.3M views.
videos_results[].extracted_viewsView count as a plain number, for example 3300000. Use it for sorting and filtering.
videos_results[].link / videos_results[].thumbnaillink opens the result on Yahoo video search. thumbnail is the preview image URL.
videos_results[].positionRank of the video in the results, starting at 1.
related_searches[].titleSuggested related search query.
related_searches[].link / related_searches[].thumbnaillink opens the related search on Yahoo video search. thumbnail is a preview image for it.

Notes

  • Pass the search keyword in p. It is the only parameter and it is required.
  • Use extracted_views when you need numbers. The views field is a display string such as 1.8K views.
  • To search for pictures instead of videos, use Yahoo Images Search.

Pricing

$0.015 per successful call. Failed calls are not charged.

探索更多

相关 APIs

全部 APIs
API价格响应
Yahoo$0.015 每次调用JSON
Yahoo$0.015 每次调用JSON
Yahoo$0.01 每次调用JSON
Yahoo$0.01 每次调用JSON

问题

常见问题

如何使用 Yahoo Videos Search API?

向 https://api.sandbase.ai/v1/api/yahoo/videos 发送 POST 请求,在 Authorization 请求头中使用您的 SandBase API key(Bearer),并将参数作为 JSON 请求体传入。您也可以直接在本页的 Playground 中试用,无需编写代码。

Yahoo Videos Search API 的价格是多少?

每次调用 $0.015,从您的 SandBase 余额中扣费。您只需为实际调用付费;无需订阅。

Yahoo Videos Search API 接受哪些参数?

必填:p (string)。 Parameters 表和本页的 Playground 列出了每个字段。

Yahoo Videos Search API 返回什么?

在同一个 HTTP 请求中返回的 JSON 响应(同步)。 本页的 README 包含一个示例响应。

我需要 Yahoo 开发者账户或 API key 吗?

不需要。Yahoo Videos Search 通过 SandBase 运行,因此一个 SandBase API key 即可覆盖此端点以及目录中的其他所有 API 和模型。您无需单独申请 Yahoo API 访问权限。