API di Google Maps

Google Maps Ricerca nelle vicinanze API

Cerca su Google Maps attorno a una latitudine e longitudine esatte e ottieni fino a 20 luoghi normalizzati per chiamata, ciascuno con l'indirizzo scomposto in via, città, stato, CAP e paese. Usalo quando hai le coordinate e vuoi il viewport della mappa centrato su di esse; usa maps.search quando hai solo il nome di un luogo. Passa il nextCursor restituito come cursor per i 20 luoghi successivi.

1,30 USD/1k richieste, paghi a richiesta, nessun abbonamento.

coffee shop - Google Maps
google.com/maps/search/coffee%20shop/@30.2672, -97.7431,15z
coffee shop
ResultsShare

Mañana Coffee House

4.6(1,284)

Coffee shop · 612 W 6th St, Austin, TX 78701, USA

Cozy cafe serving pour-over coffee and pastries a few blocks from the Capitol.

Update results when map moves
Mañana Coffee House
Google Maps
Cosa ha restituito l'APIitems[0]
{
"placeId": "ChIJrX7cX9C1RIYR2LFEjaLyeuY",
"cid": "8234917364550128200",
"name": "Mañana Coffee House",
"url": "https://www.google.com/maps/place/?q=place_id:ChIJrX7cX9C1RIYR2LFEjaLyeuY",
"category": "Coffee shop",
"categories": [...],
"address": "612 W 6th St, Austin, TX 78701, USA",
"street": "612 W 6th St",
... 15 campi in più
}
Disponibilità
99,77%
30d · 4352 chiamate
Richieste
4355
30 g · settimanale, ultime 12 sett.
Risposta
6,1s
mediana · 30d

Prezzi

Prezzi dell'API Google Maps Ricerca nelle vicinanze

Paghi
13,00 USD
1,30 USD/1k richieste, solo per ciò che usi. Nessun piano mensile.
Le tue prime 76 richieste sono gratuite con il saldo iniziale di 0,10 USD.

Provalo

Ottieni Google Maps Ricerca nelle vicinanze in una sola richiesta

Apri in
Risposta di esempio
Le esecuzioni gratuite restituiscono solo i primi 3 risultati. Ricarica una chiave per ottenere la risposta completa.

Questo esempio mostra 27 campi su 28. Vedi tutti i campi

{
  "found": true,
  "data": {
    "nextCursor": "eyJvZmZzZXQiOjMsInEiOiJjb2ZmZWUgc2hvcCJ9",
    "items": [
      {
        "placeId": "ChIJrX7cX9C1RIYR2LFEjaLyeuY",
        "cid": "8234917364550128200",
        "name": "Mañana Coffee House",
        "url": "https://www.google.com/maps/place/?q=place_id:ChIJrX7cX9C1RIYR2LFEjaLyeuY",
        "category": "Coffee shop",
        "categories": [
          "Coffee shop",
          "Breakfast restaurant"
        ],
        "address": "612 W 6th St, Austin, TX 78701, USA",
        "street": "612 W 6th St",
        "city": "Austin",
        "state": "Texas",
        "postalCode": "78701",
        "countryCode": "US",
        "latitude": 30.2687,
        "longitude": -97.7469,
        "phone": "+1 512-555-0142",
        "website": "https://mananacoffeeaustin.com",
        "rating": 4.6,
        "reviewCount": 1284,
        "image": "https://lh3.googleusercontent.com/places/ANXAkqHmananaCoffee6thSt=w200-h150-k-no",
        "neighborhood": "Downtown",
        "domain": "mananacoffeeaustin.com",
        "description": "Cozy cafe serving pour-over coffee and pastries a few blocks from the Capitol.",
        "rank": 1
      },
      {
        "placeId": "ChIJTUxDowe1RIYRy5j2Vd8HwKg",
        "name": "Cuvee Coffee Roastery",
        "url": "https://www.google.com/maps/place/?q=place_id:ChIJTUxDowe1RIYRy5j2Vd8HwKg",
        "category": "Coffee roasters",
        "categories": [
          "Coffee roasters",
          "Coffee shop"
        ],
        "address": "2000 Justin Ln, Austin, TX 78757, USA",
        "street": "2000 Justin Ln",
        "city": "Austin",
        "state": "Texas",
        "postalCode": "78757",
        "countryCode": "US",
        "latitude": 30.3335,
        "longitude": -97.7231,
        "website": "https://cuveecoffee.com",
        "rating": 4.4,
        "reviewCount": 511,
        "image": "https://lh3.googleusercontent.com/places/ANXAkqHCuveeRoastery=w200-h150-k-no",
        "neighborhood": "Crestview",
        "domain": "cuveecoffee.com",
        "rank": 2
      },
      {
        "placeId": "ChIJgUbEo8cKRIYRZ4h8dQ3jL2s",
        "name": "Summer Moon Coffee",
        "url": "https://www.google.com/maps/place/?q=place_id:ChIJgUbEo8cKRIYRZ4h8dQ3jL2s",
        "category": "Coffee shop",
        "categories": [
          "Coffee shop"
        ],
        "address": "1900 Aldrich St Ste 100, Austin, TX 78723, USA",
        "street": "1900 Aldrich St Ste 100",
        "city": "Austin",
        "state": "Texas",
        "postalCode": "78723",
        "countryCode": "US",
        "latitude": 30.296,
        "longitude": -97.7028,
        "website": "https://summermooncoffee.com",
        "rating": 4.5,
        "reviewCount": 642,
        "image": "https://lh3.googleusercontent.com/places/ANXAkqHSummerMoonAldrich=w200-h150-k-no",
        "neighborhood": "Mueller",
        "domain": "summermooncoffee.com",
        "rank": 3
      }
    ]
  }
}

