querystringerforderlich
The video search query.
https://api.sandbase.ai/v1/api/google/videosSearch Google for video results (YouTube and others) with title, link, thumbnail, and source.
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
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.
timeframe to 7d or 1y.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.
| Name | Type | Required | Description |
|---|---|---|---|
query | string | Yes | The video search query. |
autocorrect | boolean | No | Toggle Google spelling autocorrect (default true). Set false to search the exact query without correction. |
gl | string | No | Two-letter country code for result localization (e.g. us, gb, de). |
hl | string | No | Two-letter interface and results language code (e.g. en, es, de). |
location | string | No | 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. |
requireFields | array | No | 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 |
timeframe | string | No | Restrict results to a recent time window: 1h, 1d, 7d, 1y, or all. Default all (no time restriction). |
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
}
| Field | Meaning |
|---|---|
data.query | The search query that Google ran. It can differ from your input if autocorrect changed it. |
data.results[].position | Rank of the video in the result list, starting at 1. |
data.results[].title | Title of the video result. |
data.results[].link | URL of the video page, such as a YouTube watch link. |
data.results[].snippet | Text shown under the result. It can include the description start, the site name, the channel name, and a date. |
data.results[].image | Thumbnail of the video. It is either an empty string or an inline base64 data:image/jpeg value. |
found | true when the search returned results. |
source field is not in this response. Pass requireFields: ["source"] if you need it. This can change the price.snippet, after the description text.gl, hl, and location to localize results. Use location for city-level targeting.Billed at the actual cost of each call, about $0.00085 for the request above. Failed calls are not charged.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
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"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
querystringerforderlichThe video search query.
glstringTwo-letter country code for result localization (e.g. us, gb, de).
Standard: "us"
hlstringTwo-letter interface and results language code (e.g. en, es, de).
Standard: "en"
locationstringFine-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.
timeframestringRestrict results to a recent time window: 1h, 1d, 7d, 1y, or all. Default all (no time restriction).
Mögliche Werte: 1h, 1d, 7d, 1y, all
autocorrectbooleanToggle Google spelling autocorrect (default true). Set false to search the exact query without correction.
requireFieldsarrayOptional; 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.
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
Google VideosDiese API Google | Ab $0.00085 pro Aufruf | JSON |
Google | $0.01 pro Aufruf | JSON |
Google | $0.015 pro Aufruf | JSON |
Google | Ab $0.002 pro Aufruf | JSON |
Google | Ab $0.0015 pro Aufruf | JSON |
Google | $0.01 pro Aufruf | JSON |
Anleitungen:Best Google API in 2026: Pricing Compared
Fragen
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.
Ab $0.00085 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
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.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
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.