API para Google

API para Google: Vídeos

Busque resultados de vídeo no Google (YouTube e outros) com título, link, miniatura e fonte.

US$ 0,85/mil req., pague por requisição, sem assinatura.

lofi hip hop - Google Search
google.com/search?q=lofi+hip+hop&tbm=vid
Google
lofi hip hop
AllImagesVideosNewsShoppingTools

YouTube

lofi hip hop radio - beats to relax/study to

24/7 livestream of chill lofi hip hop beats, perfect for studying, working, or relaxing.

YouTube

Lofi Hip Hop Mix - 1 Hour of Chill Beats

A one hour mix of smooth lofi hip hop tracks with soft piano and vinyl crackle.

Vimeo

Best Lofi Hip Hop Playlist for Coding

A curated playlist of lofi hip hop tracks selected for focus sessions and late night coding.

O que a API retornouresults[0]
{
"title": "lofi hip hop radio - beats to relax/study to",
"link": "https://www.youtube.com/watch?v=jfKfPfyJRdk",
"snippet": "24/7 livestream of chill lofi hip hop beats, perfect for studying, working, or relaxing.",
"image": "https://i.ytimg.com/vi/jfKfPfyJRdk/hqdefault.jpg",
"source": "YouTube",
"position": 1
}
Disponibilidade
100,00%
30d · 50 chamadas
Requisições
50
30d · semanal, últimas 12 sem.
Resposta
7,1s
mediana · 30d

Preços e provedores

Preços do endpoint Vídeos da API para Google: uma API, 2 provedores intercambiáveis

O provedor mais barato atende primeiro. Se ele falhar, o próximo assume na mesma chamada.

Você paga
US$ 8,50
US$ 0,85/mil req., só pelo que você usar. Sem plano mensal.
Suas primeiras 117 requisições são grátis com o saldo inicial de US$ 0,10.

Teste

Obtenha Vídeos do Google em uma só requisição

requireFieldsarray
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.
Abrir em
Obter chave grátis
Resposta de exemplo
Execuções grátis retornam só os primeiros 3 resultados. Recarregue uma chave para receber a resposta completa.

Este exemplo mostra 10 de 11 campos. Ver todos os campos

{
  "found": true,
  "data": {
    "query": "lofi hip hop",
    "results": [
      {
        "title": "lofi hip hop radio - beats to relax/study to",
        "link": "https://www.youtube.com/watch?v=jfKfPfyJRdk",
        "snippet": "24/7 livestream of chill lofi hip hop beats, perfect for studying, working, or relaxing.",
        "image": "https://i.ytimg.com/vi/jfKfPfyJRdk/hqdefault.jpg",
        "source": "YouTube",
        "position": 1
      },
      {
        "title": "Lofi Hip Hop Mix - 1 Hour of Chill Beats",
        "link": "https://www.youtube.com/watch?v=5qap5aO4i9A",
        "snippet": "A one hour mix of smooth lofi hip hop tracks with soft piano and vinyl crackle.",
        "image": "https://i.ytimg.com/vi/5qap5aO4i9A/hqdefault.jpg",
        "source": "YouTube",
        "position": 2
      },
      {
        "title": "Best Lofi Hip Hop Playlist for Coding",
        "link": "https://vimeo.com/example/lofi-coding-playlist",
        "snippet": "A curated playlist of lofi hip hop tracks selected for focus sessions and late night coding.",
        "image": "https://i.vimeocdn.com/video/example-thumb.jpg",
        "source": "Vimeo",
        "position": 3
      }
    ]
  }
}

Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.

Referência

Uma requisição, um formato de resposta.

Cada campo que você envia e cada campo que você recebe, cada um com um exemplo real.

Última verificação em 2026-11-14 · disponibilidade e latência medidas em 30d

Corpo da requisição

JSON, enviado via POST para este endpoint.

  • querystring

    lofi hip hop

    A consulta de busca de vídeos.

  • autocorrectboolean

    Liga ou desliga a correção ortográfica automática do Google (padrão true). Defina false para buscar a consulta exata, sem correção.

  • glstring

    us

    Código de país de duas letras para localizar os resultados (ex.: us, gb, de).

  • hlstring

    en

    Código de idioma de duas letras da interface e dos resultados (ex.: en, es, de).

  • locationstring

    Localização detalhada para localizar os resultados, informada como uma string canônica de localização do Google (ex.: 'New York, United States', 'London, United Kingdom'). Mais específica que o gl, que é por país.

  • requireFieldsarray

    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.

  • timeframeenum

    Restringe os resultados a uma janela de tempo recente: 1h, 1d, 7d, 1y ou all. Padrão all (sem restrição de tempo).

