Untuk AI

Objek

Objek Serp

A Google web search results page: organic results, ads, the AI overview, People also ask, related searches and the knowledge panel. The same fields on every platform. A field a platform does not show is null, and meta.unavailable names it with the reason.

FieldJenisDari viewDeskripsi
querystringcompactPencarian sesuai yang diminta.
pageintegercompactHalaman ke berapa, mulai dari 1.
total_resultsinteger | nullcompactGoogle's own estimate of how many results there are.
organicSerpResult[]compactOrganic results, in page order (usually up to 10).
adsSerpAd[]compactPaid results on the page; empty when Google shows none.
ai_overviewstring | nullstandardThe AI overview's text, where Google shows one with the page; null when it has none or loads it separately. · mungkin dipotong di compact
related_questionsstring[]compact"People also ask" questions.
related_searchesstring[]compact"Related searches" at the foot of the page.
knowledge_panelKnowledgePanel | nullcompactThe knowledge panel, when the query names an entity Google knows; null otherwise.
extobjeklengkapData tambahan khusus platform. Hanya dikembalikan dengan view=full. · hanya dengan view=full

SerpResult

FieldJenisDeskripsi
rankintegerPosisi dalam daftar, mulai dari 1.
titlestringJudul.
urlstringHalaman.
displayed_urlstring | nullThe address as Google prints it under the title.
sourcestring | nullNama situs, sesuai tampilan Google.
snippetstring | nullTeks yang ditampilkan Google di bawah judul.
datestring | nullThe date Google prints before the snippet, as it shows it ("3 days ago"); null when there is none.

SerpAd

FieldJenisDeskripsi
rankintegerPosisi dalam daftar, mulai dari 1.
positionstringDi atas hasil organik, atau di bawahnya.
titlestringJudul iklan.
urlstringHalaman tujuan iklan.
displayed_urlstring | nullAlamat yang ditampilkan iklan.
snippetstring | nullTeks iklan.

KnowledgePanel

FieldJenisDeskripsi
titlestringEntitas.
typestring | nullApa itu, menurut Google.
descriptionstring | nullDeskripsi panel.
websitestring | nullSitus web milik entitas, jika Google menyediakannya.
image_urlstring | nullGambar panel.

Endpoint yang mengembalikan Serp

Hubungkan sekali, lalu cukup bertanya.

Setiap kunci baru mendapat $0.20 untuk mencoba. Satu kalimat menghubungkan agen Anda.

Mulai gratis
Hubungkan AI Anda

Tempelkan ini ke agen Anda

Baca https://okdata.online/agents.md dan siapkan okdata untuk saya; kunci saya ada di variabel lingkungan OKDATA_API_KEY.

Claude Code, Cursor, Codex, dan agen lain yang bisa membuka tautan akan menyiapkan dirinya sendiri dari sini.

Server MCPhttps://api.okdata.online/mcp