API Hop

Documentación

Documentación de API Hop

Referencia de Google Search

Google Search: Búsqueda web · Respuestas de AI Mode · Resúmenes de IA · Búsqueda ligera · Sugerencias de búsqueda · Preguntas relacionadas · Búsqueda en foros · Anuncios de búsqueda · Información de la fuente · Búsqueda de creatividades · Detalles de creatividades.

Límite de concurrencia

IA y Data comparten cada uno un grupo de solicitudes simultáneas por cuenta: 5 IA / 2 Data por defecto, según la suscripción. Los límites específicos de endpoints también están sujetos al límite de categoría. Alcanzar cualquiera de los límites devuelve HTTP 429. Las tareas asíncronas ocupan una plaza hasta finalizar su ejecución.

GET /v1/google-search/search
Límite predeterminado: 2
GET /v1/google-search/ai-mode
Límite predeterminado: 2
GET /v1/google-search/ai-overview
Límite predeterminado: 2
GET /v1/google-search/light
Límite predeterminado: 2
GET /v1/google-search/autocomplete
Límite predeterminado: 2
GET /v1/google-search/related-questions
Límite predeterminado: 2
GET /v1/google-search/forums
Límite predeterminado: 2
GET /v1/google-search/ads
Límite predeterminado: 2
GET /v1/google-search/about-this-result
Límite predeterminado: 2
GET /v1/google-search/ads-transparency
Límite predeterminado: 2
GET /v1/google-search/ads-transparency-details
Límite predeterminado: 2

Google Search: Búsqueda web · Respuestas de AI Mode · Resúmenes de IA · Búsqueda ligera · Sugerencias de búsqueda · Preguntas relacionadas · Búsqueda en foros · Anuncios de búsqueda · Información de la fuente · Búsqueda de creatividades · Detalles de creatividades.

Autenticación y facturación

El precio predeterminado es $0.0003 (300 credits) por solicitud correcta. Usa tu clave API API Hop. El acceso depende de las pasarelas activas y los permisos. Consulta el catálogo y tu cuenta para el precio por solicitud correcta; prevalece el precio de la cuenta. Los resultados vacíos correctos se cobran. Los fallos liberan la reserva. Límite: 60 segundos, sin reintentos ni paginación automática. Un fallo de liquidación no repite la solicitud al proveedor.

http
Authorization: Bearer YOUR_API_KEY

Solo parámetros de consulta, sin cuerpo. Se rechazan valores desconocidos, repetidos, vacíos o inválidos. Solo JSON, sin paginación ni reintentos automáticos. Copie los ID y tokens de respuestas recientes. Los ejemplos son ilustrativos. Cada consulta completada se cobra por separado, incluidos los resultados vacíos o no disponibles confirmados. XOR = uno solo, NOT = excluido, => = requiere.

GET https://api.apihop.ai/v1/google-search/search

Parámetros

