Docs menu

Google API endpoint

Google Trends related topics

Returns only the related topics widget from the Google Trends Explore widget flow. Returns an empty related_topics array when Google returns no topic rows for the requested term/filter combination.

POSTapiKey2 credits/requestGoogletrends.ExploreRequesttrends.relatedTopicsResponseDoc/google/trends/explore/related-topics

Overview

Returns only the related topics widget from the Google Trends Explore widget flow. Returns an empty related_topics array when Google returns no topic rows for the requested term/filter combination.

Request schema

NameInTypeRequiredEnumExampleDescription
requestbodyobjectYesExplore request
x-api-keyheaderstringYesAPI key required

Authentication

Send your scraping API key in the x-api-key header. Use the console API Keys page to rotate or select the active key.

Billing

Endpoint usage is metered in credits. The plan prices, included credits, limits, and overage rates below match the active backend billing configuration.

Credit cost
2 credits/request
Charged response
Successful 2xx responses
PlanPriceIncluded creditsDaily capRate limitOverage
Free$0/mo2,000500 daily credits5/minNo overage
Starter$9/mo20,0005,000 daily credits15/min$0.75/1,000 overage credits when enabled
Growth$29/mo100,00025,000 daily credits45/min$0.45/1,000 overage credits when enabled
Pro$79/mo400,000No daily cap120/min$0.30/1,000 overage credits
Business$199/mo1,200,000No daily cap300/min$0.20/1,000 overage credits
Enterprise$499/mo5,000,000No daily cap1,000/min$0.12/1,000 overage credits

Infrastructure behavior

This endpoint is executed through Crawlora's managed scraping infrastructure.

  • Proxy strategy: managed automatically where needed
  • Browser rendering: enabled for supported targets that require rendered HTML or JavaScript execution
  • Browser cluster: supported dynamic workloads can be routed through distributed browser instances
  • Retry behavior: automatic retry/fallback may be used depending on endpoint type
  • Challenge handling: challenged pages or unusable upstream HTML are detected and surfaced clearly when they cannot be used
  • Billing: credits are charged only for successful 2xx responses
  • Observability: responses include request context where available

Browser cluster behavior

Some targets require real browser execution because the data is loaded through JavaScript, dynamic rendering, or interaction-like browser behavior.

For supported endpoints, Crawlora can route requests through a managed browser cluster. This allows Crawlora to execute JavaScript, load dynamic content, apply browser-level request behavior, and normalize the rendered result into JSON.

You do not need to operate your own Playwright, Puppeteer, Chrome, proxy, queue, or retry infrastructure.

Error behavior

Crawlora does not silently return bad data when the upstream page cannot be used.

StatusCommon failure case
400Invalid input or missing required parameter
429Plan or endpoint rate limit exceeded
500Internal execution error
502Upstream platform failed, returned unusable HTML, or served a challenge page that could not be resolved

When possible, Crawlora returns structured error context so your integration can retry, back off, or inspect the request.

Failure responses

StatusDescriptionSchema
400Invalid input#/definitions/app.Response
429Rate limit exceeded#/definitions/app.Response
500Internal server error#/definitions/app.Response
502Google Trends upstream request failed#/definitions/app.Response

Request body example

{
  "category": 0,
  "geo": "US",
  "hl": "en-US",
  "keywords": [
    "chatgpt",
    "openai"
  ],
  "property": "",
  "time_range": "today 12-m",
  "type": "web",
  "tz": 0
}

Example response

{
  "code": 200,
  "msg": "OK",
  "data": {
    "keywords": [
      "google"
    ],
    "geo": "HK",
    "time_range": "today 1-y",
    "related_topics": [
      {
        "keyword": "google",
        "items": [
          {
            "topic_title": "Google",
            "topic_type": "Technology company",
            "topic_mid": "/m/045c7b",
            "value": 100,
            "formatted_value": "100"
          }
        ]
      }
    ]
  }
}

Request schema

#/definitions/trends.ExploreRequest

