Sand AISand AI MAGI-2MAGI-2 ist jetzt auf SandBase: 1080p-Video mit nativem AudioJetzt testen

Google Videos

API-Dokumentation
https://api.sandbase.ai/v1/api/google/videos

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

Preis
Ab $0.00085USD / Aufruf
Methode
POST
Antwort
JSON
Parameter
1 erforderlich · 6 optional

Playground

Eingabe
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.
AusgabeBereit

Ihre Ausgabe wird hier angezeigt

Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.

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.

Mehr entdecken

Verwandte APIs

Alle APIs
APIPreisAntwort
Google VideosDiese API
Google
Ab $0.00085 pro AufrufJSON
Google$0.01 pro AufrufJSON
Google$0.015 pro AufrufJSON
GoogleAb $0.002 pro AufrufJSON
GoogleAb $0.0015 pro AufrufJSON
Google$0.01 pro AufrufJSON

Anleitungen:Best Google API in 2026: Pricing Compared

Fragen

FAQ

Wie verwende ich die Google Videos API?

Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/google/videos mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.

Was kostet die Google Videos API?

Ab $0.00085 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.

Welche Parameter akzeptiert die Google Videos API?

Erforderlich: query (string). Optional: gl (string), hl (string), location (string), timeframe (eines von 1h, 1d, 7d, 1y, all), autocorrect (boolean) und requireFields (array). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.

Was gibt die Google Videos API zurück?

Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.

Benötige ich ein Google-Entwicklerkonto oder einen API-Schlüssel?

Nein. Google Videos läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für Google API beantragen.