API Hop

Documentation

Documentation API Hop

Référence Google Search

Google Search: Recherche web · Réponses AI Mode · Résumés IA · Recherche légère · Suggestions de recherche · Questions associées · Recherche dans les forums · Annonces de recherche · Informations sur la source · Recherche de créations publicitaires · Détails des créations publicitaires.

Limite de simultanéité

IA et Data partagent chacun un quota de requêtes simultanées au niveau du compte : 5 IA / 2 Data par défaut, selon l’abonnement. Les limites propres aux points de terminaison restent soumises au quota de catégorie. Atteindre une limite renvoie HTTP 429. Les tâches asynchrones occupent une place jusqu’à la fin de leur exécution.

GET /v1/google-search/search
Limite par défaut: 2
GET /v1/google-search/ai-mode
Limite par défaut: 2
GET /v1/google-search/ai-overview
Limite par défaut: 2
GET /v1/google-search/light
Limite par défaut: 2
GET /v1/google-search/autocomplete
Limite par défaut: 2
GET /v1/google-search/related-questions
Limite par défaut: 2
GET /v1/google-search/forums
Limite par défaut: 2
GET /v1/google-search/ads
Limite par défaut: 2
GET /v1/google-search/about-this-result
Limite par défaut: 2
GET /v1/google-search/ads-transparency
Limite par défaut: 2
GET /v1/google-search/ads-transparency-details
Limite par défaut: 2

Google Search: Recherche web · Réponses AI Mode · Résumés IA · Recherche légère · Suggestions de recherche · Questions associées · Recherche dans les forums · Annonces de recherche · Informations sur la source · Recherche de créations publicitaires · Détails des créations publicitaires.

Authentification et facturation

Le tarif par défaut est de $0.0003 (300 credits) par requête réussie. Utilisez votre clé API API Hop. L’accès dépend des passerelles actives et des droits de la clé. Consultez le catalogue et votre compte pour le prix par requête réussie ; les prix du compte prévalent. Un résultat vide réussi est facturable. Un échec libère la réservation. Délai : 60 secondes, sans nouvelle tentative ni pagination automatique. Une erreur de règlement ne répète pas la requête fournisseur.

http
Authorization: Bearer YOUR_API_KEY

Paramètres de requête uniquement, sans corps. Les valeurs inconnues, répétées, vides ou invalides sont refusées. JSON uniquement, sans pagination ni nouvelle tentative automatique. Copier les identifiants et jetons de réponses récentes. Les exemples sont illustratifs. Chaque recherche terminée est facturée séparément, y compris les résultats vides ou indisponibles confirmés. XOR = un seul, NOT = exclu, => = exige.

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

Paramètres

