Документация API Hop
Справочник Google Search
Google Search: Поиск в интернете · Ответы AI Mode · Обзоры ИИ · Облегчённый поиск · Поисковые подсказки · Похожие вопросы · Поиск по форумам · Поисковая реклама · Сведения об источнике · Поиск рекламных материалов · Сведения о рекламном материале.
Лимит параллельных запросов
ИИ и Data используют отдельные общие пулы параллельных запросов аккаунта: по умолчанию 5 ИИ / 2 Data, в зависимости от подписки. Лимиты отдельных эндпоинтов также ограничены пулом категории. Достижение любого лимита возвращает HTTP 429. Асинхронные задачи занимают место до конца выполнения.
GET /v1/google-search/search GET /v1/google-search/ai-mode GET /v1/google-search/ai-overview GET /v1/google-search/light GET /v1/google-search/autocomplete GET /v1/google-search/related-questions GET /v1/google-search/forums GET /v1/google-search/ads GET /v1/google-search/about-this-result GET /v1/google-search/ads-transparency GET /v1/google-search/ads-transparency-details Google Search: Поиск в интернете · Ответы AI Mode · Обзоры ИИ · Облегчённый поиск · Поисковые подсказки · Похожие вопросы · Поиск по форумам · Поисковая реклама · Сведения об источнике · Поиск рекламных материалов · Сведения о рекламном материале.
Авторизация и оплата
Стандартная цена — $0.0003 (300 credits) за успешный запрос. Используйте ключ API API Hop. Доступ зависит от активных шлюзов и прав. Цену успешного запроса смотрите в каталоге и аккаунте; индивидуальная цена имеет приоритет. Успешные пустые результаты оплачиваются. Ошибки освобождают резерв. Тайм-аут: 60 секунд, без автоматических повторов и пагинации. Ошибки расчёта не повторяют запрос поставщику.
Authorization: Bearer YOUR_API_KEYТолько параметры запроса, без тела. Неизвестные, повторные, пустые и неверные значения отклоняются. Только JSON, без автоматической пагинации и повторов. Копируйте ID и токены из свежих ответов. Примеры иллюстративны. Каждый завершённый запрос оплачивается отдельно, включая подтверждённые пустые или недоступные результаты. XOR = ровно одно, NOT = исключено, => = требует.
Google Search: Поиск в интернете
GET https://api.apihop.ai/v1/google-search/search
Параметры
| Поле | Тип | Ограничения | Пример |
|---|---|---|---|
url | string | Полный HTTPS-адрес поиска (url); url: optional; maxLength: 32768 | https://www.google.com/search?q=coffee%20beans&hl=en&gl=us |
device_os | string | Мобильная ОС (device_os); device_os: optional; android, ios | ios |
query | string | Поисковый текст; query: optional; minLength: 1; maxLength: 24576; UTF-8 bytes: 8192 | coffee |
query_encoded | boolean | Запрос уже закодирован как URL (query_encoded); query_encoded: optional | true |
uule | string | Регион (uule); uule: optional; minLength: 3; maxLength: 4096; ^[wa]\+(?:[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}$ | w+CAIQICIaQXVzdGluLFRleGFzLFVuaXRlZCBTdGF0ZXM |
rewrite_links | boolean | Разрешать ссылки перенаправления HTML (rewrite_links); rewrite_links: optional | true |
zero_trace | boolean | Не сохранять ответы; zero_trace: optional | true |
device | string | Устройство; device: optional; mobile, tablet, desktop | mobile |
safe | string | Фильтр результатов (safe); safe: optional; active, off | active |
color_scheme | string | Цветовая тема (color_scheme); color_scheme: optional; light, dark | light |
ludocid | string | Режим поиска или исходный селектор (ludocid); ludocid: optional; maxLength: 20 | - |
lsig | string | Режим поиска или исходный селектор (lsig); lsig: optional; maxLength: 2048 | - |
kgmid | string | Режим поиска или исходный селектор (kgmid); kgmid: optional; maxLength: 131 | - |
si | string | Режим поиска или исходный селектор (si); si: optional; maxLength: 8192 | - |
ibp | string | Режим поиска или исходный селектор (ibp); ibp: optional; maxLength: 2048 | - |
uds | string | Режим поиска или исходный селектор (uds); uds: optional; maxLength: 8192 | - |
pws | integer | Фильтр результатов (pws); pws: optional; 0, 1 | 0 |
nfpr | integer | Фильтр результатов (nfpr); nfpr: optional; 0, 1 | 0 |
filter | integer | Фильтр результатов (filter); filter: optional; 0, 1 | 0 |
lr | string | Фильтр языка (lr); lr: optional; ^lang_[a-z]{2,3}(\|lang_[a-z]{2,3})*$ | lang_fr |
cr | string | Фильтр страны (cr); cr: optional; ^country[A-Za-z]{2}(\|country[A-Za-z]{2})*$ | countryFR |
start | integer | Смещение результатов; start: optional; min: 0 | 10 |
google_domain | string | Домен поисковика (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, ... 186 | google.co.uk |
gl | string | Фильтр страны (gl); gl: optional; ad, ae, af, ag, ai, al, am, an, ao, aq, ... 252 | ad |
hl | string | Фильтр языка (hl); hl: optional; af, sq, am, ar, hy, az, bn, bg, my, ca, ... 76 | af |
location | string | Место поиска; Источник; location: optional; minLength: 1 | Austin,Texas,United States |
coordinates | string | Координаты JSON (latitude, longitude) (coordinates); coordinates: optional | {"latitude":30.2672,"longitude":-97.7431} |
radius | integer | Радиус в метрах (radius); radius: optional; min: 1; max: 1000 | 150 |
tbs | string | Период (tbs); tbs: optional | qdr:h |
tbm | string | Режим поиска или исходный селектор (tbm); tbm: optional; nws, vid, isch, shop, lcl, bks | nws |
udm | integer | Режим поиска или исходный селектор (udm); udm: optional; 1, 2, 6, 7, 12, 14, 28, 36, 50 | 2 |
Проверка
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedcoordinates: 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 metersdevice_os => device = mobile OR tabletquery XOR url; tbm XOR udm when selecting a search tabquery: <= 8192 UTF-8 bytes after decoding; query_encoded=true => URL-encoded query value, not a URL or q= prefixurl: HTTPS Google /search with nonempty q or as_q; only device, device_os, zero_trace and rewrite_links may accompany urlludocid: nonzero unsigned 64-bit decimal string; preserve numeric precision
Примеры
curl --get "https://api.apihop.ai/v1/google-search/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee"Google Search: Ответы AI Mode
GET https://api.apihop.ai/v1/google-search/ai-mode
Параметры
| Поле | Тип | Ограничения | Пример |
|---|---|---|---|
query | string | Поисковый текст; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192 | how do solar panels work |
country | string | Фильтр страны (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | Язык; language: optional | - |
device | string | Устройство; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Не сохранять ответы; zero_trace: optional | true |
location | string | Место поиска; location: optional | - |
coordinates | string | Координаты JSON (latitude, longitude) (coordinates); coordinates: optional | {"latitude":30.2672,"longitude":-97.7431} |
uule | string | Регион (uule); uule: optional; maxLength: 4096 | - |
image_url | string | Общедоступный HTTPS-адрес изображения (image_url); image_url: optional; maxLength: 2048 | - |
continuable | boolean | Включить токен продолжения диалога (continuable); continuable: optional | true |
subsequent_request_token | string | Токен из свежего ответа (subsequent_request_token); subsequent_request_token: optional; maxLength: 24576 | - |
Проверка
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedcoordinates: 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 sourceimage_url: public HTTPS image URL; no credentials, fragment or port
Примеры
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: Обзоры ИИ
GET https://api.apihop.ai/v1/google-search/ai-overview
Параметры
| Поле | Тип | Ограничения | Пример |
|---|---|---|---|
query | string | Поисковый текст; query: optional; minLength: 1; UTF-8 bytes: 8192 | how do solar panels work |
country | string | Фильтр страны (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | Язык; language: optional | - |
device | string | Устройство; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Не сохранять ответы; zero_trace: optional | true |
page_token | string | Токен из свежего ответа (page_token); page_token: optional; maxLength: 24576 | - |
Проверка
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedquery XOR page_token; page_token: copy from a fresh search response; preserve original query and localepage_token: use within one minute; valid page without AI Overview => feature_available=false
Примеры
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"Google Search: Облегчённый поиск
GET https://api.apihop.ai/v1/google-search/light
Параметры
| Поле | Тип | Ограничения | Пример |
|---|---|---|---|
query | string | Поисковый текст; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192 | coffee |
country | string | Фильтр страны (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | Язык; language: optional | - |
page | integer | Страница от 1; page: optional; min: 1; max: 1000 | 1 |
location | string | Место поиска; location: optional | - |
safe | string | Фильтр результатов (safe); safe: optional; active, off | active |
time_range | string | Период (time_range); time_range: optional | - |
device | string | Устройство; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Не сохранять ответы; zero_trace: optional | true |
coordinates | string | Координаты JSON (latitude, longitude) (coordinates); coordinates: optional | {"latitude":30.2672,"longitude":-97.7431} |
uule | string | Регион (uule); uule: optional; maxLength: 4096 | - |
google_domain | string | Домен поисковика (google_domain); google_domain: optional | - |
lr | string | Фильтр языка (lr); lr: optional; ^lang_[a-z]{2,3}(?:\|lang_[a-z]{2,3})*$ | - |
nfpr | integer | Фильтр результатов (nfpr); nfpr: optional; 0, 1 | 0 |
filter | integer | Фильтр результатов (filter); filter: optional; 0, 1 | 0 |
start | integer | Смещение результатов; start: optional; min: 0; max: 1000 | 0 |
Проверка
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedcoordinates: JSON object {"latitude":number,"longitude":number}; latitude -90..90; longitude -180..180; NOT (location AND coordinates); NOT (uule AND location); NOT (uule AND coordinates)
Примеры
curl --get "https://api.apihop.ai/v1/google-search/light" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee"Google Search: Поисковые подсказки
GET https://api.apihop.ai/v1/google-search/autocomplete
Параметры
| Поле | Тип | Ограничения | Пример |
|---|---|---|---|
query | string | Поисковый текст; query: REQUIRED; minLength: 1; maxLength: 100; UTF-8 bytes: 8192 | coffee |
country | string | Фильтр страны (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | Язык; language: optional | - |
limit | integer | Лимит результатов; limit: optional; min: 1; max: 20 | 1 |
device | string | Устройство; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Не сохранять ответы; zero_trace: optional | true |
client | string | Режим поиска или исходный селектор (client); client: optional; chrome, chrome-omni, gws-wiz, safari, firefox, psy-ab, toolbar, youtube, gws-wiz-local | chrome |
cp | integer | Позиция курсора (cp); cp: optional; min: 0; max: 8192 | 0 |
Проверка
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejected
Примеры
curl --get "https://api.apihop.ai/v1/google-search/autocomplete" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee"Google Search: Похожие вопросы
GET https://api.apihop.ai/v1/google-search/related-questions
Параметры
| Поле | Тип | Ограничения | Пример |
|---|---|---|---|
query | string | Поисковый текст; query: optional; minLength: 1; UTF-8 bytes: 8192 | how do solar panels work |
country | string | Фильтр страны (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | Язык; language: optional | - |
device | string | Устройство; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Не сохранять ответы; zero_trace: optional | true |
next_page_token | string | Токен из свежего ответа (next_page_token); next_page_token: optional; minLength: 1; maxLength: 24576 | - |
Проверка
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectednext_page_token: copy from a fresh response; keep original query, localization and filters; do not fabricate tokensquery OR next_page_token: required; result tokens expand an individual question
Примеры
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"Google Search: Поиск по форумам
GET https://api.apihop.ai/v1/google-search/forums
Параметры
| Поле | Тип | Ограничения | Пример |
|---|---|---|---|
query | string | Поисковый текст; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192 | best coffee grinder |
country | string | Фильтр страны (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | Язык; language: optional | - |
page | integer | Страница от 1; page: optional; min: 1; max: 1000 | 1 |
location | string | Место поиска; location: optional | - |
safe | string | Фильтр результатов (safe); safe: optional; active, off | active |
time_range | string | Период (time_range); time_range: optional | - |
device | string | Устройство; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Не сохранять ответы; zero_trace: optional | true |
coordinates | string | Координаты JSON (latitude, longitude) (coordinates); coordinates: optional | {"latitude":30.2672,"longitude":-97.7431} |
uule | string | Регион (uule); uule: optional; maxLength: 4096 | - |
nfpr | integer | Фильтр результатов (nfpr); nfpr: optional; 0, 1 | 0 |
filter | integer | Фильтр результатов (filter); filter: optional; 0, 1 | 0 |
start | integer | Смещение результатов; start: optional; min: 0; max: 1000 | 0 |
tbs | string | Период (tbs); tbs: optional; maxLength: 512 | - |
period_unit | string | Период (period_unit); period_unit: optional; s, n, h, d, w, m, y | s |
period_value | integer | Период (period_value); period_value: optional; min: 1; max: 2147483647 | 1 |
start_date | string | Граница даты (start_date); start_date: optional; ^[0-9]{8}$ | - |
end_date | string | Граница даты (end_date); end_date: optional; ^[0-9]{8}$ | - |
Проверка
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedcoordinates: JSON object {"latitude":number,"longitude":number}; latitude -90..90; longitude -180..180; NOT (location AND coordinates); NOT (uule AND location); NOT (uule AND coordinates)
Примеры
curl --get "https://api.apihop.ai/v1/google-search/forums" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=best coffee grinder"Google Search: Поисковая реклама
GET https://api.apihop.ai/v1/google-search/ads
Параметры
| Поле | Тип | Ограничения | Пример |
|---|---|---|---|
query | string | Поисковый текст; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192 | car insurance |
country | string | Фильтр страны (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | Язык; language: optional | - |
location | string | Место поиска; location: optional | - |
device | string | Устройство; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Не сохранять ответы; zero_trace: optional | true |
coordinates | string | Координаты JSON (latitude, longitude) (coordinates); coordinates: optional | {"latitude":30.2672,"longitude":-97.7431} |
safe | string | Фильтр результатов (safe); safe: optional; active, off | active |
nfpr | integer | Фильтр результатов (nfpr); nfpr: optional; 0, 1 | 0 |
Проверка
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedcoordinates: 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
Примеры
curl --get "https://api.apihop.ai/v1/google-search/ads" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=car insurance"Google Search: Сведения об источнике
GET https://api.apihop.ai/v1/google-search/about-this-result
Параметры
| Поле | Тип | Ограничения | Пример |
|---|---|---|---|
query | string | Поисковый текст (website URL; query XOR req_token); query: optional; minLength: 1; UTF-8 bytes: 8192 | https://www.starbucks.com/ |
req_token | string | Токен из свежего ответа (req_token); req_token: optional; maxLength: 16384; ^[A-Za-z0-9_-]+={0,2}$ | - |
country | string | Фильтр страны (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | Язык; language: optional | - |
google_domain | string | Домен поисковика (google_domain); google_domain: optional | - |
zero_trace | boolean | Не сохранять ответы; zero_trace: optional | true |
Проверка
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedquery XOR req_token; query: website URL; req_token: copy from a fresh About This Result selector
Примеры
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/"Google Search: Поиск рекламных материалов
GET https://api.apihop.ai/v1/google-search/ads-transparency
Параметры
| Поле | Тип | Ограничения | Пример |
|---|---|---|---|
query | string | Поисковый текст; query: optional; minLength: 1; UTF-8 bytes: 8192 | nike.com |
country | string | Фильтр страны (country); country: optional; ad, ae, af, ag, ai, al, am, ao, aq, ar, ... 244; ^[A-Za-z]{2}$ | ad |
language | string | Язык; language: optional | - |
limit | integer | Лимит результатов; limit: optional; min: 1; max: 100 | 1 |
id | string | Исходный идентификатор (id); id: optional | - |
category | string | Режим поиска или исходный селектор (category); category: optional; image, text, video | image |
next_page_token | string | Токен из свежего ответа (next_page_token); next_page_token: optional; minLength: 1; maxLength: 24576 | - |
device | string | Устройство; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | Не сохранять ответы; zero_trace: optional | true |
advertiser_id | string | Исходный идентификатор (advertiser_id); advertiser_id: optional; maxLength: 3499 | - |
platform | string | Режим поиска или исходный селектор (platform); platform: optional; PLAY, MAPS, SEARCH, SHOPPING, YOUTUBE | PLAY |
political_ads | boolean | Фильтр результатов (political_ads); political_ads: optional | true |
get_advertiser | boolean | Сведения о рекламодателе (get_advertiser); get_advertiser: optional | true |
region | string | Регион (region); Примеры: US=2840; region: optional; anywhere, 2004, 2008, 2010, 2012, 2016, 2020, 2024, 2028, 2031, ... 245; maxLength: 8 | anywhere |
start_date | string | Граница даты (start_date); start_date: optional; ^[0-9]{8}$ | - |
end_date | string | Граница даты (end_date); end_date: optional; ^[0-9]{8}$ | - |
creative_format | string | Режим поиска или исходный селектор (creative_format); creative_format: optional; image, text, video | image |
Проверка
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectednext_page_token: copy from a fresh response; keep original query, localization and filters; do not fabricate tokensexactly one of query, id, advertiser_id; category XOR creative_format when selecting a creative formatid, advertiser_id: AR-prefixed IDs, comma-separated, up to 100; get_advertiser=true => exactly one advertiser IDpolitical_ads=true => explicit country or region other than anywhere; start_date < end_date; dates must exist
Примеры
curl --get "https://api.apihop.ai/v1/google-search/ads-transparency" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=nike.com"Google Search: Сведения о рекламном материале
GET https://api.apihop.ai/v1/google-search/ads-transparency-details
Параметры
| Поле | Тип | Ограничения | Пример |
|---|---|---|---|
advertiser_id | string | Исходный идентификатор (advertiser_id); advertiser_id: REQUIRED; maxLength: 34; ^AR[0-9]{1,32}$ | ${ADVERTISER_ID} |
creative_id | string | Исходный идентификатор (creative_id); creative_id: REQUIRED; maxLength: 34; ^CR[0-9]{1,32}$ | ${CREATIVE_ID} |
region | string | Регион (region); region: optional; anywhere, 2004, 2008, 2010, 2012, 2016, 2020, 2024, 2028, 2031, ... 245 | anywhere |
zero_trace | boolean | Не сохранять ответы; zero_trace: optional | true |
Проверка
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedboolean = true OR false; integer: safe integer; unknown, repeated, empty or invalid query values: rejectedadvertiser_id AND creative_id: copy from a fresh ads-transparency response; sample identifiers do not prove availability
Примеры
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}"Ответы и ошибки
Исходный JSON и точность сохраняются. Пример пустого успешного результата. HTTP 400: ввод; 401: авторизация; 402: баланс; 403: доступ; 405: метод; 429: лимит; 5xx: сервис. Сохраните X-Request-Id.
{
"success": true,
"request_id": "example-request",
"data": {
"format": "json",
"content": {
"results": []
}
}
}