API Hop

เอกสาร

เอกสาร API Hop

เอกสารอ้างอิง Google Search

Google Search: ค้นหาเว็บ · คำตอบ AI Mode · สรุป AI · ค้นหาแบบเบา · คำแนะนำการค้นหา · คำถามที่เกี่ยวข้อง · ค้นหาฟอรัม · โฆษณาบนการค้นหา · ข้อมูลแหล่งที่มา · ค้นหาชิ้นงานโฆษณา · รายละเอียดชิ้นงานโฆษณา.

ขีดจำกัดการทำงานพร้อมกัน

AI และ Data ใช้โควตาคำขอพร้อมกันร่วมกันภายในแต่ละหมวดของบัญชี ค่าเริ่มต้นคือ 5 AI / 2 Data และปรับตามแพ็กเกจสมาชิก ขีดจำกัดเฉพาะ endpoint ยังอยู่ภายใต้ขีดจำกัดรวมของหมวด เมื่อถึงขีดจำกัดใดจะส่ง HTTP 429 งานอะซิงโครนัสใช้ช่องจนกว่าการทำงานจะสิ้นสุด

GET /v1/google-search/search
ขีดจำกัดเริ่มต้น: 2
GET /v1/google-search/ai-mode
ขีดจำกัดเริ่มต้น: 2
GET /v1/google-search/ai-overview
ขีดจำกัดเริ่มต้น: 2
GET /v1/google-search/light
ขีดจำกัดเริ่มต้น: 2
GET /v1/google-search/autocomplete
ขีดจำกัดเริ่มต้น: 2
GET /v1/google-search/related-questions
ขีดจำกัดเริ่มต้น: 2
GET /v1/google-search/forums
ขีดจำกัดเริ่มต้น: 2
GET /v1/google-search/ads
ขีดจำกัดเริ่มต้น: 2
GET /v1/google-search/about-this-result
ขีดจำกัดเริ่มต้น: 2
GET /v1/google-search/ads-transparency
ขีดจำกัดเริ่มต้น: 2
GET /v1/google-search/ads-transparency-details
ขีดจำกัดเริ่มต้น: 2

Google Search: ค้นหาเว็บ · คำตอบ AI Mode · สรุป AI · ค้นหาแบบเบา · คำแนะนำการค้นหา · คำถามที่เกี่ยวข้อง · ค้นหาฟอรัม · โฆษณาบนการค้นหา · ข้อมูลแหล่งที่มา · ค้นหาชิ้นงานโฆษณา · รายละเอียดชิ้นงานโฆษณา.

การยืนยันตัวตนและค่าบริการ

ราคามาตรฐานต่อคำขอที่สำเร็จคือ $0.0003 (300 credits) ใช้คีย์ API ของ API Hop การเข้าถึงขึ้นอยู่กับเกตเวย์และสิทธิ์ ดูราคาต่อคำขอที่สำเร็จในแค็ตตาล็อกและบัญชี โดยใช้ราคาบัญชีก่อน ผลลัพธ์ว่างที่สำเร็จก็คิดค่าบริการ คำขอที่ล้มเหลวคืนยอดสำรอง หมดเวลาที่ 60 วินาที ไม่ลองซ้ำหรือแบ่งหน้าอัตโนมัติ ข้อผิดพลาดการชำระไม่เรียกผู้ให้บริการซ้ำ

http
Authorization: Bearer YOUR_API_KEY

รับเฉพาะพารามิเตอร์คิวรี ไม่รับเนื้อหาคำขอ ปฏิเสธค่าที่ไม่รู้จัก ซ้ำ ว่าง หรือไม่ถูกต้อง รองรับ JSON เท่านั้น ไม่มีการเปลี่ยนหน้าหรือลองใหม่อัตโนมัติ คัดลอกรหัสและโทเค็นจากคำตอบล่าสุด ตัวอย่างมีไว้ประกอบคำอธิบาย คิดค่าบริการแยกทุกการค้นหาที่เสร็จสิ้น รวมผลว่างหรือไม่พร้อมใช้งานที่ยืนยันแล้ว XOR = อย่างใดอย่างหนึ่ง, NOT = ห้ามใช้, => = ต้องมี

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

