Sand AISand AI MAGI-2MAGI-2 est maintenant sur SandBase : vidéo 1080p avec audio natifEssayer maintenant

Google Videos

Docs API
https://api.sandbase.ai/v1/api/google/videos

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

Prix
À partir de $0.00085USD / appel
Méthode
POST
Réponse
JSON
Paramètres
1 obligatoires · 6 facultatifs

Bac à sable

Entrée
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.
SortiePrêt

Votre sortie apparaîtra ici

Complétez les entrées, puis cliquez sur Exécuter.

README de l'API

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.

Explorer plus

APIs associées

Toutes les APIs
APIPrixRéponse
Google VideosCette API
Google
À partir de $0.00085 par appelJSON
Google$0.01 par appelJSON
Google$0.015 par appelJSON
GoogleÀ partir de $0.002 par appelJSON
GoogleÀ partir de $0.0015 par appelJSON
Google$0.01 par appelJSON

Guides :Best Google API in 2026: Pricing Compared

Questions

FAQ

Comment utiliser l’API Google Videos ?

Envoyez une requête POST à https://api.sandbase.ai/v1/api/google/videos avec votre clé API SandBase dans l’en-tête Authorization (Bearer) et les paramètres dans un corps JSON. Vous pouvez aussi l’essayer dans le Playground sur cette page sans écrire de code.

Combien coûte l’API Google Videos ?

À partir de $0.00085 par appel, facturé depuis votre solde SandBase. Vous ne payez que les appels que vous effectuez ; aucun abonnement.

Quels paramètres l’API Google Videos accepte-t-elle ?

Obligatoire : query (string). Facultatif : gl (string), hl (string), location (string), timeframe (l’un de 1h, 1d, 7d, 1y, all), autocorrect (boolean) et requireFields (array). Le tableau des paramètres et le Playground sur cette page listent tous les champs.

Que renvoie l’API Google Videos ?

Une réponse JSON renvoyée dans la même requête HTTP (synchrone). Le README sur cette page inclut un exemple de réponse.

Ai-je besoin d’un compte développeur ou d’une clé API Google ?

Non. Google Videos fonctionne via SandBase, donc une seule clé API SandBase couvre ce point de terminaison ainsi que toutes les autres API et tous les modèles du catalogue. Vous n’avez pas besoin de demander un accès API Google séparément.