{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Trending Hashtags Scraper By Country And Industry",
    "description": "Tiktok Trending Hashtags Scraper helps you track real-time viral tags, engagement stats, and growth patterns. Scrape trending hashtags, discover niche opportunities, and fuel your content strategy with accurate, fast, structured data. Get reliable data for research workflows.",
    "version": "0.1",
    "x-build-id": "D9jMuPVVMuiMOi3oE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/api-empire~tiktok-trending-hashtags-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-api-empire-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/api-empire~tiktok-trending-hashtags-scraper/runs": {
      "post": {
        "operationId": "runs-sync-api-empire-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/api-empire~tiktok-trending-hashtags-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-api-empire-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": {
          "resultType": {
            "title": "🎯 Result Type",
            "enum": [
              "top100",
              "top100_with_analytics",
              "analytics"
            ],
            "type": "string",
            "description": "✨ Choose what the scraper should return.\n\n• 🏆 Top 100 Ranking — just the trending list.\n• 📊 Top 100 + Analytics — trending list with per-hashtag stats (trend curve, top creators).\n• 🔬 Hashtag Analytics (Custom List) — analytics for your own hashtags (see 'Hashtags To Analyze' below).\n\nAlso accepts the base's legacy `result_type` key."
          },
          "targetCountries": {
            "title": "🌍 Target Countries (multi-select)",
            "type": "array",
            "description": "🗺️ Pick ONE OR MORE countries to compare in the SAME run (upgrade over the base's single-select `country`). Each output row is tagged with its `sourceCountry` so you can compare markets side-by-side. Also accepts the base's legacy single-string `country` key (auto-wrapped into a 1-item list). Leave empty to default to 🌐 All (Global).",
            "items": {
              "type": "string",
              "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"
              ],
              "enumTitles": [
                "🌐 All Countries (Global)",
                "🇦🇱 Albania",
                "🇦🇷 Argentina",
                "🇦🇺 Australia",
                "🇦🇹 Austria",
                "🇧🇭 Bahrain",
                "🇧🇩 Bangladesh",
                "🇧🇾 Belarus",
                "🇧🇪 Belgium",
                "🇧🇷 Brazil",
                "🇧🇬 Bulgaria",
                "🇰🇭 Cambodia",
                "🇨🇦 Canada",
                "🇨🇱 Chile",
                "🇨🇴 Colombia",
                "🇭🇷 Croatia",
                "🇨🇿 Czech Republic",
                "🇩🇰 Denmark",
                "🇪🇬 Egypt",
                "🇪🇪 Estonia",
                "🇫🇮 Finland",
                "🇫🇷 France",
                "🇩🇪 Germany",
                "🇬🇷 Greece",
                "🇭🇺 Hungary",
                "🇮🇸 Iceland",
                "🇮🇩 Indonesia",
                "🇮🇶 Iraq",
                "🇮🇪 Ireland",
                "🇮🇱 Israel",
                "🇮🇹 Italy",
                "🇯🇵 Japan",
                "🇯🇴 Jordan",
                "🇰🇿 Kazakhstan",
                "🇰🇼 Kuwait",
                "🇱🇻 Latvia",
                "🇱🇧 Lebanon",
                "🇱🇹 Lithuania",
                "🇱🇺 Luxembourg",
                "🇲🇴 Macao",
                "🇲🇾 Malaysia",
                "🇲🇽 Mexico",
                "🇲🇦 Morocco",
                "🇲🇳 Mongolia",
                "🇳🇱 Netherlands",
                "🇳🇿 New Zealand",
                "🇳🇬 Nigeria",
                "🇳🇴 Norway",
                "🇴🇲 Oman",
                "🇵🇰 Pakistan",
                "🇵🇪 Peru",
                "🇵🇭 Philippines",
                "🇵🇱 Poland",
                "🇵🇹 Portugal",
                "🇶🇦 Qatar",
                "🇷🇴 Romania",
                "🇸🇦 Saudi Arabia",
                "🇸🇬 Singapore",
                "🇸🇰 Slovakia",
                "🇿🇦 South Africa",
                "🇰🇷 South Korea",
                "🇪🇸 Spain",
                "🇸🇪 Sweden",
                "🇨🇭 Switzerland",
                "🇹🇼 Taiwan",
                "🇹🇭 Thailand",
                "🇹🇷 Turkey",
                "🇺🇦 Ukraine",
                "🇦🇪 United Arab Emirates",
                "🇬🇧 United Kingdom",
                "🇺🇸 United States",
                "🇺🇿 Uzbekistan",
                "🇻🇳 Vietnam"
              ]
            }
          },
          "targetIndustries": {
            "title": "🏷️ Target Industries (multi-select)",
            "type": "array",
            "description": "🎨 Pick ONE OR MORE Creative Center industries to compare in the SAME run (upgrade over the base's single-select `top100_industry`). Each output row is tagged with its `sourceIndustry`. Also accepts the base's legacy single-string `top100_industry` key. Leave empty to default to 🌐 All Industries.",
            "items": {
              "type": "string",
              "enum": [
                "",
                "1000000001",
                "2000000001",
                "3000000000",
                "5000000000",
                "7000000000",
                "8000000002",
                "9000000002",
                "10000000000",
                "14000000000",
                "15000000001",
                "17000000002",
                "20000000001",
                "21000000000",
                "23000000000",
                "24000000000",
                "26000000001",
                "28000000001",
                "29000000001"
              ],
              "enumTitles": [
                "🌐 All Industries",
                "💰 Financial Services",
                "🏥 Health",
                "📰 News & Entertainment",
                "🚗 Vehicle & Transportation",
                "🎮 Games",
                "⚽ Sports & Outdoor",
                "💻 Tech & Electronics",
                "🍔 Food & Beverage",
                "🛎️ Life Services",
                "📚 Education",
                "✈️ Travel",
                "💄 Beauty & Personal Care",
                "🏠 Home Improvement",
                "👶 Baby, Kids & Maternity",
                "👗 Apparel & Accessories",
                "💼 Business Services",
                "🧴 Household Products",
                "🐾 Pets"
              ]
            }
          },
          "rankingPeriodDays": {
            "title": "📅 Ranking Period",
            "enum": [
              "7",
              "30",
              "120"
            ],
            "type": "string",
            "description": "⏳ Time window for the Top 100 ranking. Used by 🏆 Top 100 and 📊 Top 100 + Analytics. Also accepts the base's legacy `top100_period` key."
          },
          "analyticsPeriodDays": {
            "title": "📈 Analytics Period",
            "enum": [
              "7",
              "30",
              "120",
              "365",
              "1095"
            ],
            "type": "string",
            "description": "🔭 Time window for per-hashtag analytics (trend curve). Used by 🔬 Hashtag Analytics and 📊 Top 100 + Analytics. Also accepts the base's legacy `analytics_period` key."
          },
          "onlyNewEntrants": {
            "title": "🆕 Only New-On-Board (request-time)",
            "type": "boolean",
            "description": "✨ Server-side filter: return only hashtags that newly entered the Top 100 in the chosen period, for EVERY selected country/industry combo. Also accepts the base's legacy `top100_new_on_board` key. (Different from the client-side '🆕 Only Rising Rank Diff = New' filter below.)",
            "default": false
          },
          "hashtagsToAnalyze": {
            "title": "#️⃣ Hashtags To Analyze",
            "uniqueItems": true,
            "type": "array",
            "description": "📝 Add your own hashtags (without the `#`) to fetch analytics for, per selected market. Only used when Result Type = 🔬 Hashtag Analytics. Also accepts the base's legacy `hashtag_list`/`hashtags` keys.",
            "items": {
              "type": "string"
            }
          },
          "hashtagsPerMarket": {
            "title": "🔢 Hashtags Per Market",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "How many hashtags to collect PER country/industry combination (not a grand total — e.g. 2 countries x 2 industries x 20 = up to 80 rows). Also accepts the base's legacy `total_hashtags` key (default 100 when omitted entirely, matching the base)."
          },
          "minVideoViews": {
            "title": "👁️ Minimum Video Views",
            "minimum": 0,
            "type": "integer",
            "description": "Drop any hashtag whose total video views are below this threshold. 0 = no filter."
          },
          "minPublishCount": {
            "title": "📝 Minimum Publish Count",
            "minimum": 0,
            "type": "integer",
            "description": "Drop any hashtag whose publish count is below this threshold. 0 = no filter."
          },
          "onlyRising": {
            "title": "📈 Only Rising Rank",
            "type": "boolean",
            "description": "Keep only hashtags whose rank moved UP since last period (derived from `rank_diff_type`). Combine with the filters below (OR logic) or use alone.",
            "default": false
          },
          "onlyFalling": {
            "title": "📉 Only Falling Rank",
            "type": "boolean",
            "description": "Keep only hashtags whose rank moved DOWN since last period (derived from `rank_diff_type`).",
            "default": false
          },
          "onlyNew": {
            "title": "🆕 Only New Rank Entries",
            "type": "boolean",
            "description": "Keep only hashtags flagged as newly-ranked in the returned batch (derived from `rank_diff_type`, client-side — distinct from the request-time 'Only New-On-Board' toggle above).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "🛡️ Proxy Configuration",
            "type": "object",
            "description": "🛰️ Choose which proxies to use. By default, no proxy is used; the actor falls back to a direct connection automatically if a proxied attempt returns no data."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}