Dành cho AI

Đối tượng

Đối tượng 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.

TrườngLoạiTheo viewMô tả
querystringcompactTruy vấn tìm kiếm như đã yêu cầu.
pageintegercompactĐây là trang thứ mấy, bắt đầu từ 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. · có thể bị cắt bớt ở chế độ 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.
extobjectfullDữ liệu bổ sung riêng của nền tảng. Chỉ trả về khi view=full. · chỉ khi view=full

SerpResult

TrườngLoạiMô tả
rankintegerVị trí trong danh sách, bắt đầu từ 1.
titlestringTiêu đề.
urlstringTrang.
displayed_urlstring | nullThe address as Google prints it under the title.
sourcestring | nullTên trang web, như Google hiển thị.
snippetstring | nullĐoạn văn bản Google hiển thị dưới tiêu đề.
datestring | nullThe date Google prints before the snippet, as it shows it ("3 days ago"); null when there is none.

SerpAd

TrườngLoạiMô tả
rankintegerVị trí trong danh sách, bắt đầu từ 1.
positionstringPhía trên kết quả tự nhiên, hoặc phía dưới.
titlestringTiêu đề quảng cáo.
urlstringTrang đích của quảng cáo.
displayed_urlstring | nullĐịa chỉ hiển thị trên quảng cáo.
snippetstring | nullNội dung quảng cáo.

KnowledgePanel

TrườngLoạiMô tả
titlestringThực thể.
typestring | nullNó là gì, theo cách mô tả của Google.
descriptionstring | nullMô tả của panel.
websitestring | nullWebsite riêng của thực thể, nếu Google cung cấp.
image_urlstring | nullẢnh của panel.

Các endpoint trả về Serp

Kết nối một lần, sau đó chỉ cần hỏi.

Mỗi khóa mới đi kèm $0.20 để dùng thử. Một câu là kết nối được agent của bạn.

Bắt đầu miễn phí
Kết nối AI của bạn

Dán câu này vào agent của bạn

Đọc https://okdata.online/agents.md và thiết lập okdata cho tôi; khóa của tôi nằm trong biến môi trường OKDATA_API_KEY.

Claude Code, Cursor, Codex và các agent khác có thể mở liên kết sẽ tự thiết lập từ đó.

MCP serverhttps://api.okdata.online/mcp