Você envia. Um corpo JSON pequeno. Os valores mostrados são exemplos para você trocar pelos seus.

Resposta

JSON, um valor de exemplo por campo.

datadata

Result payload, or null when nothing was found.

  • querystring

    lofi hip hop

    The query that was searched.

each resultdata.results[]

Video result records. Populated whenever the provider has data for the entity.

  • imagestring

    https://i.ytimg.com/vi/jfKfPfyJRdk/hqdefault.jpg

    Thumbnail image URL for the video.

  • linkstring

    https://www.youtube.com/watch?v=jfKfPfyJRdk

    URL to the video. When Google withholds the destination this is a Google redirect link (google.com/goto?url=...), which google.resolve_links turns into the destination URL. Populated whenever the provider has data for the entity.

  • positioninteger

    1

    1-based rank in the result list.

  • snippetstring

    24/7 livestream of chill lofi hip hop beats, perfect for studying, working, or relaxing.

    Short description snippet.

  • sourcestringpode ser exigido

    YouTube

    Host platform (e.g. YouTube, Vimeo).

  • titlestring

    lofi hip hop radio - beats to relax/study to

    Video title. Populated whenever the provider has data for the entity.

top level
  • foundboolean

    true

    True when at least one video result was returned.

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

Você recebe. Campos nomeados e tipados, no mesmo formato, seja qual for a fonte que responder.

Dúvidas frequentes

Sobre o endpoint Vídeos da API para Google

O endpoint Vídeos da AnyAPI para Google retorna dados de Google em JSON normalizado com uma chamada POST para /v1/run/google.videos. Busque resultados de vídeo no Google (YouTube e outros) com título, link, miniatura e fonte. A AnyAPI distribui cada requisição entre 2 fontes, com failover automático quando uma falha. Custa a partir de US$ 0,85 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 100,0% das chamadas ao endpoint Vídeos da API para Google feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 7,1 segundos, em 50 chamadas medidas.

Custa a partir de US$ 0,85 por mil requisições, em dólares, sem assinatura e sem mínimo mensal. Você recarrega uma carteira em dólares e cada chamada desconta dela. Algumas requisições pagas pela carteira que falham geram cobranças de processamento, que repassamos pelo custo, sem margem; a resposta de erro mostra o valor cobrado.

Busque resultados de vídeo no Google (YouTube e outros) com título, link, miniatura e fonte. A resposta é JSON normalizado, com o mesmo envelope que todo endpoint da AnyAPI retorna, então processar um segundo endpoint é só trocar a URL, e nada mais.

Nos últimos 30 dias, 100,0% das chamadas ao endpoint Vídeos da API para Google feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 7,1 segundos, em 50 chamadas medidas. Estas são medições da própria AnyAPI sobre o tráfego que passa pelo gateway, recalculadas continuamente, e não uma meta de nível de serviço publicada.

Sim. Uma conta nova da AnyAPI começa com US$ 0,10 de saldo grátis, sem cartão, o que cobre 117 chamadas de Vídeos do Google a US$ 0,00085 cada.

A AnyAPI consulta a próxima das suas 2 fontes na mesma requisição, começando pela mais barata, então a queda de uma fonte não derruba sua chamada.

Envie uma requisição POST para https://api.getanyapi.com/v1/run/google.videos com sua chave da AnyAPI em um cabeçalho "Authorization: Bearer" e a entrada como corpo JSON. A mesma chave e a mesma carteira funcionam em todos os endpoints da AnyAPI.

Não. Você adiciona dólares a um único saldo pré-pago da AnyAPI e cada requisição desconta dele. Não há plano mensal nem mínimo, e o mesmo saldo paga todos os endpoints da AnyAPI.

Sim. Instale @getanyapi/sdk pelo npm para TypeScript ou getanyapi pelo pip para Python. Os dois chamam todos os endpoints da AnyAPI com a mesma chave, e qualquer cliente HTTP também funciona.

Sim. Um agente pode se conectar ao servidor MCP da AnyAPI em https://api.getanyapi.com/mcp, ou criar a própria chave de teste grátis com um único POST sem autenticação para https://api.getanyapi.com/agent/signup e chamar este endpoint por HTTP.