Sand AISand AI MAGI-2MAGI-2 अब SandBase पर है: 1080p वीडियो, नेटीव ऑडियो के साथअभी आज़माएँ

Google Videos

API दस्तावेज़
https://api.sandbase.ai/v1/api/google/videos

Search Google for video results (YouTube and others) with title, link, thumbnail, and source.

मूल्य
से $0.00085USD / कॉल
मेथड
POST
प्रतिक्रिया
JSON
पैरामीटर
1 आवश्यक · 6 वैकल्पिक

प्लेग्राउंड

इनपुट
The video search query.
Two-letter country code for result localization (e.g. us, gb, de).
Two-letter interface and results language code (e.g. en, es, de).
Fine-grained location for result localization, given as a canonical Google location string (e.g. 'New York, United States', 'London, United Kingdom'). More specific than the country-level gl.
Restrict results to a recent time window: 1h, 1d, 7d, 1y, or all. Default all (no time restriction).
Toggle Google spelling autocorrect (default true). Set false to search the exact query without correction.
Optional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example `source`, and it is served only by a source that returns every one of them. Fields you do not name are still returned whenever the serving source has them. This can raise your price: when the cheapest source cannot return a named field, a dearer source serves, and you are quoted and charged its price. A named field can still be absent on a record that genuinely lacks it. Naming a combination that no single source returns together is refused as invalid input, with no charge.
आउटपुटतैयार

आपका आउटपुट यहाँ दिखाई देगा

इनपुट पूरा करें, फिर Run पर क्लिक करें।

API README

Google Videos API

Returns Google video search results for a text query. Each result has a title, link, position, snippet, and thumbnail image. The only required input is query.

Use cases

  • Find YouTube videos that rank on Google for a keyword.
  • Track which videos appear first for a topic in a given country or language.
  • Collect video links and titles to build a content list for a topic.
  • Check how results change when you set timeframe to 7d or 1y.

Request

curl -X POST "https://api.sandbase.ai/v1/api/google/videos" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"gl": "us", "hl": "en", "query": "lofi hip hop"}'

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

Parameters

NameTypeRequiredDescription
querystringYesThe video search query.
autocorrectbooleanNoToggle Google spelling autocorrect (default true). Set false to search the exact query without correction.
glstringNoTwo-letter country code for result localization (e.g. us, gb, de).
hlstringNoTwo-letter interface and results language code (e.g. en, es, de).
locationstringNoFine-grained location for result localization, given as a canonical Google location string (e.g. 'New York, United States', 'London, United Kingdom'). More specific than the country-level gl.
requireFieldsarrayNoOptional; omit it and routing is unchanged, with the cheapest source serving. Name the output fields this request must be able to return, for example source, and it is served only by a source that returns every one of
timeframestringNoRestrict results to a recent time window: 1h, 1d, 7d, 1y, or all. Default all (no time restriction).

Example response

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

{
  "data": {
    "query": "lofi hip hop",
    "results": [
      {
        "image": "",
        "link": "https://www.youtube.com/watch?v=rFZHOHl-L8A",
        "position": 1,
        "snippet": "Spooky season is officially upon us 2026 Halloween playlist available now: https…",
        "title": "lofi hip hop radio beats to relax/study to"
      }
    ]
  },
  "found": true
}

Response fields

FieldMeaning
data.queryThe search query that Google ran. It can differ from your input if autocorrect changed it.
data.results[].positionRank of the video in the result list, starting at 1.
data.results[].titleTitle of the video result.
data.results[].linkURL of the video page, such as a YouTube watch link.
data.results[].snippetText shown under the result. It can include the description start, the site name, the channel name, and a date.
data.results[].imageThumbnail of the video. It is either an empty string or an inline base64 data:image/jpeg value.
foundtrue when the search returned results.

Notes

  • The source field is not in this response. Pass requireFields: ["source"] if you need it. This can change the price.
  • The site and channel name appear inside snippet, after the description text.
  • Use gl, hl, and location to localize results. Use location for city-level targeting.
  • For image results on the same query, call Google Images.

Pricing

Billed at the actual cost of each call, about $0.00085 for the request above. Failed calls are not charged.

और जानें

संबंधित APIs

सभी APIs
APIकीमतप्रतिक्रिया
Google Videosयह API
Google
$0.00085 प्रति कॉल सेJSON
Google$0.01 प्रति कॉलJSON
Google$0.015 प्रति कॉलJSON
Google$0.002 प्रति कॉल सेJSON
Google$0.0015 प्रति कॉल सेJSON
Google$0.01 प्रति कॉलJSON

गाइड्स:Best Google API in 2026: Pricing Compared

प्रश्न

FAQ

Google Videos API का उपयोग कैसे करें?

https://api.sandbase.ai/v1/api/google/videos पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।

Google Videos API की लागत कितनी है?

$0.00085 से प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।

Google Videos API कौन-से parameters स्वीकार करती है?

आवश्यक: query (string)। वैकल्पिक: gl (string), hl (string), location (string), timeframe (1h, 1d, 7d, 1y, all में से एक), autocorrect (boolean) और requireFields (array)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।

Google Videos API क्या लौटाती है?

एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।

क्या मुझे एक Google developer account या API key चाहिए?

नहीं। Google Videos SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से Google API access के लिए आवेदन करने की आवश्यकता नहीं है।