Sand AISand AI MAGI-2MAGI-2 kini tersedia di SandBase: video 1080p dengan audio nativeCoba sekarang

Google Videos

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

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

Harga
Dari $0.00085USD / panggilan
Metode
POST
Respons
JSON
Parameter
1 wajib · 6 opsional

Playground

Input
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.
OutputSiap

Output Anda akan muncul di sini

Lengkapi input, lalu klik Run.

README 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.

Jelajahi lebih lanjut

API Terkait

Semua APIs
APIHargaRespons
GoogleDari $0.00085 per panggilanJSON
Google$0.01 per panggilanJSON
Google$0.015 per panggilanJSON
GoogleDari $0.002 per panggilanJSON
GoogleDari $0.0015 per panggilanJSON
Google$0.01 per panggilanJSON

Panduan:Best Google API in 2026: Pricing Compared

Pertanyaan

FAQ

Bagaimana cara menggunakan API Google Videos?

Kirim permintaan POST ke https://api.sandbase.ai/v1/api/google/videos dengan kunci API SandBase Anda di header Authorization (Bearer) dan parameter sebagai body JSON. Anda juga dapat mencobanya di Playground di halaman ini tanpa menulis kode.

Berapa biaya API Google Videos?

Mulai dari $0.00085 per panggilan, ditagihkan dari saldo SandBase Anda. Anda hanya dikenai biaya untuk panggilan yang Anda lakukan; tidak ada langganan.

Parameter apa yang diterima API Google Videos?

Wajib: query (string). Opsional: gl (string), hl (string), location (string), timeframe (salah satu dari 1h, 1d, 7d, 1y, all), autocorrect (boolean) dan requireFields (array). Tabel Parameters dan Playground di halaman ini mencantumkan setiap field.

Apa yang dikembalikan API Google Videos?

Respons JSON yang dikembalikan dalam permintaan HTTP yang sama (sinkron). README di halaman ini menyertakan contoh respons.

Apakah saya memerlukan akun developer atau kunci API Google?

Tidak. Google Videos berjalan melalui SandBase, jadi satu kunci API SandBase mencakup endpoint ini dan setiap API serta model lain di katalog. Anda tidak perlu mendaftar akses API Google secara terpisah.