Riferimento completo di parametri e risposta - ogni campo, tipo ed esempio per questo endpoint.

Riferimento

Una richiesta, una sola forma di risposta.

Ogni campo che invii e ogni campo che ricevi, ciascuno con un esempio reale.

Ultima verifica 2026-11-21 · disponibilità e latenza misurate su 30d

Corpo della richiesta

JSON, inviato a questo endpoint.

  • coordinatesobject

    {"latitude":30.2672,"longitude":-97.7431}

    Il centro esatto della mappa attorno a cui cercare. Usa invece maps.search se hai solo il nome di un luogo.

  • querystring

    coffee shop

    Ciò che digiteresti nella barra di ricerca di Google Maps (es. coffee shop).

  • cursorstring

    Cursore opaco dal nextCursor di una risposta precedente. Passalo per ottenere la pagina successiva di luoghi.

  • languagestring

    Codice lingua di due lettere per i risultati (es. en).

  • limitinteger

    3

    Accepted but does not change the page: every call returns one full Google Maps viewport of about 20 places, never trimmed, so nextCursor continues exactly where this response ended. Price is flat per request.

  • zoomnumber

    Zoom del viewport di Google Maps. Un valore più basso copre un'area più ampia, uno più alto si concentra più strettamente attorno alle coordinate.

Tu invii. Un piccolo corpo JSON. I valori mostrati sono esempi da sostituire con i tuoi.

Risposta

JSON, un valore di esempio per campo.

each itemdata.items[]

Matching Google Maps place records, nearest the requested coordinates first. Populated whenever the provider has data for the entity.

  • addressstring

    612 W 6th St, Austin, TX 78701, USA

    Full formatted street address.

  • categoriesstring[]

    Every Google Maps category listed for the place.

  • categorystring

    Coffee shop

    Primary place category (e.g. Coffee shop).

  • cidstring

    8234917364550128200

    Google customer/place id (cid).

  • citystring

    Austin

    City the place is in.

  • countryCodestring

    US

    Two-letter country code.

  • descriptionstring

    Cozy cafe serving pour-over coffee and pastries a few blocks from the Capitol.

    Google's one-line description of the place.

  • domainstring

    mananacoffeeaustin.com

    Registrable domain of the place website.

  • imagestring

    https://lh3.googleusercontent.com/places/ANXAkqHmananaCoffee6thSt=w200-h150-k-no

    Thumbnail photo URL for the place.

  • latitudenumber

    30.2687

    Latitude of the place in decimal degrees.

  • longitudenumber

    -97.7469

    Longitude of the place in decimal degrees.

  • namestring

    Mañana Coffee House

    Place name. Populated whenever the provider has data for the entity.

  • neighborhoodstring

    Downtown

    Neighborhood the place is in.

  • phonestring

    +1 512-555-0142

    Business phone number, when listed.

  • placeIdstring

    ChIJrX7cX9C1RIYR2LFEjaLyeuY

    Google Maps place id (stable identifier for the place). Populated whenever the provider has data for the entity.

  • postalCodestring

    78701

    Postal code of the place.

  • rankinteger

    1

    One-based position of the place in the Google Maps result order.

  • ratingnumber

    4.6

    Average Google rating out of 5.

  • reviewCountinteger

    1284

    Number of Google reviews the place has.

  • statestring

    Texas

    State or region the place is in, spelled in full (e.g. Texas).

  • streetstring

    612 W 6th St

    Street line of the address.

  • urlstring

    https://www.google.com/maps/place/?q=place_id:ChIJrX7cX9C1RIYR2LFEjaLyeuY

    Canonical Google Maps URL for the place. Populated whenever the provider has data for the entity.

  • websitestring

    https://mananacoffeeaustin.com

    The place's own website URL, when listed.

