{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Trends Scraper — Regions & Trending Now — $2.7/1k",
    "description": "Google Trends scraper: interest over time, regions, cities, related queries and Trending now for bulk keywords. Compare mode, pasted URLs, custom dates. One result per keyword. No login or cookies. MCP-ready for AI agents. $2.7 per 1,000 records.",
    "version": "1.0",
    "x-build-id": "8yHuIVjgNTYQZrKwt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/outstanding_vegetable~google-trends-explorer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-outstanding_vegetable-google-trends-explorer",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/outstanding_vegetable~google-trends-explorer/runs": {
      "post": {
        "operationId": "runs-sync-outstanding_vegetable-google-trends-explorer",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/outstanding_vegetable~google-trends-explorer/run-sync": {
      "post": {
        "operationId": "run-sync-outstanding_vegetable-google-trends-explorer",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "explore",
              "trendingNow"
            ],
            "type": "string",
            "description": "Explore = keyword data (interest over time, by region/city, related queries and topics). Trending now = the live list of trending searches for a country, like trends.google.com/trending.",
            "default": "explore"
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Any number of keywords or topic ids (/m/05z1_). Each one becomes one result row. Leave empty to run a sample on \"python\".",
            "items": {
              "type": "string"
            }
          },
          "isMultiple": {
            "title": "Split terms on commas",
            "type": "boolean",
            "description": "Treat a comma inside a search term as a separator (\"a, b\" becomes two terms).",
            "default": false
          },
          "startUrls": {
            "title": "Google Trends URLs",
            "type": "array",
            "description": "Paste trends.google.com/trends/explore URLs (q, geo, date, cat, gprop are read from the URL; comma-separated q terms are compared together) or trends.google.com/trending URLs (geo, hours, category).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "listUrl": {
            "title": "Search terms from a Google Sheet or CSV",
            "type": "string",
            "description": "Link to a Google Sheet shared as \"anyone with the link\", a Google Drive CSV, or any CSV/TXT URL. The first column is read; a header row like \"keyword\" is skipped."
          },
          "compare": {
            "title": "Compare terms against each other",
            "type": "boolean",
            "description": "Off: each term is fetched on its own, so its 0-100 values are absolute for that term. On: terms are compared in groups of 5 on one shared 0-100 scale (like typing several terms into Google Trends). Defaults to on in per-data-point output and off in per-keyword output."
          },
          "outputMode": {
            "title": "Output format",
            "enum": [
              "perKeyword",
              "perDataPoint"
            ],
            "type": "string",
            "description": "perKeyword: one row per search term with the timeline, regions, cities and related queries/topics nested inside (same field names as apify/google-trends-scraper). perDataPoint: one flat row per time point / region / related term. Runs that only set the legacy \"keywords\" field keep perDataPoint."
          },
          "geo": {
            "title": "Location",
            "type": "string",
            "description": "ISO country code (US, GB, DE…), a region code like US-TX, or empty for worldwide. Trending now needs a country or region.",
            "default": "US"
          },
          "timeRange": {
            "title": "Time range",
            "enum": [
              "now 1-H",
              "now 4-H",
              "now 1-d",
              "now 7-d",
              "today 1-m",
              "today 3-m",
              "today 12-m",
              "today 5-y",
              "all"
            ],
            "type": "string",
            "description": "Google Trends time window. Ignored when a custom time range is set.",
            "default": "today 12-m"
          },
          "customTimeRange": {
            "title": "Custom time range",
            "type": "string",
            "description": "Overrides Time range. Format: YYYY-MM-DD YYYY-MM-DD (e.g. 2024-01-01 2024-06-30). Hourly windows up to 7 days: 2026-10-01T00 2026-10-07T23."
          },
          "category": {
            "title": "Category ID",
            "minimum": 0,
            "type": "integer",
            "description": "Google Trends category number (0 = all categories, 5 = Computers & Electronics, 7 = Finance, 18 = Shopping, 71 = Food & Drink…).",
            "default": 0
          },
          "searchType": {
            "title": "Search type",
            "enum": [
              "web",
              "images",
              "news",
              "youtube",
              "froogle"
            ],
            "type": "string",
            "description": "Which Google property to measure.",
            "default": "web"
          },
          "dataTypes": {
            "title": "Data to collect",
            "type": "array",
            "description": "Which Google Trends widgets to return. Empty = everything except cities in per-keyword output, interest over time + related queries in per-data-point output.",
            "items": {
              "type": "string",
              "enum": [
                "interestOverTime",
                "interestByRegion",
                "interestByCity",
                "relatedQueries",
                "relatedTopics"
              ],
              "enumTitles": [
                "Interest over time",
                "Interest by region",
                "Interest by city",
                "Related queries",
                "Related topics"
              ]
            }
          },
          "resolution": {
            "title": "Region resolution",
            "enum": [
              "COUNTRY",
              "REGION",
              "CITY",
              "DMA"
            ],
            "type": "string",
            "description": "Granularity of \"Interest by region\": countries, subregions (states), cities, or US metro areas (DMA). Default: subregions inside a country, countries when worldwide."
          },
          "language": {
            "title": "Language (hl)",
            "type": "string",
            "description": "Interface language for topic names, category names and dates, e.g. en-US, de, fr, ja."
          },
          "viewedFrom": {
            "title": "Viewed from (proxy country)",
            "type": "string",
            "description": "Two-letter country of the residential proxy used to reach Google Trends. Default US."
          },
          "trendingHours": {
            "title": "Trending now: time window",
            "enum": [
              "4",
              "24",
              "48",
              "168"
            ],
            "type": "string",
            "description": "Trending-now mode: searches that started trending in the past 4, 24, 48 or 168 hours.",
            "default": "24"
          },
          "trendingCategory": {
            "title": "Trending now: category",
            "enum": [
              "0",
              "1",
              "2",
              "3",
              "20",
              "4",
              "5",
              "6",
              "7",
              "8",
              "9",
              "10",
              "11",
              "13",
              "14",
              "15",
              "16",
              "17",
              "18",
              "19"
            ],
            "type": "string",
            "description": "Trending-now mode: keep only trends in this category.",
            "default": "0"
          },
          "trendingActiveOnly": {
            "title": "Trending now: active only",
            "type": "boolean",
            "description": "Trending-now mode: skip trends that have already ended.",
            "default": false
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 0,
            "type": "integer",
            "description": "Per-keyword output: max keyword rows. Per-data-point output: max data points. Trending now: max trends. 0 = no limit.",
            "default": 10
          },
          "maxConcurrency": {
            "title": "Parallel sessions",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many keyword groups are fetched in parallel, each on its own proxy session.",
            "default": 3
          },
          "keywords": {
            "title": "Keywords (legacy)",
            "type": "array",
            "description": "Legacy field kept for existing integrations; same as Search terms. When used on its own the output stays one row per data point and terms are compared in groups of 5.",
            "items": {
              "type": "string"
            }
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Residential proxy is used by default — Google rate-limits datacenter IPs immediately."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}