พารามิเตอร์

ฟิลด์ชนิดข้อจำกัดตัวอย่าง
urlstringที่อยู่ HTTPS ค้นหาแบบเต็ม (url); url: optional; maxLength: 32768https://www.google.com/search?q=coffee%20beans&hl=en&gl=us
device_osstringระบบปฏิบัติการมือถือ (device_os); device_os: optional; android, iosios
querystringคำค้น; query: optional; minLength: 1; maxLength: 24576; UTF-8 bytes: 8192coffee
query_encodedbooleanคำค้นเข้ารหัส URL แล้ว (query_encoded); query_encoded: optionaltrue
uulestringภูมิภาค (uule); uule: optional; minLength: 3; maxLength: 4096; ^[wa]\+(?:[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}$w+CAIQICIaQXVzdGluLFRleGFzLFVuaXRlZCBTdGF0ZXM
rewrite_linksbooleanแก้ลิงก์เปลี่ยนเส้นทาง HTML (rewrite_links); rewrite_links: optionaltrue
zero_tracebooleanไม่เก็บถาวรคำตอบ; zero_trace: optionaltrue
devicestringอุปกรณ์; device: optional; mobile, tablet, desktopmobile
safestringตัวกรองผลลัพธ์ (safe); safe: optional; active, offactive
color_schemestringธีมสี (color_scheme); color_scheme: optional; light, darklight
ludocidstringโหมดค้นหาหรือตัวเลือกต้นฉบับ (ludocid); ludocid: optional; maxLength: 20-
lsigstringโหมดค้นหาหรือตัวเลือกต้นฉบับ (lsig); lsig: optional; maxLength: 2048-
kgmidstringโหมดค้นหาหรือตัวเลือกต้นฉบับ (kgmid); kgmid: optional; maxLength: 131-
sistringโหมดค้นหาหรือตัวเลือกต้นฉบับ (si); si: optional; maxLength: 8192-
ibpstringโหมดค้นหาหรือตัวเลือกต้นฉบับ (ibp); ibp: optional; maxLength: 2048-
udsstringโหมดค้นหาหรือตัวเลือกต้นฉบับ (uds); uds: optional; maxLength: 8192-
pwsintegerตัวกรองผลลัพธ์ (pws); pws: optional; 0, 10
nfprintegerตัวกรองผลลัพธ์ (nfpr); nfpr: optional; 0, 10
filterintegerตัวกรองผลลัพธ์ (filter); filter: optional; 0, 10
lrstringตัวกรองภาษา (lr); lr: optional; ^lang_[a-z]{2,3}(\|lang_[a-z]{2,3})*$lang_fr
crstringตัวกรองประเทศ (cr); cr: optional; ^country[A-Za-z]{2}(\|country[A-Za-z]{2})*$countryFR
startintegerตำแหน่งผลลัพธ์; start: optional; min: 010
google_domainstringโดเมนเครื่องมือค้นหา (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
glstringตัวกรองประเทศ (gl); gl: optional; ad, ae, af, ag, ai, al, am, an, ao, aq, ... 252ad
hlstringตัวกรองภาษา (hl); hl: optional; af, sq, am, ar, hy, az, bn, bg, my, ca, ... 76af
locationstringสถานที่ค้นหา; แหล่งที่มา; location: optional; minLength: 1Austin,Texas,United States
coordinatesstringพิกัด JSON (latitude, longitude) (coordinates); coordinates: optional{"latitude":30.2672,"longitude":-97.7431}
radiusintegerรัศมีเป็นเมตร (radius); radius: optional; min: 1; max: 1000150
tbsstringช่วงเวลา (tbs); tbs: optionalqdr:h
tbmstringโหมดค้นหาหรือตัวเลือกต้นฉบับ (tbm); tbm: optional; nws, vid, isch, shop, lcl, bksnws
udmintegerโหมดค้นหาหรือตัวเลือกต้นฉบับ (udm); udm: optional; 1, 2, 6, 7, 12, 14, 28, 36, 502

การตรวจสอบ

  • 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

ตัวอย่าง

bash
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

พารามิเตอร์

ฟิลด์ชนิดข้อจำกัดตัวอย่าง
querystringคำค้น; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192how do solar panels work
countrystringตัวกรองประเทศ (country); country: optional; ^[A-Za-z]{2}$-
languagestringภาษา; language: optional-
devicestringอุปกรณ์; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanไม่เก็บถาวรคำตอบ; zero_trace: optionaltrue
locationstringสถานที่ค้นหา; location: optional-
coordinatesstringพิกัด JSON (latitude, longitude) (coordinates); coordinates: optional{"latitude":30.2672,"longitude":-97.7431}
uulestringภูมิภาค (uule); uule: optional; maxLength: 4096-
image_urlstringที่อยู่ HTTPS รูปภาพสาธารณะ (image_url); image_url: optional; maxLength: 2048-
continuablebooleanเปิดโทเค็นสนทนาต่อ (continuable); continuable: optionaltrue
subsequent_request_tokenstringโทเค็นจากคำตอบล่าสุด (subsequent_request_token); subsequent_request_token: optional; maxLength: 24576-

การตรวจสอบ

  • 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

ตัวอย่าง

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: สรุป AI

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

พารามิเตอร์

ฟิลด์ชนิดข้อจำกัดตัวอย่าง
querystringคำค้น; query: optional; minLength: 1; UTF-8 bytes: 8192how do solar panels work
countrystringตัวกรองประเทศ (country); country: optional; ^[A-Za-z]{2}$-
languagestringภาษา; language: optional-
devicestringอุปกรณ์; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanไม่เก็บถาวรคำตอบ; zero_trace: optionaltrue
page_tokenstringโทเค็นจากคำตอบล่าสุด (page_token); page_token: optional; maxLength: 24576-

การตรวจสอบ

  • 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

ตัวอย่าง

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

พารามิเตอร์

ฟิลด์ชนิดข้อจำกัดตัวอย่าง
querystringคำค้น; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192coffee
countrystringตัวกรองประเทศ (country); country: optional; ^[A-Za-z]{2}$-
languagestringภาษา; language: optional-
pageintegerหน้าเริ่มจาก 1; page: optional; min: 1; max: 10001
locationstringสถานที่ค้นหา; location: optional-
safestringตัวกรองผลลัพธ์ (safe); safe: optional; active, offactive
time_rangestringช่วงเวลา (time_range); time_range: optional-
devicestringอุปกรณ์; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanไม่เก็บถาวรคำตอบ; zero_trace: optionaltrue
coordinatesstringพิกัด JSON (latitude, longitude) (coordinates); coordinates: optional{"latitude":30.2672,"longitude":-97.7431}
uulestringภูมิภาค (uule); uule: optional; maxLength: 4096-
google_domainstringโดเมนเครื่องมือค้นหา (google_domain); google_domain: optional-
lrstringตัวกรองภาษา (lr); lr: optional; ^lang_[a-z]{2,3}(?:\&#124;lang_[a-z]{2,3})*$-
nfprintegerตัวกรองผลลัพธ์ (nfpr); nfpr: optional; 0, 10
filterintegerตัวกรองผลลัพธ์ (filter); filter: optional; 0, 10
startintegerตำแหน่งผลลัพธ์; start: optional; min: 0; max: 10000

การตรวจสอบ

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

ตัวอย่าง

bash
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

พารามิเตอร์

ฟิลด์ชนิดข้อจำกัดตัวอย่าง
querystringคำค้น; query: REQUIRED; minLength: 1; maxLength: 100; UTF-8 bytes: 8192coffee
countrystringตัวกรองประเทศ (country); country: optional; ^[A-Za-z]{2}$-
languagestringภาษา; language: optional-
limitintegerจำนวนผลลัพธ์สูงสุด; limit: optional; min: 1; max: 201
devicestringอุปกรณ์; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanไม่เก็บถาวรคำตอบ; zero_trace: optionaltrue
clientstringโหมดค้นหาหรือตัวเลือกต้นฉบับ (client); client: optional; chrome, chrome-omni, gws-wiz, safari, firefox, psy-ab, toolbar, youtube, gws-wiz-localchrome
cpintegerตำแหน่งเคอร์เซอร์ (cp); cp: optional; min: 0; max: 81920

การตรวจสอบ

  • 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

ตัวอย่าง

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

พารามิเตอร์

ฟิลด์ชนิดข้อจำกัดตัวอย่าง
querystringคำค้น; query: optional; minLength: 1; UTF-8 bytes: 8192how do solar panels work
countrystringตัวกรองประเทศ (country); country: optional; ^[A-Za-z]{2}$-
languagestringภาษา; language: optional-
devicestringอุปกรณ์; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanไม่เก็บถาวรคำตอบ; zero_trace: optionaltrue
next_page_tokenstringโทเค็นจากคำตอบล่าสุด (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 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

ตัวอย่าง

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

พารามิเตอร์

ฟิลด์ชนิดข้อจำกัดตัวอย่าง
querystringคำค้น; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192best coffee grinder
countrystringตัวกรองประเทศ (country); country: optional; ^[A-Za-z]{2}$-
languagestringภาษา; language: optional-
pageintegerหน้าเริ่มจาก 1; page: optional; min: 1; max: 10001
locationstringสถานที่ค้นหา; location: optional-
safestringตัวกรองผลลัพธ์ (safe); safe: optional; active, offactive
time_rangestringช่วงเวลา (time_range); time_range: optional-
devicestringอุปกรณ์; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanไม่เก็บถาวรคำตอบ; zero_trace: optionaltrue
coordinatesstringพิกัด JSON (latitude, longitude) (coordinates); coordinates: optional{"latitude":30.2672,"longitude":-97.7431}
uulestringภูมิภาค (uule); uule: optional; maxLength: 4096-
nfprintegerตัวกรองผลลัพธ์ (nfpr); nfpr: optional; 0, 10
filterintegerตัวกรองผลลัพธ์ (filter); filter: optional; 0, 10
startintegerตำแหน่งผลลัพธ์; start: optional; min: 0; max: 10000
tbsstringช่วงเวลา (tbs); tbs: optional; maxLength: 512-
period_unitstringช่วงเวลา (period_unit); period_unit: optional; s, n, h, d, w, m, ys
period_valueintegerช่วงเวลา (period_value); period_value: optional; min: 1; max: 21474836471
start_datestringขอบเขตวันที่ (start_date); start_date: optional; ^[0-9]{8}$-
end_datestringขอบเขตวันที่ (end_date); end_date: optional; ^[0-9]{8}$-

การตรวจสอบ

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

ตัวอย่าง

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: โฆษณาบนการค้นหา

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

พารามิเตอร์

ฟิลด์ชนิดข้อจำกัดตัวอย่าง
querystringคำค้น; query: REQUIRED; minLength: 1; UTF-8 bytes: 8192car insurance
countrystringตัวกรองประเทศ (country); country: optional; ^[A-Za-z]{2}$-
languagestringภาษา; language: optional-
locationstringสถานที่ค้นหา; location: optional-
devicestringอุปกรณ์; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanไม่เก็บถาวรคำตอบ; zero_trace: optionaltrue
coordinatesstringพิกัด JSON (latitude, longitude) (coordinates); coordinates: optional{"latitude":30.2672,"longitude":-97.7431}
safestringตัวกรองผลลัพธ์ (safe); safe: optional; active, offactive
nfprintegerตัวกรองผลลัพธ์ (nfpr); nfpr: optional; 0, 10

การตรวจสอบ

  • 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

ตัวอย่าง

bash
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

พารามิเตอร์

ฟิลด์ชนิดข้อจำกัดตัวอย่าง
querystringคำค้น (website URL; query XOR req_token); query: optional; minLength: 1; UTF-8 bytes: 8192https://www.starbucks.com/
req_tokenstringโทเค็นจากคำตอบล่าสุด (req_token); req_token: optional; maxLength: 16384; ^[A-Za-z0-9_-]+={0,2}$-
countrystringตัวกรองประเทศ (country); country: optional; ^[A-Za-z]{2}$-
languagestringภาษา; language: optional-
google_domainstringโดเมนเครื่องมือค้นหา (google_domain); google_domain: optional-
zero_tracebooleanไม่เก็บถาวรคำตอบ; zero_trace: optionaltrue

การตรวจสอบ

  • 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

ตัวอย่าง

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

พารามิเตอร์

ฟิลด์ชนิดข้อจำกัดตัวอย่าง
querystringคำค้น; query: optional; minLength: 1; UTF-8 bytes: 8192nike.com
countrystringตัวกรองประเทศ (country); country: optional; ad, ae, af, ag, ai, al, am, ao, aq, ar, ... 244; ^[A-Za-z]{2}$ad
languagestringภาษา; language: optional-
limitintegerจำนวนผลลัพธ์สูงสุด; limit: optional; min: 1; max: 1001
idstringรหัสต้นฉบับ (id); id: optional-
categorystringโหมดค้นหาหรือตัวเลือกต้นฉบับ (category); category: optional; image, text, videoimage
next_page_tokenstringโทเค็นจากคำตอบล่าสุด (next_page_token); next_page_token: optional; minLength: 1; maxLength: 24576-
devicestringอุปกรณ์; device: optional; desktop, mobile, tabletdesktop
zero_tracebooleanไม่เก็บถาวรคำตอบ; zero_trace: optionaltrue
advertiser_idstringรหัสต้นฉบับ (advertiser_id); advertiser_id: optional; maxLength: 3499-
platformstringโหมดค้นหาหรือตัวเลือกต้นฉบับ (platform); platform: optional; PLAY, MAPS, SEARCH, SHOPPING, YOUTUBEPLAY
political_adsbooleanตัวกรองผลลัพธ์ (political_ads); political_ads: optionaltrue
get_advertiserbooleanรายละเอียดผู้ลงโฆษณา (get_advertiser); get_advertiser: optionaltrue
regionstringภูมิภาค (region); ตัวอย่าง: US=2840; region: optional; anywhere, 2004, 2008, 2010, 2012, 2016, 2020, 2024, 2028, 2031, ... 245; maxLength: 8anywhere
start_datestringขอบเขตวันที่ (start_date); start_date: optional; ^[0-9]{8}$-
end_datestringขอบเขตวันที่ (end_date); end_date: optional; ^[0-9]{8}$-
creative_formatstringโหมดค้นหาหรือตัวเลือกต้นฉบับ (creative_format); creative_format: optional; image, text, videoimage

การตรวจสอบ

  • 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

ตัวอย่าง

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: รายละเอียดชิ้นงานโฆษณา

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

พารามิเตอร์

ฟิลด์ชนิดข้อจำกัดตัวอย่าง
advertiser_idstringรหัสต้นฉบับ (advertiser_id); advertiser_id: REQUIRED; maxLength: 34; ^AR[0-9]{1,32}$${ADVERTISER_ID}
creative_idstringรหัสต้นฉบับ (creative_id); creative_id: REQUIRED; maxLength: 34; ^CR[0-9]{1,32}$${CREATIVE_ID}
regionstringภูมิภาค (region); region: optional; anywhere, 2004, 2008, 2010, 2012, 2016, 2020, 2024, 2028, 2031, ... 245anywhere
zero_tracebooleanไม่เก็บถาวรคำตอบ; zero_trace: optionaltrue

การตรวจสอบ

  • 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

ตัวอย่าง

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

ผลลัพธ์และข้อผิดพลาด

คง JSON ต้นฉบับและความแม่นยำ ตัวอย่างคือผลลัพธ์ว่างที่สำเร็จ HTTP 400: ข้อมูล; 401: ยืนยันตัวตน; 402: ยอดเงิน; 403: สิทธิ์; 405: วิธี; 429: จำกัด; 5xx: บริการ เก็บ X-Request-Id

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