ChampTypeLimitesExemple
urlstringAdresse HTTPS complète de recherche (url); url: optional; maxLength: 32768https://www.google.com/search?q=coffee%20beans&hl=en&gl=us
device_osstringSystème mobile (device_os); device_os: optional; android, iosios
querystringTexte de recherche; query: optional; minLength: 1; maxLength: 24576; UTF-8 bytes: 8192coffee
query_encodedbooleanRequête déjà encodée en URL (query_encoded); query_encoded: optionaltrue
uulestringRégion (uule); uule: optional; minLength: 3; maxLength: 4096; ^[wa]\+(?:[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}$w+CAIQICIaQXVzdGluLFRleGFzLFVuaXRlZCBTdGF0ZXM
rewrite_linksbooleanRésoudre les redirections HTML (rewrite_links); rewrite_links: optionaltrue
zero_tracebooleanNe pas archiver les réponses; zero_trace: optionaltrue
devicestringAppareil; device: optional; mobile, tablet, desktopmobile
safestringFiltre des résultats (safe); safe: optional; active, offactive
color_schemestringThème de couleurs (color_scheme); color_scheme: optional; light, darklight
ludocidstringMode de recherche ou sélecteur natif (ludocid); ludocid: optional; maxLength: 20-
lsigstringMode de recherche ou sélecteur natif (lsig); lsig: optional; maxLength: 2048-
kgmidstringMode de recherche ou sélecteur natif (kgmid); kgmid: optional; maxLength: 131-
sistringMode de recherche ou sélecteur natif (si); si: optional; maxLength: 8192-
ibpstringMode de recherche ou sélecteur natif (ibp); ibp: optional; maxLength: 2048-
udsstringMode de recherche ou sélecteur natif (uds); uds: optional; maxLength: 8192-
pwsintegerFiltre des résultats (pws); pws: optional; 0, 10
nfprintegerFiltre des résultats (nfpr); nfpr: optional; 0, 10
filterintegerFiltre des résultats (filter); filter: optional; 0, 10
lrstringFiltre de langue (lr); lr: optional; ^lang_[a-z]{2,3}(\|lang_[a-z]{2,3})*$lang_fr
crstringFiltre de pays (cr); cr: optional; ^country[A-Za-z]{2}(\|country[A-Za-z]{2})*$countryFR
startintegerDécalage des résultats; start: optional; min: 010
google_domainstringDomaine du moteur (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
glstringFiltre de pays (gl); gl: optional; ad, ae, af, ag, ai, al, am, an, ao, aq, ... 252ad
hlstringFiltre de langue (hl); hl: optional; af, sq, am, ar, hy, az, bn, bg, my, ca, ... 76af
locationstringLieu de recherche; Source; location: optional; minLength: 1Austin,Texas,United States
coordinatesstringCoordonnées JSON (latitude, longitude) (coordinates); coordinates: optional{"latitude":30.2672,"longitude":-97.7431}
radiusintegerRayon en mètres (radius); radius: optional; min: 1; max: 1000150
tbsstringPériode (tbs); tbs: optionalqdr:h
tbmstringMode de recherche ou sélecteur natif (tbm); tbm: optional; nws, vid, isch, shop, lcl, bksnws
udmintegerMode de recherche ou sélecteur natif (udm); udm: optional; 1, 2, 6, 7, 12, 14, 28, 36, 502

Validation

  • 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

Exemples

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

Google Search: Réponses AI Mode

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

Paramètres

ChampTypeLimitesExemple
querystringTexte de recherche; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192how do solar panels work
countrystringFiltre de pays (country); country: optional; ^[A-Za-z]{2}$-
languagestringLangue; language: optional-
devicestringAppareil; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanNe pas archiver les réponses; zero_trace: optionaltrue
locationstringLieu de recherche; location: optional-
coordinatesstringCoordonnées JSON (latitude, longitude) (coordinates); coordinates: optional{"latitude":30.2672,"longitude":-97.7431}
uulestringRégion (uule); uule: optional; maxLength: 4096-
image_urlstringAdresse HTTPS publique de l’image (image_url); image_url: optional; maxLength: 2048-
continuablebooleanActiver le jeton de suivi (continuable); continuable: optionaltrue
subsequent_request_tokenstringJeton d’une réponse récente (subsequent_request_token); subsequent_request_token: optional; maxLength: 24576-

Validation

  • 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

Exemples

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: Résumés IA

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

Paramètres

ChampTypeLimitesExemple
querystringTexte de recherche; query: optional; minLength: 1; UTF-8 bytes: 8192how do solar panels work
countrystringFiltre de pays (country); country: optional; ^[A-Za-z]{2}$-
languagestringLangue; language: optional-
devicestringAppareil; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanNe pas archiver les réponses; zero_trace: optionaltrue
page_tokenstringJeton d’une réponse récente (page_token); page_token: optional; maxLength: 24576-

Validation

  • 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

Exemples

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

Paramètres

ChampTypeLimitesExemple
querystringTexte de recherche; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192coffee
countrystringFiltre de pays (country); country: optional; ^[A-Za-z]{2}$-
languagestringLangue; language: optional-
pageintegerPage à partir de 1; page: optional; min: 1; max: 10001
locationstringLieu de recherche; location: optional-
safestringFiltre des résultats (safe); safe: optional; active, offactive
time_rangestringPériode (time_range); time_range: optional-
devicestringAppareil; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanNe pas archiver les réponses; zero_trace: optionaltrue
coordinatesstringCoordonnées JSON (latitude, longitude) (coordinates); coordinates: optional{"latitude":30.2672,"longitude":-97.7431}
uulestringRégion (uule); uule: optional; maxLength: 4096-
google_domainstringDomaine du moteur (google_domain); google_domain: optional-
lrstringFiltre de langue (lr); lr: optional; ^lang_[a-z]{2,3}(?:\&#124;lang_[a-z]{2,3})*$-
nfprintegerFiltre des résultats (nfpr); nfpr: optional; 0, 10
filterintegerFiltre des résultats (filter); filter: optional; 0, 10
startintegerDécalage des résultats; start: optional; min: 0; max: 10000

Validation

  • 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)

Exemples

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

Google Search: Suggestions de recherche

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

Paramètres

ChampTypeLimitesExemple
querystringTexte de recherche; query: REQUIRED; minLength: 1; maxLength: 100; UTF-8 bytes: 8192coffee
countrystringFiltre de pays (country); country: optional; ^[A-Za-z]{2}$-
languagestringLangue; language: optional-
limitintegerLimite des résultats; limit: optional; min: 1; max: 201
devicestringAppareil; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanNe pas archiver les réponses; zero_trace: optionaltrue
clientstringMode de recherche ou sélecteur natif (client); client: optional; chrome, chrome-omni, gws-wiz, safari, firefox, psy-ab, toolbar, youtube, gws-wiz-localchrome
cpintegerPosition du curseur (cp); cp: optional; min: 0; max: 81920

Validation

  • 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

Exemples

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

Paramètres

ChampTypeLimitesExemple
querystringTexte de recherche; query: optional; minLength: 1; UTF-8 bytes: 8192how do solar panels work
countrystringFiltre de pays (country); country: optional; ^[A-Za-z]{2}$-
languagestringLangue; language: optional-
devicestringAppareil; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanNe pas archiver les réponses; zero_trace: optionaltrue
next_page_tokenstringJeton d’une réponse récente (next_page_token); next_page_token: optional; minLength: 1; maxLength: 24576-

Validation

  • 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

Exemples

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

Paramètres

ChampTypeLimitesExemple
querystringTexte de recherche; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192best coffee grinder
countrystringFiltre de pays (country); country: optional; ^[A-Za-z]{2}$-
languagestringLangue; language: optional-
pageintegerPage à partir de 1; page: optional; min: 1; max: 10001
locationstringLieu de recherche; location: optional-
safestringFiltre des résultats (safe); safe: optional; active, offactive
time_rangestringPériode (time_range); time_range: optional-
devicestringAppareil; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanNe pas archiver les réponses; zero_trace: optionaltrue
coordinatesstringCoordonnées JSON (latitude, longitude) (coordinates); coordinates: optional{"latitude":30.2672,"longitude":-97.7431}
uulestringRégion (uule); uule: optional; maxLength: 4096-
nfprintegerFiltre des résultats (nfpr); nfpr: optional; 0, 10
filterintegerFiltre des résultats (filter); filter: optional; 0, 10
startintegerDécalage des résultats; start: optional; min: 0; max: 10000
tbsstringPériode (tbs); tbs: optional; maxLength: 512-
period_unitstringPériode (period_unit); period_unit: optional; s, n, h, d, w, m, ys
period_valueintegerPériode (period_value); period_value: optional; min: 1; max: 21474836471
start_datestringLimite de date (start_date); start_date: optional; ^[0-9]{8}$-
end_datestringLimite de date (end_date); end_date: optional; ^[0-9]{8}$-

Validation

  • 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)

Exemples

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: Annonces de recherche

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

Paramètres

ChampTypeLimitesExemple
querystringTexte de recherche; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192car insurance
countrystringFiltre de pays (country); country: optional; ^[A-Za-z]{2}$-
languagestringLangue; language: optional-
locationstringLieu de recherche; location: optional-
devicestringAppareil; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanNe pas archiver les réponses; zero_trace: optionaltrue
coordinatesstringCoordonnées JSON (latitude, longitude) (coordinates); coordinates: optional{"latitude":30.2672,"longitude":-97.7431}
safestringFiltre des résultats (safe); safe: optional; active, offactive
nfprintegerFiltre des résultats (nfpr); nfpr: optional; 0, 10

Validation

  • 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

Exemples

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

Google Search: Informations sur la source

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

Paramètres

ChampTypeLimitesExemple
querystringTexte de recherche (website URL; query XOR req_token); query: optional; minLength: 1; UTF-8 bytes: 8192https://www.starbucks.com/
req_tokenstringJeton d’une réponse récente (req_token); req_token: optional; maxLength: 16384; ^[A-Za-z0-9_-]+={0,2}$-
countrystringFiltre de pays (country); country: optional; ^[A-Za-z]{2}$-
languagestringLangue; language: optional-
google_domainstringDomaine du moteur (google_domain); google_domain: optional-
zero_tracebooleanNe pas archiver les réponses; zero_trace: optionaltrue

Validation

  • 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

Exemples

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

Paramètres

ChampTypeLimitesExemple
querystringTexte de recherche; query: optional; minLength: 1; UTF-8 bytes: 8192nike.com
countrystringFiltre de pays (country); country: optional; ad, ae, af, ag, ai, al, am, ao, aq, ar, ... 244; ^[A-Za-z]{2}$ad
languagestringLangue; language: optional-
limitintegerLimite des résultats; limit: optional; min: 1; max: 1001
idstringIdentifiant natif (id); id: optional-
categorystringMode de recherche ou sélecteur natif (category); category: optional; image, text, videoimage
next_page_tokenstringJeton d’une réponse récente (next_page_token); next_page_token: optional; minLength: 1; maxLength: 24576-
devicestringAppareil; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanNe pas archiver les réponses; zero_trace: optionaltrue
advertiser_idstringIdentifiant natif (advertiser_id); advertiser_id: optional; maxLength: 3499-
platformstringMode de recherche ou sélecteur natif (platform); platform: optional; PLAY, MAPS, SEARCH, SHOPPING, YOUTUBEPLAY
political_adsbooleanFiltre des résultats (political_ads); political_ads: optionaltrue
get_advertiserbooleanDétails de l’annonceur (get_advertiser); get_advertiser: optionaltrue
regionstringRégion (region); Exemples: US=2840; region: optional; anywhere, 2004, 2008, 2010, 2012, 2016, 2020, 2024, 2028, 2031, ... 245; maxLength: 8anywhere
start_datestringLimite de date (start_date); start_date: optional; ^[0-9]{8}$-
end_datestringLimite de date (end_date); end_date: optional; ^[0-9]{8}$-
creative_formatstringMode de recherche ou sélecteur natif (creative_format); creative_format: optional; image, text, videoimage

Validation

  • 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

Exemples

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: Détails des créations publicitaires

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

Paramètres

ChampTypeLimitesExemple
advertiser_idstringIdentifiant natif (advertiser_id); advertiser_id: REQUIRED; maxLength: 34; ^AR[0-9]{1,32}$${ADVERTISER_ID}
creative_idstringIdentifiant natif (creative_id); creative_id: REQUIRED; maxLength: 34; ^CR[0-9]{1,32}$${CREATIVE_ID}
regionstringRégion (region); region: optional; anywhere, 2004, 2008, 2010, 2012, 2016, 2020, 2024, 2028, 2031, ... 245anywhere
zero_tracebooleanNe pas archiver les réponses; zero_trace: optionaltrue

Validation

  • 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

Exemples

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}"

Réponses et erreurs

Le JSON natif et la précision sont conservés. Exemple de résultat vide réussi. HTTP 400 : entrée ; 401 : authentification ; 402 : solde ; 403 : accès ; 405 : méthode ; 429 : limite ; 5xx : service. Conservez X-Request-Id.

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