73trust / 100

Tools Google Trends Scraper

by Google Trends Scraper in Search & web

x402 APIPassing, checked 10 h ago

Google Trends for any keyword, country and time range: interest over time with peak and trend %, interest by region, related queries and topics (top + rising), any Google property, plus today's trending searches. No API key. One search per call (result caps in the input schema); failed lookups are not charged.

POST
https://agent-data.centorprat.workers.dev/tools/google-trends-scraper
Price
$0.05
per call in USDC
Uptime
93.4%
last 30 days
Response time
336 ms
596 ms slowest 5%
Last check
Passed
10 h ago, next any minute now

Run a free test callHow to call it

Reliability

All checks passedSome failedAll failedNot checked

Status and outage history · Atom feed · Watch with other listings

How to call it

POST https://agent-data.centorprat.workers.dev/tools/google-trends-scraper

Each call costs $0.05 in USDC on Polygon, paid with the request over x402.

Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.

Example request

From the listing.

POST https://agent-data.centorprat.workers.dev/tools/google-trends-scraper
content-type: application/json

{
  "searchTerms": [
    "chatgpt",
    "claude"
  ],
  "timeRange": "past-12-months"
}

Parameters

ParameterTypeRequiredDescription
categoryintegerNoGoogle Trends category id (0 = all categories).
geostringNoTwo-letter country code (US, GB, DE, ES, IN...) or a region like US-CA. Empty = worldwide.
interestByRegionbooleanNoCountries, or regions within the chosen country.
interestOverTimebooleanNoTimeline (0-100) plus average, peak, latest and trend %.
languagestringNoInterface language, e.g. en-US, es, de.
propertystringNoWhich Google search to measure. One of: web, images, news, youtube, shopping.
regionResolutionstringNoGranularity of interest by region (optional). One of: COUNTRY, REGION, CITY, DMA.
relatedQueriesbooleanNoTop and rising related searches.
relatedTopicsbooleanNoTop and rising related topics.
searchTermsarray of stringNoKeywords or topics to analyze, one per line, e.g. ["chatgpt", "electric cars"].
timeRangestringNoPeriod for interest over time and the related data. One of: past-hour, past-4-hours, past-day, past-7-days, past-30-days, past-90-days, past-12-months, past-5-years, all.
trendingNowCountriesarray of stringNoAlso return today's trending searches for these countries, e.g. ["US", "GB"].

Example response

The provider's example. We can't check it without paying. Shortened for display.

