{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Trends Scraper — Rising & Trending Keywords, Scores",
    "description": "Google Trends scraper that does not stall: trend score and rising/breakout verdict per keyword, related queries, regions and trending searches. Free plan: 1-keyword preview. Paid plans: up to 100 keyword/region pairs per run. Failed keywords never block the run.",
    "version": "0.1",
    "x-build-id": "ZPsmaZVrRMOB0nfrq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ntriqpro~google-trends-rising-keywords/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ntriqpro-google-trends-rising-keywords",
        "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/ntriqpro~google-trends-rising-keywords/runs": {
      "post": {
        "operationId": "runs-sync-ntriqpro-google-trends-rising-keywords",
        "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/ntriqpro~google-trends-rising-keywords/run-sync": {
      "post": {
        "operationId": "run-sync-ntriqpro-google-trends-rising-keywords",
        "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": {
          "searchTerms": {
            "title": "Search terms (FREE: first keyword only)",
            "type": "array",
            "description": "Keywords to look up. Blank and duplicate entries are ignored. Each keyword runs once per region in \"geos\". FREE: only the first keyword is processed.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Google Trends explore URLs (optional)",
            "type": "array",
            "description": "Optional Trends explore links (q, geo, date, cat and gprop are read from the link). A link overrides geos, time range, category and property for its keywords.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "geos": {
            "title": "Regions (geos)",
            "type": "array",
            "description": "Country or subregion codes such as US, GB, KR or US-CA. An empty string means worldwide. Each keyword gets one trend row per region. FREE: only the first keyword/region pair runs.",
            "items": {
              "type": "string"
            },
            "default": [
              "US"
            ]
          },
          "timeRange": {
            "title": "Time range",
            "type": "string",
            "description": "today 5-y (default), today 12-m, today 3-m, now 7-d, now 1-d, all, or a custom range like 2024-01-01 2025-01-01.",
            "default": "today 5-y"
          },
          "category": {
            "title": "Category",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Google Trends category id (0 = all categories, for example 71 = Food & Drink).",
            "default": 0
          },
          "property": {
            "title": "Google property",
            "enum": [
              "web",
              "youtube",
              "news",
              "images",
              "froogle"
            ],
            "type": "string",
            "description": "Where the searches happened.",
            "default": "web"
          },
          "expandRising": {
            "title": "Expand rising related keywords",
            "type": "boolean",
            "description": "Look up the seed keyword's rising related queries again and give each its own trend row and verdict (source \"expanded-from:<seed>\"). FREE: at most 2.",
            "default": true
          },
          "maxExpandedPerSeed": {
            "title": "Max expanded keywords per seed (FREE: 2)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Upper limit per seed keyword. Each expanded keyword is one keyword-trend charge.",
            "default": 20
          },
          "includeRegions": {
            "title": "Include region rows",
            "type": "boolean",
            "description": "One row per region with interest. FREE: top 5 regions.",
            "default": true
          },
          "includeRelatedTopics": {
            "title": "Include related topics",
            "type": "boolean",
            "description": "Related topics next to related queries. FREE: 3 per list.",
            "default": true
          },
          "timelineRows": {
            "title": "Also write one row per time point",
            "type": "boolean",
            "description": "Off by default: the timeline is already an array in the keyword-trend row. Turning this on adds one small charge per point.",
            "default": false
          },
          "trendingCountries": {
            "title": "Trending searches countries (FREE: first country, 5 rows)",
            "type": "array",
            "description": "Two-letter country codes for currently trending searches, for example US or KR. Leave empty to skip.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "keywordTimeBudgetSeconds": {
            "title": "Time budget per keyword (seconds)",
            "minimum": 20,
            "maximum": 300,
            "type": "integer",
            "description": "A keyword that cannot be fetched inside this time (retries and proxy session changes included) is written as a free failed row and the run continues.",
            "default": 90
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy is used with a fresh session per attempt. If lookups keep failing, a residential attempt is made automatically.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}