{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Trending Hashtags Analytics Scraper",
    "description": "TikTok Trending Hashtags Analytics Scraper SD - TikTok Trending Hashtags Analytics Scraper is a social trend tool that extracts the hashtags TikTok ranks as trending in 27 countries for 7, 30 or 90 days: rank, posts, views, daily popularity curve, trend stage, industry and top creators.",
    "version": "1.0",
    "x-build-id": "dA9aElJCG2cy2GwYn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neuro-scraper~tiktok-trending-hashtags-analytics-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neuro-scraper-tiktok-trending-hashtags-analytics-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/neuro-scraper~tiktok-trending-hashtags-analytics-scraper/runs": {
      "post": {
        "operationId": "runs-sync-neuro-scraper-tiktok-trending-hashtags-analytics-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/neuro-scraper~tiktok-trending-hashtags-analytics-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-neuro-scraper-tiktok-trending-hashtags-analytics-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": {
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Two-letter country codes, e.g. US, GB, DE, JP - or ALL for every country TikTok publishes a trending board for (27 today: US, FR, DE, IT, ES, GB, AR, AU, BR, CA, CO, EG, ID, IL, JP, KR, MY, MX, PH, SA, SG, ZA, TW, TH, TR, AE, VN). The list is read again on every run.",
            "default": [
              "US"
            ],
            "items": {
              "type": "string"
            }
          },
          "periods": {
            "title": "Time periods (days)",
            "type": "array",
            "description": "Board windows: 7, 30 and/or 90 days (the windows TikTok publishes). Each country x period is its own board.",
            "items": {
              "type": "string",
              "enum": [
                "7",
                "30",
                "90"
              ],
              "enumTitles": [
                "Last 7 days",
                "Last 30 days",
                "Last 90 days"
              ]
            },
            "default": [
              "7"
            ]
          },
          "industries": {
            "title": "Industries",
            "type": "array",
            "description": "Keep only hashtags TikTok tags with these industries: industry ids (e.g. 10000000000) or industry names as TikTok shows them (e.g. Beauty & Personal Care, Games). Empty or ALL = every industry. A hashtag can carry several industry tags; it is kept when any of them matches.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "Watch these hashtags",
            "type": "array",
            "description": "Optional hashtags without # (e.g. skincare, booktok). Rows of these hashtags get isWatched = true; with 'Only watched hashtags' on, only they are kept. The log lists the watched hashtags that were on no board.",
            "items": {
              "type": "string"
            }
          },
          "onlyWatched": {
            "title": "Only watched hashtags",
            "type": "boolean",
            "description": "Keep only rows of the hashtags listed above.",
            "default": false
          },
          "maxResults": {
            "title": "Max hashtags per board",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Most rows per country x period board. TikTok publishes the top 3 of each board to visitors without an account, so up to 3 rows come back per board (27 countries x 3 periods = up to 243 rows for ALL).",
            "default": 20
          },
          "maxItems": {
            "title": "Max rows in total",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop the whole run after this many rows.",
            "default": 1000
          },
          "sortBy": {
            "title": "Sort hashtags by",
            "enum": [
              "rank",
              "posts",
              "views",
              "momentum",
              "rising"
            ],
            "type": "string",
            "description": "Order of the hashtags inside every list before Max hashtags per board is applied: TikTok's rank, most posts, most views, highest trend momentum, or rising hashtags first.",
            "default": "rank"
          },
          "minPosts": {
            "title": "Minimum posts",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only hashtags with at least this many posts in the period, e.g. 10000 (filter applied to the board rows).",
            "default": 0
          },
          "minViews": {
            "title": "Minimum video views",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only hashtags with at least this many views in the period, e.g. 1000000.",
            "default": 0
          },
          "risingOnly": {
            "title": "Rising hashtags only",
            "type": "boolean",
            "description": "Keep only hashtags whose popularity curve peaks on the last day (trendStage = rising).",
            "default": false
          },
          "trackChanges": {
            "title": "Track rank changes between runs",
            "type": "boolean",
            "description": "Remember every hashtag's rank in a named key-value store of your account and fill previousRank, rankChange, isNew, firstSeenAt, lastSeenAt, timesSeen and rankVelocityPerDay on the next runs (schedule the Actor daily).",
            "default": false
          },
          "onlyNewSinceLastRun": {
            "title": "Only hashtags new since the last run",
            "type": "boolean",
            "description": "Skip hashtags that an earlier run with this option already returned for the same country and period (memory kept in a named key-value store of your account). Ideal for scheduled runs that alert on new trends.",
            "default": false
          },
          "stateStoreName": {
            "title": "Memory store name",
            "type": "string",
            "description": "Name of the key-value store that remembers earlier hashtags for 'Only hashtags new since the last run', e.g. my-us-trends. Use different names for different schedules.",
            "default": "tiktok-trending-hashtags-state"
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many lists are read at the same time (1-20). Higher = faster runs with many countries / industries.",
            "default": 5
          },
          "requestDelayMs": {
            "title": "Delay between requests (ms)",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Pause of every worker after each list, in milliseconds. 0 = a short random pause of 0.3-0.9 s (default).",
            "default": 0
          },
          "requestRetries": {
            "title": "Retries per list",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many fresh sessions a list gets before it is logged as failed and skipped (1-10).",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Residential proxy (US) is the default and was used in every test.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "US"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}