{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Trending Hashtags With Momentum Analytics Scraper",
    "description": "TikTok Trending Hashtags Scraper detects and tracks trending TikTok hashtags, returning metrics like popularity score, usage volume, top videos, top creators, geographic trends, avg views/engagement, and trend velocity.",
    "version": "0.1",
    "x-build-id": "OT6QSu9YlWGR3Fqpe"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/simpleapi~tiktok-trending-hashtags-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-simpleapi-tiktok-trending-hashtags-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/simpleapi~tiktok-trending-hashtags-scraper/runs": {
      "post": {
        "operationId": "runs-sync-simpleapi-tiktok-trending-hashtags-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/simpleapi~tiktok-trending-hashtags-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-simpleapi-tiktok-trending-hashtags-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",
        "properties": {
          "dataMode": {
            "title": "🎯 Data Mode",
            "enum": [
              "trending",
              "trending_deep",
              "watchlist"
            ],
            "type": "string",
            "description": "✨ Choose what to return. • 🏆 Trending List — ranked hashtags with momentum fields. • 📊 Trending + Deep Analytics — adds the raw analytics blob (curve, creators, industry). • 🔬 Custom Watchlist — track only the hashtags you list below (Watchlist Hashtags).\n\nBackward-compatible: the base's `result_type` key (top100 / top100_with_analytics / analytics) still works if supplied instead."
          },
          "targetCountry": {
            "title": "🌍 Target Country",
            "enum": [
              "ALL",
              "AL",
              "AR",
              "AU",
              "AT",
              "BH",
              "BD",
              "BY",
              "BE",
              "BR",
              "BG",
              "KH",
              "CA",
              "CL",
              "CO",
              "HR",
              "CZ",
              "DK",
              "EG",
              "EE",
              "FI",
              "FR",
              "DE",
              "GR",
              "HU",
              "IS",
              "ID",
              "IQ",
              "IE",
              "IL",
              "IT",
              "JP",
              "JO",
              "KZ",
              "KW",
              "LV",
              "LB",
              "LT",
              "LU",
              "MO",
              "MY",
              "MX",
              "MA",
              "MN",
              "NL",
              "NZ",
              "NG",
              "NO",
              "OM",
              "PK",
              "PE",
              "PH",
              "PL",
              "PT",
              "QA",
              "RO",
              "SA",
              "SG",
              "SK",
              "ZA",
              "KR",
              "ES",
              "SE",
              "CH",
              "TW",
              "TH",
              "TR",
              "UA",
              "AE",
              "GB",
              "US",
              "UZ",
              "VN"
            ],
            "type": "string",
            "description": "🗺️ Country to pull trending hashtags & momentum for. Backward-compatible with the base's `country` key."
          },
          "trendWindowDays": {
            "title": "📅 Trend Window",
            "enum": [
              "7",
              "30",
              "120"
            ],
            "type": "string",
            "description": "⏳ Time window for the trending list + momentum curve. Backward-compatible with `top100_period`."
          },
          "curveWindowDays": {
            "title": "🔭 Watchlist Curve Window",
            "enum": [
              "7",
              "30",
              "120"
            ],
            "type": "string",
            "description": "📈 Time window used only in 🔬 Custom Watchlist mode. Backward-compatible with `analytics_period`."
          },
          "industryFocus": {
            "title": "🏷️ Industry Focus",
            "enum": [
              "",
              "1000000001",
              "2000000001",
              "3000000000",
              "5000000000",
              "7000000000",
              "8000000002",
              "9000000002",
              "10000000000",
              "14000000000",
              "15000000001",
              "17000000002",
              "20000000001",
              "21000000000",
              "23000000000",
              "24000000000",
              "26000000001",
              "28000000001",
              "29000000001"
            ],
            "type": "string",
            "description": "🎨 Industry to echo on output rows. Backward-compatible with `top100_industry`.\n\n⚠️ Known live-surface limit: TikTok's anonymous preview endpoint currently ignores this as a server-side filter (verified live 2026-07-18) — it is still passed through and used to label `industry_info`, but does not narrow anonymous results."
          },
          "onlyNewEntrants": {
            "title": "🆕 Only New Entrants",
            "type": "boolean",
            "description": "✨ Echo request-time intent for newly-trending hashtags. Backward-compatible with `top100_new_on_board`."
          },
          "watchlistHashtags": {
            "title": "#️⃣ Watchlist Hashtags",
            "uniqueItems": true,
            "type": "array",
            "description": "📝 Hashtags (without `#`) to track when Data Mode = 🔬 Custom Watchlist. Matched against today's live trending preview — TikTok's public/anonymous surface only exposes a small preview, so a hashtag not currently in that preview will be reported as unresolved (never fabricated). Backward-compatible with `hashtag_list`.",
            "items": {
              "type": "string"
            }
          },
          "maxHashtags": {
            "title": "🔢 Max Hashtags",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "📏 Upper bound on how many trending hashtags to fetch/save this run. Backward-compatible with `total_hashtags`. TikTok's anonymous preview may return fewer than this — the actor reports the real count, never pads it."
          },
          "enableMomentumTracking": {
            "title": "🧭 Enable Momentum Tracking",
            "type": "boolean",
            "description": "📊 When ON (default), the actor keeps a persistent cross-run history (keyed by hashtag + country + period) and computes `views_velocity`, `rank_momentum`, `days_in_top100`, and a history-based `rank_diff_type`/`rank_change_readable` on every run. The FIRST run for any hashtag+country+period always reports `null` velocity (no prior data point yet) — schedule repeat runs to build history. Turn OFF to skip history read/write entirely (all momentum fields will be `null`).",
            "default": true
          },
          "proxyConfiguration": {
            "title": "🛡️ Proxy Configuration",
            "type": "object",
            "description": "🛰️ Choose which proxies to use. By default, no proxy is used and the actor connects directly; if a proxy is configured it is tried first, then the actor falls back to a direct connection."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}