Sand AISand AI MAGI-2ตอนนี้ MAGI-2 อยู่บน SandBase แล้ว: วิดีโอ 1080p พร้อมเสียงในตัวลองใช้เลย

YouTube Search Suggestions

เอกสาร API
https://api.sandbase.ai/v1/api/youtube/web-v2/search-suggestions

Returns YouTube autocomplete search suggestions for a given keyword query. Supports optional geographic region and language filtering.

ราคา
$0.001USD / คำขอ
Method
POST
การตอบกลับ
JSON
พารามิเตอร์
1 จำเป็น · 2 ไม่บังคับ
100 คำขอฟรี / วันคำขอ 100 ครั้งแรกต่อวันฟรี (ใช้ร่วมกันภายในองค์กร) · รีเซ็ตเวลา 00:00 UTC จากนั้นคิดค่าบริการตามจำนวนคำขอ

Playground

อินพุต
Search keyword (required)
Language code (optional, default en)
Region code (optional, default US)
เอาต์พุตตัวอย่าง
การตอบกลับoutputs · 233 B · 14 บรรทัด
[
  {
    "data": {
      "keyword": "OpenAI",
      "suggestions": [
        "openai",
        "openai dots",
        "openai hugging face",
        "… 11 more items in the full response"
      ],
      "total_count": 14
    }
  }
]

ตัวอย่าง

เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground

API README

YouTube Search Suggestions API

Returns YouTube autocomplete suggestions for a search keyword. You send a keyword and can set region and language to localize the results.

Use cases

  • Fill a search box in your own app with the same suggestions YouTube shows for a partial or full query.
  • Find phrases people type after a brand or topic name, such as OpenAI, to plan video titles.
  • Compare suggestions for the same keyword across different region and language values to see how searches differ by market.
  • Build a keyword list for content research by running a seed term and collecting the returned phrases.

Request

curl -X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/search-suggestions" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyword": "OpenAI"}'

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

Parameters

NameTypeRequiredDescription
keywordstringYesSearch keyword (required)
languagestringNoLanguage code (optional, default en)
regionstringNoRegion code (optional, default US)

Example response

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

{
  "keyword": "OpenAI",
  "suggestions": [
    "openai"
  ],
  "total_count": 14
}

Response fields

FieldMeaning
keywordThe search term the suggestions were requested for. It matches the keyword you sent.
suggestions[]List of autocomplete phrases, as plain strings. The first item in the example is the keyword itself in lowercase, followed by longer phrases that start with it.
total_countNumber of suggestions reported for the query. In the example it is 14, while the list is trimmed to a few items.

Notes

  • keyword is required and can be up to 200 characters. region defaults to US and language defaults to en.
  • Suggestions are returned as plain text strings with no IDs or URLs. To get videos for a suggestion, pass it to YouTube General Search (Web V2, V2).
  • To find channels for a suggestion, use YouTube Channel Search.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

สำรวจเพิ่มเติม

APIs ที่เกี่ยวข้อง

APIs ทั้งหมด
APIราคาการตอบกลับ
YouTube$0.001 ต่อการเรียกJSON
YouTube$0.001 ต่อการเรียกJSON
YouTube$0.001 ต่อการเรียกJSON
YouTube$0.001 ต่อการเรียกJSON
YouTube$0.001 ต่อการเรียกJSON
YouTube$0.001 ต่อการเรียกJSON

คู่มือ:Best YouTube API in 2026: Pricing Compared

คำถาม

คำถามที่พบบ่อย

ฉันจะใช้ YouTube Search Suggestions API ได้อย่างไร?

ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/youtube/web-v2/search-suggestions โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด

YouTube Search Suggestions API ราคาเท่าไร?

$0.001 ต่อครั้ง ทุกองค์กรจะได้รับคำขอฟรี 100 ครั้งต่อวัน UTC โดยใช้ร่วมกันใน SandBase APIs ที่เข้าเงื่อนไขรวมถึงรายการนี้ หลังจากนั้นแต่ละคำขอจะคิดค่าบริการตามราคานี้จากยอดคงเหลือ SandBase ของคุณ ไม่มีค่าสมาชิกรายเดือน

YouTube Search Suggestions API รับพารามิเตอร์อะไรบ้าง?

ที่ต้องระบุ: keyword (string). ตัวเลือก: language (string) และ region (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์

YouTube Search Suggestions API ส่งคืนอะไร?

การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ

ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ YouTube ไหม?

ไม่จำเป็น YouTube Search Suggestions ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง YouTube API แยกต่างหาก