Sand AISand AI MAGI-2MAGI-2 hiện đã có trên SandBase: video 1080p với âm thanh gốcDùng thử ngay

Yahoo Videos Search

Tài liệu API
https://api.sandbase.ai/v1/api/yahoo/videos

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

Giá
$0.015USD / lượt gọi
Phương thức
POST
Phản hồi
JSON
Tham số
1 bắt buộc · 0 tùy chọn

Phòng thử nghiệm

Đầu vào
p
Đầu raSẵn sàng

Đầu ra của bạn sẽ xuất hiện ở đây

Hoàn tất đầu vào, rồi nhấp Run.

README API

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.

Khám phá thêm

APIs liên quan

Tất cả APIs
APIGiáPhản hồi
Yahoo$0.015 mỗi lần gọiJSON
Yahoo$0.015 mỗi lần gọiJSON
Yahoo$0.01 mỗi lần gọiJSON
Yahoo$0.01 mỗi lần gọiJSON

Câu hỏi

FAQ

Làm thế nào để dùng API Yahoo Videos Search?

Gửi yêu cầu POST đến https://api.sandbase.ai/v1/api/yahoo/videos với khóa API SandBase của bạn trong tiêu đề Authorization (Bearer) và các tham số trong phần thân JSON. Bạn cũng có thể thử trực tiếp trong Playground trên trang này mà không cần viết code.

API Yahoo Videos Search có giá bao nhiêu?

$0.015 mỗi lần gọi, được tính từ số dư SandBase của bạn. Bạn chỉ bị tính phí cho các lần gọi bạn thực hiện; không có gói đăng ký.

API Yahoo Videos Search chấp nhận những tham số nào?

Bắt buộc: p (string). Bảng Parameters và Playground trên trang này liệt kê mọi trường.

API Yahoo Videos Search trả về gì?

Phản hồi JSON được trả về trong cùng một yêu cầu HTTP (đồng bộ). README trên trang này có ví dụ phản hồi.

Tôi có cần tài khoản nhà phát triển hoặc API key của Yahoo không?

Không. Yahoo Videos Search chạy thông qua SandBase, nên chỉ cần một API key SandBase là đủ cho endpoint này và mọi API cùng model khác trong danh mục. Bạn không cần đăng ký riêng để có quyền truy cập API của Yahoo.