FieldTypeRequiredEnumBoundsExampleDescription
categoryintegerNo0
geostringNoWORLDWIDE, AF, AX, AL, DZ, AS, AD, AO, AI, AQ, AG, AR, AM, AW, AU, AT, AZ, BS, BH, BD, BB, BY, BE, BZ, BJ, BM, BT, BO, BA, BW, BV, BR, IO, VG, BN, BG, BF, BI, KH, CM, CA, CV, BQ, KY, CF, TD, CL, CN, CX, CC, CO, KM, CG, CD, CK, CR, CI, HR, CU, CW, CY, CZ, DK, DJ, DM, DO, EC, EG, SV, GQ, ER, EE, SZ, ET, FK, FO, FJ, FI, FR, GF, PF, TF, GA, GM, GE, DE, GH, GI, GR, GL, GD, GP, GU, GT, GG, GN, GW, GY, HT, HM, HN, HK, HU, IS, IN, ID, IR, IQ, IE, IM, IL, IT, JM, JP, JE, JO, KZ, KE, KI, XK, KW, KG, LA, LV, LB, LS, LR, LY, LI, LT, LU, MO, MG, MW, MY, MV, ML, MT, MH, MQ, MR, MU, YT, MX, FM, MD, MC, MN, ME, MS, MA, MZ, MM, NA, NR, NP, NL, NC, NZ, NI, NE, NG, NU, NF, KP, MK, MP, NO, OM, PK, PW, PS, PA, PG, PY, PE, PH, PN, PL, PT, PR, QA, RE, RO, RU, RW, WS, SM, ST, SA, SN, RS, SC, SL, SG, SX, SK, SI, SB, SO, ZA, GS, KR, SS, ES, LK, BL, SH, KN, LC, MF, PM, VC, SD, SR, SJ, SE, CH, SY, TW, TJ, TZ, TH, TL, TG, TK, TO, TT, TN, TR, TM, TC, TV, UM, VI, UG, UA, AE, GB, US, UY, UZ, VU, VA, VE, VN, WF, EH, YE, ZM, ZWUS
hlstringNoen-US
keywordsarrayNochatgpt,openai
propertystringNo
time_rangestringNonow 1-H, now 4-H, now 1-d, now 7-d, today 1-m, today 3-m, today 12-m, today 1-y, today 5-y, alltoday 12-m
typestringNoweb, image, news, youtube, shoppingweb
tzintegerNo0

Response schema

#/definitions/trends.relatedTopicsResponseDoc

FieldTypeRequiredEnumBoundsExampleDescription
codeintegerNo200
datatrends.RelatedTopicsResponseNo
data.categoryintegerNo0
data.geostringNoUS
data.hlstringNoen-US
data.keywordsarrayNo
data.propertystringNo
data.related_topicsarrayNo
data.related_topics[].itemsarrayNo
data.related_topics[].items[].formatted_valuestringNo100
data.related_topics[].items[].linkstringNo/trends/explore?q=chatgpt
data.related_topics[].items[].querystringNochatgpt login
data.related_topics[].items[].topic_midstringNo/g/11khcfz0y2
data.related_topics[].items[].topic_titlestringNoChatGPT
data.related_topics[].items[].topic_typestringNoTopic
data.related_topics[].items[].valueintegerNo100
data.related_topics[].keywordstringNochatgpt
data.time_rangestringNotoday 12-m
data.typestringNoweb
data.tzintegerNo0
msgstringNoOK

Code examples

Use environment variables for secrets and keep Crawlora API keys server-side.

curl -X POST "https://api.crawlora.net/api/v1/google/trends/explore/related-topics" \
  -H "x-api-key: $CRAWLORA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":0,"geo":"US","hl":"en-US","keywords":["chatgpt","openai"],"property":"","time_range":"today 12-m","type":"web","tz":0}'

Responsible public web data workflows

Crawlora is designed for responsible structured public web data workflows. Customers are responsible for using Crawlora in compliance with applicable laws, third-party rights, target-platform rules, and Crawlora terms.

Read Crawlora terms

Related