API para Google: Imagens
Faça uma busca no Google Imagens e receba resultados estruturados: URLs das imagens, dimensões, títulos e páginas de origem.
Teste
Faça sua primeira requisição
{
"data": {
"items": [
{
"height": 42,
"position": 1,
"source": "https://example.com/page",
"sourceUrl": "https://example.com/page",
"thumbnailUrl": "https://example.com/image.jpg",
"title": "Example title",
"url": "https://example.com/page",
"width": 1024
}
]
},
"found": true,
"reason": "not_found"
}interface GoogleImagesResponse {
data: {
items: {
height?: number;
position?: number;
source?: string;
sourceUrl?: string;
thumbnailUrl?: string;
title: string;
url: string;
width?: number;
}[];
} | null;
found: boolean;
reason?: "not_found";
}Referência completa de parâmetros e resposta - todos os campos, tipos e exemplos deste endpoint.
Referência
Requisição, resposta e preço
Última verificação em 2026-09-29 · disponibilidade e latência medidas em 30dcurl -X POST https://api.getanyapi.com/v1/run/google.images \
-H "Authorization: Bearer $ANYAPI_KEY" \
-H "Content-Type: application/json" \
-d '{"gl":"us","hl":"en","limit":5,"query":"golden retriever"}'| Campo | Tipo | Valor de exemplo |
|---|---|---|
| Corpo da requisição | ||
| query | string | "golden retriever"Consulta da busca de imagens (ex.: golden gate bridge at sunset). |
| autocorrect | boolean | 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. |
| gl | string | "us"Código de país de duas letras para localizar os resultados (ex.: us, gb, de). |
| hl | string | "en"Código de idioma de duas letras da interface e dos resultados (ex.: en, es, de). |
| limit | integer | 5Número máximo de imagens a retornar (1-100, padrão 20). Requisições de 10 resultados ou menos são cobradas a uma tarifa menor que as maiores. |
| location | string | 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. |
| timeframe | enum | Restringe os resultados a uma janela de tempo recente: 1h, 1d, 7d, 1y ou all. Padrão all (sem restrição de tempo). |
| Resposta | ||
| data | object | The result wrapper, or null when nothing was found. |
| data.items | object[] | Image result records: image URL, dimensions, title, and the source page it appears on. Populated whenever the provider has data for the entity. |
| data.items[].height | integer | Full image height in pixels. |
| data.items[].position | integer | One-based position of this image in Google's result order. |
| data.items[].source | string | Host domain of the page the image appears on. Populated whenever the provider has data for the entity. |
| data.items[].sourceUrl | string | URL of the page the image appears on. Populated whenever the provider has data for the entity. |
| data.items[].thumbnailUrl | string | URL to a thumbnail of the image. |
| data.items[].title | string | Image result title. Populated whenever the provider has data for the entity. |
| data.items[].url | string | Direct URL to the full-size image. Populated whenever the provider has data for the entity. |
| data.items[].width | integer | Full image width in pixels. |
| found | boolean | True when at least one image 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. |
| Preço | ||
| Preço por requisição (teto) | USD | US$ 0,00198 |
| Preço /mil resultados | USD | US$ 0,18 |
Dúvidas frequentes
Sobre o endpoint Imagens da API para Google
O endpoint Imagens da AnyAPI para Google retorna dados de Google em JSON normalizado com uma chamada POST para /v1/run/google.images. Faça uma busca no Google Imagens e receba resultados estruturados: URLs das imagens, dimensões, títulos e páginas de origem. A AnyAPI retorna um schema normalizado, seja qual for a fonte que atende. Custa US$ 0,18 por mil resultados, e nunca mais de US$ 0,00198 por requisição, em dólares, sem assinatura e sem mínimo mensal. Nos últimos 30 dias, 100,0% das chamadas ao endpoint Imagens da API para Google feitas pela AnyAPI tiveram sucesso, com tempo de resposta mediano de 1,2 segundos, em 846 chamadas medidas.