Example response, 301 lines
{
  "items": [
    {
      "category": 0,
      "geo": "Worldwide",
      "interestByRegion": [
        {
          "geoCode": "RW",
          "name": "Rwanda",
          "value": 100
        },
        {
          "geoCode": "LK",
          "name": "Sri Lanka",
          "value": 83
        },
        {
          "geoCode": "CN",
          "name": "China",
          "value": 66
        },
        {
          "geoCode": "PK",
          "name": "Pakistan",
          "value": 66
        },
        {
          "geoCode": "PH",
          "name": "Philippines",
          "value": 63
        },
        {
          "geoCode": "ET",
          "name": "Ethiopia",
          "value": 62
        },
        {
          "geoCode": "UZ",
          "name": "Uzbekistan",
          "value": 61
        },
        {
          "geoCode": "NP",
          "name": "Nepal",
          "value": 60
        },
        {
          "geoCode": "PE",
          "name": "Peru",
          "value": 59
        },
        {
          "geoCode": "MY",
          "name": "Malaysia",
          "value": 59
        },
        {
          "geoCode": "TN",
          "name": "Tunisia",
          "value": 55
        },
        {
          "geoCode": "EC",
          "name": "Ecuador",
          "value": 54
        },
        {
          "geoCode": "AE",
          "name": "United Arab Emirates",
          "value": 53
        },
        {
          "geoCode": "MM",
          "name": "Myanmar (Burma)",
          "value": 52
        },
        {
          "geoCode": "KH",
          "name": "Cambodia",
          "value": 51
        },
        {
          "geoCode": "KE",
          "name": "Kenya",
          "value": 50
        },
        {
          "geoCode": "QA",
          "name": "Qatar",
          "value": 45
        },
        {
          "geoCode": "PA",
          "name": "Panama",
          "value": 44
        },
        {
          "geoCode": "BO",
          "name": "Bolivia",
          "value": 43
        },
        {
          "geoCode": "BD",
          "name": "Bangladesh",
          "value": 42
        }
      ],
      "interestOverTime": [
        {
          "date": "Oct 19, 2025",
          "isPartial": false,
          "time": 1760832000,
          "value": 97
        },
        {
          "date": "Oct 26, 2025",
          "isPartial": false,
          "time": 1761436800,
          "value": 96
        },
        {
          "date": "Nov 2, 2025",
          "isPartial": false,
          "time": 1762041600,
          "value": 98
        },
        {
          "date": "Nov 9, 2025",
          "isPartial": false,
          "time": 1762646400,
          "value": 99
        },
        {
          "date": "Nov 16, 2025",
          "isPartial": false,
          "time": 1763251200,
          "value": 100
        },
        {
          "date": "Nov 23, 2025",
          "isPartial": false,
          "time": 1763856000,
          "value": 86
        },
        {
          "date": "Nov 30, 2025",
          "isPartial": false,
          "time": 1764460800,
          "value": 88
        },
        {
          "date": "Dec 7, 2025",
          "isPartial": false,
          "time": 1765065600,
          "value": 90
        },
        {
          "date": "Dec 14, 2025",
          "isPartial": false,
          "time": 1765670400,
          "value": 83
        },
        {
          "date": "Dec 21, 2025",
          "isPartial": false,
          "time": 1766275200,
          "value": 66
        },
        {
          "date": "Dec 28, 2025",
          "isPartial": false,
          "time": 1766880000,
          "value": 65
        },
        {
          "date": "Jan 4, 2026",
          "isPartial": false,
          "time": 1767484800,
          "value": 78
        },
        {
          "date": "Jan 11, 2026",
          "isPartial": false,
          "time": 1768089600,
          "value": 84
        },
        {
          "date": "Jan 18, 2026",
          "isPartial": false,
          "time": 1768694400,
          "value": 83
        },
        {
          "date": "Jan 25, 2026",
          "isPartial": false,
          "time": 1769299200,
          "value": 83
        },
        {
          "date": "Feb 1, 2026",
          "isPartial": false,
          "time": 1769904000,
          "value": 87
        },
        {
          "date": "Feb 8, 2026",
          "isPartial": false,
          "time": 1770508800,
          "value": 84
        },
        {
          "date": "Feb 15, 2026",
          "isPartial": false,
          "time": 1771113600,
          "value": 74
        },
        {
          "date": "Feb 22, 2026",
          "isPartial": false,
          "time": 1771718400,
          "value": 82
        },
        {
          "date": "Mar 1, 2026",
          "isPartial": false,
          "time": 1772323200,
          "value": 91
        }
      ],
      "keyword": "chatgpt",
      "property": "web",
      "relatedQueries": {
        "rising": [
          {
            "formattedValue": "+2,700%",
            "link": "/trends/explore?q=how+to+use+chatgpt+effectively&date=today+12-m",
            "query": "how to use chatgpt effectively",
            "value": 2700
          },
          {
            "formattedValue": "+1,350%",
            "link": "/trends/explore?q=chatgpt+5.2&date=today+12-m",
            "query": "chatgpt 5.2",
            "value": 1350
          },
          {
            "formattedValue": "+750%",
            "link": "/trends/explore?q=%D8%A4%D8%A7%D8%B4%D9%81+chatgpt&date=today+12-m",
            "query": "ؤاشف chatgpt",
            "value": 750
          },
          {
            "formattedValue": "+130%",
            "link": "/trends/explore?q=chatgpt+%E5%AE%98%E7%BD%91&date=today+12-m",
            "query": "chatgpt 官网",
            "value": 130
          },
          {
            "formattedValue": "+110%",
            "link": "/trends/explore?q=openai+chatgpt&date=today+12-m",
            "query": "openai chatgpt",
            "value": 110
          },
          {
            "formattedValue": "+60%",
            "link": "/trends/explore?q=chatgpt+pro&date=today+12-m",
            "query": "chatgpt pro",
            "value": 60
          },
          {
            "formattedValue": "+60%",
            "link": "/trends/explore?q=chatgpt+app&date=today+12-m",
            "query": "chatgpt app",
            "value": 60
          },
          {
            "formattedValue": "+50%",
            "link": "/trends/explore?q=chatgpt+plus&date=today+12-m",
            "query": "chatgpt plus",
            "value": 50
          }
        ],
        "top": [
          {
            "formattedValue": "100",
            "link": "/trends/explore?q=chatgpt+ai&date=today+12-m",
            "query": "chatgpt ai",
            "value": 100
          },
          {
            "formattedValue": "69",
            "link": "/trends/explore?q=openai+chatgpt&date=today+12-m",
            "query": "openai chatgpt",
            "value": 69
          },
          {
            "formattedValue": "57",
            "link": "/trends/explore?q=chatgpt+free&date=today+12-m",
            "query": "chatgpt free",
            "value": 57
…

Call it from code

The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.05.

curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i -X POST 'https://agent-data.centorprat.workers.dev/tools/google-trends-scraper' \
  -H 'content-type: application/json' \
  --data-raw '{"searchTerms":["chatgpt","claude"],"timeRange":"past-12-months"}'

# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - -X POST 'https://agent-data.centorprat.workers.dev/tools/google-trends-scraper' \
  -H 'content-type: application/json' \
  --data-raw '{"searchTerms":["chatgpt","claude"],"timeRange":"past-12-months"}' \
  | grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decode
JavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

// Pays at most $0.05 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.05" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.05 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent-data.centorprat.workers.dev%2Ftools%2Fgoogle-trends-scraper&method=POST
const res = await pay("https://agent-data.centorprat.workers.dev/tools/google-trends-scraper", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({
    "searchTerms": [
      "chatgpt",
      "claude"
    ],
    "timeRange": "past-12-months"
  }),
});
console.log(res.status, await res.text());
Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client

# Pays at most $0.05 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.05"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))

with x402_requests(client) as session:
    res = session.post(
        "https://agent-data.centorprat.workers.dev/tools/google-trends-scraper",
        json={
            "searchTerms": [
                "chatgpt",
                "claude",
            ],
            "timeRange": "past-12-months",
        },
    )
    print(res.status_code, res.text)

Security scan

1 finding

  • Payment address changed recently in payment
    Payment address on Base changed from 0x6C571a6F88cfB3DA7d639eBa9906d8672959496E to 0x8d38D6026cf3A9805DE9c5F0611ceE95B532B120; Payment address on Polygon changed from 0x6C571a6F88cfB3DA7d639eBa9906d8672959496E to 0x8d38D6026cf3A9805DE9c5F0611ceE95B532B120

Recent checks

WhenResultHTTPTimePrice
10 h agoPassed402307 ms$0.05
2 days agoTimed out---
4 days agoPassed402141 ms$0.05
4 days agoPassed402218 ms$0.05
5 days agoPassed402145 ms$0.05
Show 10 older checks
5 days agoPassed402284 ms$0.05
5 days agoPassed4021.7 s$0.05
6 days agoPassed402280 ms$0.05
6 days agoPassed402446 ms$0.05
6 days agoRate limited (HTTP 429)42935 ms-
7 days agoPassed402910 ms$0.05
7 days agoPassed402283 ms$0.05
7 days agoPassed402415 ms$0.05
7 days agoPassed402402 ms$0.05
8 days agoPassed402327 ms$0.05

History

30 Nov 2026Payment address on Base changed from 0x6C571a6F88cfB3DA7d639eBa9906d8672959496E to 0x8d38D6026cf3A9805DE9c5F0611ceE95B532B120; Payment address on Polygon changed from 0x6C571a6F88cfB3DA7d639eBa9906d8672959496E to 0x8d38D6026cf3A9805DE9c5F0611ceE95B532B120
26 Nov 2026Payment address on Base changed from 0x8d38D6026cf3A9805DE9c5F0611ceE95B532B120 to 0x6C571a6F88cfB3DA7d639eBa9906d8672959496E; Payment address on Polygon changed from 0x8d38D6026cf3A9805DE9c5F0611ceE95B532B120 to 0x6C571a6F88cfB3DA7d639eBa9906d8672959496E
25 Oct 2026Price on Base changed from $0.01 to $0.05; Price on Polygon changed from $0.01 to $0.05; Price on Solana changed from $0.01 to $0.05