{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Trends Scraper & API: Compare 100 Keywords",
    "description": "Google Trends interest over time for up to 100 keywords put on one common 0-100 scale, chained through adaptive anchor terms. A series is returned only if it is complete and comparable; the rest is flagged and never charged. Changes-only mode for daily runs. Priced per keyword series.",
    "version": "0.0",
    "x-build-id": "823E1rANdow3YP48w"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zerofail~google-trends-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zerofail-google-trends-scraper",
        "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/zerofail~google-trends-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zerofail-google-trends-scraper",
        "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/zerofail~google-trends-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zerofail-google-trends-scraper",
        "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",
        "required": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "Keywords",
            "minItems": 1,
            "maxItems": 100,
            "type": "array",
            "description": "The keywords to compare, brought onto one 0-100 scale. Duplicates are removed.",
            "default": [
              "chatgpt",
              "claude",
              "gemini"
            ],
            "items": {
              "type": "string"
            }
          },
          "timeframe": {
            "title": "Time range",
            "enum": [
              "now 1-d",
              "now 7-d",
              "today 1-m",
              "today 3-m",
              "today 12-m",
              "today 5-y",
              "all",
              "custom"
            ],
            "type": "string",
            "description": "Google Trends time range. Google decides the resolution from this value, and these are the resolutions it really returns (measured 2026-11-14): one point every 8 minutes for the past day, hourly for 7 days, daily for 1 and 3 months, weekly for 12 months AND for 5 years, monthly for \"2004 to now\". Pick \"custom\" and fill in \"customTimeRange\" to set your own dates; the two always travel together, and one without the other stops the run rather than measuring another period.",
            "default": "today 12-m"
          },
          "customTimeRange": {
            "title": "Custom time range (YYYY-MM-DD YYYY-MM-DD)",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2} \\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only used when \"timeframe\" is \"custom\". Two dates separated by a space, e.g. \"2024-01-01 2024-12-31\". Filling this in while \"timeframe\" is not \"custom\" stops the run with an explicit error instead of quietly measuring another period. Google decides the resolution from the length: measured 2026-11-14, 40 days and 8 months both answer daily.",
            "default": ""
          },
          "geo": {
            "title": "Region",
            "type": "string",
            "description": "Country or region code (e.g. FR, US-CA). Empty means worldwide.",
            "default": ""
          },
          "includePartialLastPoint": {
            "title": "Keep the last, unfinished point",
            "type": "boolean",
            "description": "Off by default, and that is deliberate. The last point of every range covers a period that has not finished yet, so it is not comparable with the others: measured on 2026-11-14 it sat up to 20% below the point before it on the daily and weekly ranges, and 20% ABOVE on the 8-minute one. Leaving it in would move the peaks and averages of every keyword with no field saying why. Turn it on to get the running period, flagged isPartial. Either way the run summary reports partialPointDropped.",
            "default": false
          },
          "scaleReference": {
            "title": "Scale reference",
            "type": "string",
            "description": "The keyword every other one is measured against. Must be one of the keywords above. Chosen automatically when empty."
          },
          "includeRegionBreakdown": {
            "title": "Also return interest by region",
            "type": "boolean",
            "description": "One extra request per keyword, and one extra charged event per keyword (see Pricing). Region values are relative WITHIN the keyword, not on the run's common scale, and the row says so. The granularity (country, region/state, or metro) is decided by Google from \"geo\" alone, worldwide/country/sub-region — there is no separate control for it; the dataset's regionResolution field says what Google used.",
            "default": false
          },
          "includeRelatedQueries": {
            "title": "Also return related queries (top and rising)",
            "type": "boolean",
            "description": "One extra request per keyword, and one extra charged event per keyword (see Pricing). Off by default so the default run stays fast and cheap. Rising queries marked \"Breakout\" are flagged with isBreakout = true. Also required for monitor mode to report newly rising queries: with this off, monitor mode never reports them, even though it still reports interest changes.",
            "default": false
          },
          "category": {
            "title": "Google Trends category id (0 = all)",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Restricts interest to one Google Trends category. 0 = all categories. Examples: 7 Finance, 5 Computers & Electronics, 71 Food & Drink, 20 Sports.",
            "default": 0
          },
          "language": {
            "title": "Language of labels (hl)",
            "pattern": "^[a-z]{2}(-[A-Za-z0-9]{2,4})?$",
            "type": "string",
            "description": "Affects the wording Google returns, not the numbers. e.g. en-US, fr, de, es.",
            "default": "en-US"
          },
          "timezoneOffsetMinutes": {
            "title": "Time zone offset in minutes",
            "minimum": -720,
            "maximum": 840,
            "type": "integer",
            "description": "Google's \"tz\" parameter. Measured on 2026-11-14: it changes only the labels Google prints, and only on hourly ranges — the data itself does not move. Two identical runs at 0 and at -300 returned byte-identical timestamps. Dates in the output are always UTC, so a run is reproducible whatever this is. 0 by default.",
            "default": 0
          },
          "monitorMode": {
            "title": "Only what changed",
            "type": "boolean",
            "description": "Report only the keywords whose interest moved since the last run with the same tracking key.",
            "default": false
          },
          "minChangePct": {
            "title": "Minimum change (%)",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "A keyword must move strictly more than this to be reported in monitoring mode.",
            "default": 0
          },
          "trackingKey": {
            "title": "Tracking key",
            "type": "string",
            "description": "Names the comparison across runs. Derived from the keywords, period, region and category when left empty."
          },
          "debug": {
            "title": "Keep the raw Google answers in the key-value store",
            "type": "boolean",
            "description": "Stores each raw response under a raw-* key, for support. Off by default: the answers are large and nothing in them is needed to read the dataset.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}