API di Google

Google Trends regions API

Google Trends interest by region for up to 5 search terms: one row per country worldwide, or per state or province inside one country, with each term's value there. One term gives each place a 0-100 interest score; several give the share of searches each term took in that place. Choose the country with geo (worldwide when omitted) and the window with timeframe (the past 12 months when omitted); both are echoed in the response. Places without enough searches are left out. Regions only, not interest over time or cities.

POST/v1/run/google.trends_regions
Disponibilità
100,00%
30d · 2 chiamate
Richieste
2
30d
Risposta
0,9s
mediana · 30d

Stato

Caricamento dello stato...

Ricevi le email sui guasti di questo endpoint

Vedi tutti gli endpoint nella pagina di stato

Prezzi e provider

Prezzi dell'API Google Trends regions: una sola API, 3 provider intercambiabili

Serve per primo il provider più economico. Se fallisce, subentra il successivo nella stessa chiamata.

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

Provalo

Ottieni Google Trends regions 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.
{
  "data": {
    "geo": "example",
    "regions": [
      {
        "geo": "example",
        "name": "Example title",
        "values": [
          {
            "keyword": "a1b2c3d4",
            "value": 20
          }
        ]
      }
    ],
    "timeframe": "2024-01-15T09:30:00Z",
    "valueType": "index"
  },
  "found": true,
  "reason": "not_found"
}

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-12-02 · disponibilità e latenza misurate su 30d

Corpo della richiesta

JSON, inviato a questo endpoint.

  • keywordsarray

    ["coffee"]

    Search terms to compare, 1 to 5, each 2 to 100 characters and without commas (e.g. ["coffee", "tea"]). One term gives each place a 0-100 interest score; several give each place the share of searches each term took there.

  • geostring

    US

    Where to break interest down: an uppercase ISO country code (US, GB, DE) for one row per state or province of that country. Omit it, or send worldwide, for one row per country.

  • timeframeenum

    12m

    The window to measure, ending now: 1h, 4h, 1d or 7d (hours and days), 1m or 3m (months), 12m, 5y, or all (back to January 2004).

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

Risposta

JSON, un valore di esempio per campo.

datadata

The interest-by-region record, or null when nothing was found.

  • geostring

    The place broken down: the country code you sent, or worldwide.

  • timeframestring

    The window measured: the timeframe you sent, or 12m when you sent none.

  • valueType"index" | "share"

    What each value means. index (one term): the place's search interest on a 0-100 scale, where 100 is the place where the term is most popular as a fraction of all its searches. share (several terms): the percentage of the place's searches for these terms that each term took, so a place's values add up to about 100.

each regiondata.regions[]

One row per country (worldwide) or per state or province (a country), for the places Google Trends holds data for. Places without enough searches are left out. Populated whenever the provider has data for the entity.

  • geostring

    The place's code: an ISO country code (SG) worldwide, or a subdivision code (US-WY) inside a country. Populated whenever the provider has data for the entity.

  • namestring

    The place's English name (Wyoming). Populated whenever the provider has data for the entity.

each valuedata.regions[].values[]

One value per search term, in the order you sent the terms. Populated whenever the provider has data for the entity.

  • keywordstring

    The search term this value is for. Populated whenever the provider has data for the entity.

  • valueinteger

    The term's value in this place, read as valueType says: a 0-100 interest score for one term, or the term's percentage share for several. Populated whenever the provider has data for the entity.

top level
  • foundboolean

    False when Google Trends holds too little search interest for these terms, place and window to report any region.

  • 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 Trends regions

L'API Google Trends regions di AnyAPI restituisce dati Google come JSON normalizzato da una sola chiamata POST a /v1/run/google.trends_regions. Google Trends interest by region for up to 5 search terms: one row per country worldwide, or per state or province inside one country, with each term's value there. One term gives each place a 0-100 interest score; several give the share of searches each term took in that place. Choose the country with geo (worldwide when omitted) and the window with timeframe (the past 12 months when omitted); both are echoed in the response. Places without enough searches are left out. Regions only, not interest over time or cities. AnyAPI instrada ogni richiesta su 3 fonti e passa automaticamente a un'altra quando una fallisce. Costa da 2 USD ogni 1.000 richieste, in dollari statunitensi, senza abbonamento e senza minimo mensile. Negli ultimi 30 giorni, il 100,0% delle chiamate Google Trends regions tramite AnyAPI è riuscito, con un tempo di risposta mediano di 0,9 secondi su 2 chiamate misurate.

Costa da 2 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.

Google Trends interest by region for up to 5 search terms: one row per country worldwide, or per state or province inside one country, with each term's value there. One term gives each place a 0-100 interest score; several give the share of searches each term took in that place. Choose the country with geo (worldwide when omitted) and the window with timeframe (the past 12 months when omitted); both are echoed in the response. Places without enough searches are left out. Regions only, not interest over time or cities. 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 100,0% delle chiamate Google Trends regions tramite AnyAPI è riuscito, con un tempo di risposta mediano di 0,9 secondi su 2 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 50 chiamate Google Trends regions a 0,002 USD ciascuna.

AnyAPI interroga la successiva delle sue 3 fonti nella stessa richiesta, partendo dalla più economica, quindi una fonte che cade non fa fallire la tua chiamata.

Invia una richiesta POST a https://api.getanyapi.com/v1/run/google.trends_regions 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.