datadata

The result wrapper, or null when nothing matched.

  • nextCursorstring

    eyJvZmZzZXQiOjMsInEiOiJjb2ZmZWUgc2hvcCJ9

    Opaque cursor for the next page of places, or null when this search is complete. Pass it back as cursor to continue.

top level
  • foundboolean

    true

    True when the search returned at least one matching place.

  • reason"not_found"

    Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.

Tu ricevi. Campi con nome e tipo nella stessa struttura, qualunque fonte risponda.

FAQ

Sull'API Google Maps Ricerca nelle vicinanze

L'API Google Maps Ricerca nelle vicinanze di AnyAPI restituisce dati Google Maps come JSON normalizzato da una sola chiamata POST a /v1/run/maps.search_nearby. Cerca su Google Maps attorno a una latitudine e longitudine esatte e ottieni fino a 20 luoghi normalizzati per chiamata, ciascuno con l'indirizzo scomposto in via, città, stato, CAP e paese. Usalo quando hai le coordinate e vuoi il viewport della mappa centrato su di esse; usa maps.search quando hai solo il nome di un luogo. Passa il nextCursor restituito come cursor per i 20 luoghi successivi. AnyAPI restituisce un unico schema normalizzato qualunque fonte la serva. Costa da 1,30 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Negli ultimi 30 giorni, il 99,8% delle chiamate Google Maps Ricerca nelle vicinanze tramite AnyAPI è riuscito, con un tempo di risposta mediano di 6,1 secondi su 4352 chiamate misurate.

Costa da 1,30 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Ricarichi un portafoglio in USD e ogni chiamata lo scala. Alcune richieste fallite finanziate dal portafoglio comportano costi di elaborazione che trasferiamo al costo, senza ricarico; la risposta di errore mostra l'importo addebitato.

Cerca su Google Maps attorno a una latitudine e longitudine esatte e ottieni fino a 20 luoghi normalizzati per chiamata, ciascuno con l'indirizzo scomposto in via, città, stato, CAP e paese. Usalo quando hai le coordinate e vuoi il viewport della mappa centrato su di esse; usa maps.search quando hai solo il nome di un luogo. Passa il nextCursor restituito come cursor per i 20 luoghi successivi. La risposta è JSON normalizzato con la stessa busta che restituisce ogni endpoint AnyAPI, quindi analizzare un secondo endpoint significa cambiare l'URL e nient'altro.

Negli ultimi 30 giorni, il 99,8% delle chiamate Google Maps Ricerca nelle vicinanze tramite AnyAPI è riuscito, con un tempo di risposta mediano di 6,1 secondi su 4352 chiamate misurate. Sono misurazioni di AnyAPI sul traffico che passa dal gateway, ricalcolate di continuo, non un obiettivo di livello di servizio pubblicato.

Sì. Un nuovo account AnyAPI parte con 0,10 USD di saldo gratuito e senza bisogno di carta, che copre 76 chiamate Google Maps Ricerca nelle vicinanze a 0,0013 USD ciascuna.

Invia una richiesta POST a https://api.getanyapi.com/v1/run/maps.search_nearby con la tua chiave AnyAPI in un header "Authorization: Bearer" e l'input come corpo JSON. La stessa chiave e lo stesso portafoglio funzionano su ogni endpoint AnyAPI.

No. Aggiungi dollari statunitensi a un unico saldo prepagato AnyAPI e ogni richiesta lo scala. Non c'è un piano mensile né un minimo, e lo stesso saldo paga ogni endpoint AnyAPI.

Sì. Installa @getanyapi/sdk da npm per TypeScript o getanyapi da pip per Python. Entrambi chiamano ogni endpoint AnyAPI con la stessa chiave, e funziona anche qualsiasi client HTTP.

Sì. Un agente può collegarsi al server MCP di AnyAPI su https://api.getanyapi.com/mcp, oppure creare da solo la propria chiave di prova gratuita con un POST non autenticato a https://api.getanyapi.com/agent/signup e chiamare questo endpoint via HTTP.