CampoTipoLímitesEjemplo
urlstringDirección HTTPS completa de búsqueda (url); url: optional; maxLength: 32768https://www.google.com/search?q=coffee%20beans&hl=en&gl=us
device_osstringSistema operativo móvil (device_os); device_os: optional; android, iosios
querystringTexto de búsqueda; query: optional; minLength: 1; maxLength: 24576; UTF-8 bytes: 8192coffee
query_encodedbooleanConsulta ya codificada como URL (query_encoded); query_encoded: optionaltrue
uulestringRegión (uule); uule: optional; minLength: 3; maxLength: 4096; ^[wa]\+(?:[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}$w+CAIQICIaQXVzdGluLFRleGFzLFVuaXRlZCBTdGF0ZXM
rewrite_linksbooleanResolver redirecciones HTML (rewrite_links); rewrite_links: optionaltrue
zero_tracebooleanNo archivar respuestas; zero_trace: optionaltrue
devicestringDispositivo; device: optional; mobile, tablet, desktopmobile
safestringFiltro de resultados (safe); safe: optional; active, offactive
color_schemestringTema de color (color_scheme); color_scheme: optional; light, darklight
ludocidstringModo de búsqueda o selector nativo (ludocid); ludocid: optional; maxLength: 20-
lsigstringModo de búsqueda o selector nativo (lsig); lsig: optional; maxLength: 2048-
kgmidstringModo de búsqueda o selector nativo (kgmid); kgmid: optional; maxLength: 131-
sistringModo de búsqueda o selector nativo (si); si: optional; maxLength: 8192-
ibpstringModo de búsqueda o selector nativo (ibp); ibp: optional; maxLength: 2048-
udsstringModo de búsqueda o selector nativo (uds); uds: optional; maxLength: 8192-
pwsintegerFiltro de resultados (pws); pws: optional; 0, 10
nfprintegerFiltro de resultados (nfpr); nfpr: optional; 0, 10
filterintegerFiltro de resultados (filter); filter: optional; 0, 10
lrstringFiltro de idioma (lr); lr: optional; ^lang_[a-z]{2,3}(\|lang_[a-z]{2,3})*$lang_fr
crstringFiltro de país (cr); cr: optional; ^country[A-Za-z]{2}(\|country[A-Za-z]{2})*$countryFR
startintegerPosición de resultados; start: optional; min: 010
google_domainstringDominio del buscador (google_domain); google_domain: optional; google.com, google.ad, google.ae, google.com.af, google.com.ag, google.al, google.am, google.co.ao, google.com.ar, google.as, ... 186google.co.uk
glstringFiltro de país (gl); gl: optional; ad, ae, af, ag, ai, al, am, an, ao, aq, ... 252ad
hlstringFiltro de idioma (hl); hl: optional; af, sq, am, ar, hy, az, bn, bg, my, ca, ... 76af
locationstringLugar de búsqueda; Fuente; location: optional; minLength: 1Austin,Texas,United States
coordinatesstringCoordenadas JSON (latitude, longitude) (coordinates); coordinates: optional{"latitude":30.2672,"longitude":-97.7431}
radiusintegerRadio en metros (radius); radius: optional; min: 1; max: 1000150
tbsstringIntervalo de tiempo (tbs); tbs: optionalqdr:h
tbmstringModo de búsqueda o selector nativo (tbm); tbm: optional; nws, vid, isch, shop, lcl, bksnws
udmintegerModo de búsqueda o selector nativo (udm); udm: optional; 1, 2, 6, 7, 12, 14, 28, 36, 502

Validación

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
  • coordinates: JSON object {"latitude":number,"longitude":number}; latitude -90..90; longitude -180..180; NOT (location AND coordinates); NOT (uule AND location); NOT (uule AND coordinates)
  • radius => coordinates; NOT uule; desktop radius <= 199 meters, mobile/tablet radius <= 1000 meters
  • device_os => device = mobile OR tablet
  • query XOR url; tbm XOR udm when selecting a search tab
  • query: <= 8192 UTF-8 bytes after decoding; query_encoded=true => URL-encoded query value, not a URL or q= prefix
  • url: HTTPS Google /search with nonempty q or as_q; only device, device_os, zero_trace and rewrite_links may accompany url
  • ludocid: nonzero unsigned 64-bit decimal string; preserve numeric precision

Ejemplos

bash
curl --get "https://api.apihop.ai/v1/google-search/search" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=coffee"

Google Search: Respuestas de AI Mode

GET https://api.apihop.ai/v1/google-search/ai-mode

Parámetros

CampoTipoLímitesEjemplo
querystringTexto de búsqueda; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192how do solar panels work
countrystringFiltro de país (country); country: optional; ^[A-Za-z]{2}$-
languagestringIdioma; language: optional-
devicestringDispositivo; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanNo archivar respuestas; zero_trace: optionaltrue
locationstringLugar de búsqueda; location: optional-
coordinatesstringCoordenadas JSON (latitude, longitude) (coordinates); coordinates: optional{"latitude":30.2672,"longitude":-97.7431}
uulestringRegión (uule); uule: optional; maxLength: 4096-
image_urlstringDirección HTTPS pública de imagen (image_url); image_url: optional; maxLength: 2048-
continuablebooleanActivar token para preguntas posteriores (continuable); continuable: optionaltrue
subsequent_request_tokenstringToken de una respuesta reciente (subsequent_request_token); subsequent_request_token: optional; maxLength: 24576-

Validación

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
  • coordinates: JSON object {"latitude":number,"longitude":number}; latitude -90..90; longitude -180..180; NOT (location AND coordinates); NOT (uule AND location); NOT (uule AND coordinates)
  • continuable=true: return a conversation token; subsequent_request_token: new query, optional image_url, same original locale/location; token expires after 15 minutes or earlier at the source
  • image_url: public HTTPS image URL; no credentials, fragment or port

Ejemplos

bash
curl --get "https://api.apihop.ai/v1/google-search/ai-mode" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=how do solar panels work"

Google Search: Resúmenes de IA

GET https://api.apihop.ai/v1/google-search/ai-overview

Parámetros

CampoTipoLímitesEjemplo
querystringTexto de búsqueda; query: optional; minLength: 1; UTF-8 bytes: 8192how do solar panels work
countrystringFiltro de país (country); country: optional; ^[A-Za-z]{2}$-
languagestringIdioma; language: optional-
devicestringDispositivo; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanNo archivar respuestas; zero_trace: optionaltrue
page_tokenstringToken de una respuesta reciente (page_token); page_token: optional; maxLength: 24576-

Validación

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
  • query XOR page_token; page_token: copy from a fresh search response; preserve original query and locale
  • page_token: use within one minute; valid page without AI Overview => feature_available=false

Ejemplos

bash
curl --get "https://api.apihop.ai/v1/google-search/ai-overview" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=how do solar panels work"

GET https://api.apihop.ai/v1/google-search/light

Parámetros

CampoTipoLímitesEjemplo
querystringTexto de búsqueda; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192coffee
countrystringFiltro de país (country); country: optional; ^[A-Za-z]{2}$-
languagestringIdioma; language: optional-
pageintegerPágina desde 1; page: optional; min: 1; max: 10001
locationstringLugar de búsqueda; location: optional-
safestringFiltro de resultados (safe); safe: optional; active, offactive
time_rangestringIntervalo de tiempo (time_range); time_range: optional-
devicestringDispositivo; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanNo archivar respuestas; zero_trace: optionaltrue
coordinatesstringCoordenadas JSON (latitude, longitude) (coordinates); coordinates: optional{"latitude":30.2672,"longitude":-97.7431}
uulestringRegión (uule); uule: optional; maxLength: 4096-
google_domainstringDominio del buscador (google_domain); google_domain: optional-
lrstringFiltro de idioma (lr); lr: optional; ^lang_[a-z]{2,3}(?:\&#124;lang_[a-z]{2,3})*$-
nfprintegerFiltro de resultados (nfpr); nfpr: optional; 0, 10
filterintegerFiltro de resultados (filter); filter: optional; 0, 10
startintegerPosición de resultados; start: optional; min: 0; max: 10000

Validación

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
  • coordinates: JSON object {"latitude":number,"longitude":number}; latitude -90..90; longitude -180..180; NOT (location AND coordinates); NOT (uule AND location); NOT (uule AND coordinates)

Ejemplos

bash
curl --get "https://api.apihop.ai/v1/google-search/light" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=coffee"

Google Search: Sugerencias de búsqueda

GET https://api.apihop.ai/v1/google-search/autocomplete

Parámetros

CampoTipoLímitesEjemplo
querystringTexto de búsqueda; query: REQUIRED; minLength: 1; maxLength: 100; UTF-8 bytes: 8192coffee
countrystringFiltro de país (country); country: optional; ^[A-Za-z]{2}$-
languagestringIdioma; language: optional-
limitintegerLímite de resultados; limit: optional; min: 1; max: 201
devicestringDispositivo; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanNo archivar respuestas; zero_trace: optionaltrue
clientstringModo de búsqueda o selector nativo (client); client: optional; chrome, chrome-omni, gws-wiz, safari, firefox, psy-ab, toolbar, youtube, gws-wiz-localchrome
cpintegerPosición del cursor (cp); cp: optional; min: 0; max: 81920

Validación

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected

Ejemplos

bash
curl --get "https://api.apihop.ai/v1/google-search/autocomplete" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=coffee"

GET https://api.apihop.ai/v1/google-search/related-questions

Parámetros

CampoTipoLímitesEjemplo
querystringTexto de búsqueda; query: optional; minLength: 1; UTF-8 bytes: 8192how do solar panels work
countrystringFiltro de país (country); country: optional; ^[A-Za-z]{2}$-
languagestringIdioma; language: optional-
devicestringDispositivo; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanNo archivar respuestas; zero_trace: optionaltrue
next_page_tokenstringToken de una respuesta reciente (next_page_token); next_page_token: optional; minLength: 1; maxLength: 24576-

Validación

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
  • next_page_token: copy from a fresh response; keep original query, localization and filters; do not fabricate tokens
  • query OR next_page_token: required; result tokens expand an individual question

Ejemplos

bash
curl --get "https://api.apihop.ai/v1/google-search/related-questions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=how do solar panels work"

GET https://api.apihop.ai/v1/google-search/forums

Parámetros

CampoTipoLímitesEjemplo
querystringTexto de búsqueda; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192best coffee grinder
countrystringFiltro de país (country); country: optional; ^[A-Za-z]{2}$-
languagestringIdioma; language: optional-
pageintegerPágina desde 1; page: optional; min: 1; max: 10001
locationstringLugar de búsqueda; location: optional-
safestringFiltro de resultados (safe); safe: optional; active, offactive
time_rangestringIntervalo de tiempo (time_range); time_range: optional-
devicestringDispositivo; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanNo archivar respuestas; zero_trace: optionaltrue
coordinatesstringCoordenadas JSON (latitude, longitude) (coordinates); coordinates: optional{"latitude":30.2672,"longitude":-97.7431}
uulestringRegión (uule); uule: optional; maxLength: 4096-
nfprintegerFiltro de resultados (nfpr); nfpr: optional; 0, 10
filterintegerFiltro de resultados (filter); filter: optional; 0, 10
startintegerPosición de resultados; start: optional; min: 0; max: 10000
tbsstringIntervalo de tiempo (tbs); tbs: optional; maxLength: 512-
period_unitstringIntervalo de tiempo (period_unit); period_unit: optional; s, n, h, d, w, m, ys
period_valueintegerIntervalo de tiempo (period_value); period_value: optional; min: 1; max: 21474836471
start_datestringLímite de fecha (start_date); start_date: optional; ^[0-9]{8}$-
end_datestringLímite de fecha (end_date); end_date: optional; ^[0-9]{8}$-

Validación

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
  • coordinates: JSON object {"latitude":number,"longitude":number}; latitude -90..90; longitude -180..180; NOT (location AND coordinates); NOT (uule AND location); NOT (uule AND coordinates)

Ejemplos

bash
curl --get "https://api.apihop.ai/v1/google-search/forums" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=best coffee grinder"

Google Search: Anuncios de búsqueda

GET https://api.apihop.ai/v1/google-search/ads

Parámetros

CampoTipoLímitesEjemplo
querystringTexto de búsqueda; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192car insurance
countrystringFiltro de país (country); country: optional; ^[A-Za-z]{2}$-
languagestringIdioma; language: optional-
locationstringLugar de búsqueda; location: optional-
devicestringDispositivo; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanNo archivar respuestas; zero_trace: optionaltrue
coordinatesstringCoordenadas JSON (latitude, longitude) (coordinates); coordinates: optional{"latitude":30.2672,"longitude":-97.7431}
safestringFiltro de resultados (safe); safe: optional; active, offactive
nfprintegerFiltro de resultados (nfpr); nfpr: optional; 0, 10

Validación

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
  • coordinates: JSON object {"latitude":number,"longitude":number}; latitude -90..90; longitude -180..180; NOT (location AND coordinates); NOT (uule AND location); NOT (uule AND coordinates)
  • valid page without ads => ads_available=false; this endpoint reads ads and does not create campaigns

Ejemplos

bash
curl --get "https://api.apihop.ai/v1/google-search/ads" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=car insurance"

Google Search: Información de la fuente

GET https://api.apihop.ai/v1/google-search/about-this-result

Parámetros

CampoTipoLímitesEjemplo
querystringTexto de búsqueda (website URL; query XOR req_token); query: optional; minLength: 1; UTF-8 bytes: 8192https://www.starbucks.com/
req_tokenstringToken de una respuesta reciente (req_token); req_token: optional; maxLength: 16384; ^[A-Za-z0-9_-]+={0,2}$-
countrystringFiltro de país (country); country: optional; ^[A-Za-z]{2}$-
languagestringIdioma; language: optional-
google_domainstringDominio del buscador (google_domain); google_domain: optional-
zero_tracebooleanNo archivar respuestas; zero_trace: optionaltrue

Validación

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
  • query XOR req_token; query: website URL; req_token: copy from a fresh About This Result selector

Ejemplos

bash
curl --get "https://api.apihop.ai/v1/google-search/about-this-result" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=https://www.starbucks.com/"

GET https://api.apihop.ai/v1/google-search/ads-transparency

Parámetros

CampoTipoLímitesEjemplo
querystringTexto de búsqueda; query: optional; minLength: 1; UTF-8 bytes: 8192nike.com
countrystringFiltro de país (country); country: optional; ad, ae, af, ag, ai, al, am, ao, aq, ar, ... 244; ^[A-Za-z]{2}$ad
languagestringIdioma; language: optional-
limitintegerLímite de resultados; limit: optional; min: 1; max: 1001
idstringID nativo (id); id: optional-
categorystringModo de búsqueda o selector nativo (category); category: optional; image, text, videoimage
next_page_tokenstringToken de una respuesta reciente (next_page_token); next_page_token: optional; minLength: 1; maxLength: 24576-
devicestringDispositivo; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanNo archivar respuestas; zero_trace: optionaltrue
advertiser_idstringID nativo (advertiser_id); advertiser_id: optional; maxLength: 3499-
platformstringModo de búsqueda o selector nativo (platform); platform: optional; PLAY, MAPS, SEARCH, SHOPPING, YOUTUBEPLAY
political_adsbooleanFiltro de resultados (political_ads); political_ads: optionaltrue
get_advertiserbooleanDetalles del anunciante (get_advertiser); get_advertiser: optionaltrue
regionstringRegión (region); Ejemplos: US=2840; region: optional; anywhere, 2004, 2008, 2010, 2012, 2016, 2020, 2024, 2028, 2031, ... 245; maxLength: 8anywhere
start_datestringLímite de fecha (start_date); start_date: optional; ^[0-9]{8}$-
end_datestringLímite de fecha (end_date); end_date: optional; ^[0-9]{8}$-
creative_formatstringModo de búsqueda o selector nativo (creative_format); creative_format: optional; image, text, videoimage

Validación

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
  • next_page_token: copy from a fresh response; keep original query, localization and filters; do not fabricate tokens
  • exactly one of query, id, advertiser_id; category XOR creative_format when selecting a creative format
  • id, advertiser_id: AR-prefixed IDs, comma-separated, up to 100; get_advertiser=true => exactly one advertiser ID
  • political_ads=true => explicit country or region other than anywhere; start_date < end_date; dates must exist

Ejemplos

bash
curl --get "https://api.apihop.ai/v1/google-search/ads-transparency" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "query=nike.com"

Google Search: Detalles de creatividades

GET https://api.apihop.ai/v1/google-search/ads-transparency-details

Parámetros

CampoTipoLímitesEjemplo
advertiser_idstringID nativo (advertiser_id); advertiser_id: REQUIRED; maxLength: 34; ^AR[0-9]{1,32}$${ADVERTISER_ID}
creative_idstringID nativo (creative_id); creative_id: REQUIRED; maxLength: 34; ^CR[0-9]{1,32}$${CREATIVE_ID}
regionstringRegión (region); region: optional; anywhere, 2004, 2008, 2010, 2012, 2016, 2020, 2024, 2028, 2031, ... 245anywhere
zero_tracebooleanNo archivar respuestas; zero_trace: optionaltrue

Validación

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • boolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
  • advertiser_id AND creative_id: copy from a fresh ads-transparency response; sample identifiers do not prove availability

Ejemplos

bash
curl --get "https://api.apihop.ai/v1/google-search/ads-transparency-details" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "advertiser_id=${ADVERTISER_ID}" \
  --data-urlencode "creative_id=${CREATIVE_ID}"

Respuestas y errores

Se conservan JSON nativo y precisión. Ejemplo de resultado vacío correcto. HTTP 400: entrada; 401: autenticación; 402: saldo; 403: acceso; 405: método; 429: límite; 5xx: servicio. Guarda X-Request-Id.

json
{
  "success": true,
  "request_id": "example-request",
  "data": {
    "format": "json",
    "content": {
      "results": []
    }
  }
}