Salta ai contenuti

Forma della risposta

Una ricerca riuscita restituisce 200 con un oggetto JSON:

{
"search": "mount everest",
"page": 1,
"knowledgeGraph": {
"title": "Mount Everest",
"description": "Earth's highest mountain above sea level…",
"attributes": { "Elevation": "8,849 m", "First ascent": "1953" }
},
"organic": [
{
"position": 1,
"title": "Mount Everest - Wikipedia",
"link": "https://en.wikipedia.org/wiki/Mount_Everest",
"snippet": "Mount Everest is Earth's highest mountain…",
"sitelinks": [{ "title": "Height", "link": "https://…" }]
}
],
"ads": [
{ "position": 1, "title": "Everest Treks", "link": "https://…", "block": "top" }
],
"peopleAlsoAsk": ["How tall is Mount Everest?"],
"relatedSearches": [{ "query": "k2 mountain" }],
"stats": { "balance": 9988, "cost": 6, "cached": false }
}
CampoTipoNote
searchstringLa query che è stata eseguita.
pageintegerLa pagina restituita (indice in base 1).
organicarrayRisultati organici ordinati.
adsarray?Risultati sponsorizzati, quando presenti.
knowledgeGraphobject?Il pannello entità di Google, quando presente.
peopleAlsoAskstring[]?Domande di “People also ask”.
relatedSearchesarray?”People also search for”.
statsobject?Informazioni di fatturazione — vedi Prezzi.

position, title, link, snippet, date opzionale e sitelinks[] { title, link } opzionale.

position, title, link, displayedLink opzionale, snippet opzionale, block ("top" o "bottom") e sitelinks[] opzionale.

title, imageUrl opzionale, description, descriptionSource, descriptionLink e una mappa attributes di dati chiave/valore.

Per lo schema esaustivo e sempre aggiornato (incluse tutte le forme di errore), consulta la referenza dell’API, generata dal contratto OpenAPI.