{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Trending Hashtags Scraper",
    "description": "TikTok trending hashtags scraper for the Creative Center rankings: about 55 per country and period, up to 1,000 a run across 27 countries. 7, 30 or 90 days, 15 industries. Rank, posts, views, trend stage, a daily curve and top creators. Filter rising or new tags. $1.40 per 1,000 hashtags.",
    "version": "0.1",
    "x-build-id": "YkoQGxtl3KxjMr17a"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dami_studio~tiktok-creative-center-trends/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dami_studio-tiktok-creative-center-trends",
        "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/dami_studio~tiktok-creative-center-trends/runs": {
      "post": {
        "operationId": "runs-sync-dami_studio-tiktok-creative-center-trends",
        "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/dami_studio~tiktok-creative-center-trends/run-sync": {
      "post": {
        "operationId": "run-sync-dami_studio-tiktok-creative-center-trends",
        "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": {
          "trendTypes": {
            "title": "Trend types",
            "type": "array",
            "description": "Hashtag is the one this reads by default. video reads top videos when Top videos below is ticked, and ad reads top ads when Top ads is ticked. The others return an uncharged row explaining why.",
            "items": {
              "type": "string"
            },
            "default": [
              "hashtag"
            ]
          },
          "region": {
            "title": "Region",
            "enum": [
              "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"
            ],
            "type": "string",
            "description": "ISO country code. Hashtag rankings currently support 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, and VN.",
            "default": "US"
          },
          "regions": {
            "title": "More countries",
            "type": "array",
            "description": "Optional. Pick several countries to run them together, and Region is ignored. The run covers each country's overall ranking first, then goes deeper as far as Maximum results allows.",
            "items": {
              "type": "string",
              "enum": [
                "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"
              ],
              "enumTitles": [
                "United States",
                "France",
                "Germany",
                "Italy",
                "Spain",
                "United Kingdom",
                "Argentina",
                "Australia",
                "Brazil",
                "Canada",
                "Colombia",
                "Egypt",
                "Indonesia",
                "Israel",
                "Japan",
                "South Korea",
                "Malaysia",
                "Mexico",
                "Philippines",
                "Saudi Arabia",
                "Singapore",
                "South Africa",
                "Taiwan",
                "Thailand",
                "Turkey",
                "United Arab Emirates",
                "Vietnam"
              ]
            }
          },
          "industryIds": {
            "title": "Industries",
            "type": "array",
            "description": "Optional. Pick industries to get only their rankings. Leave it empty for the overall ranking, then every industry's as far as Maximum results allows.",
            "items": {
              "type": "string",
              "enum": [
                "10000000000",
                "11000000000",
                "12000000000",
                "14000000000",
                "15000000000",
                "17000000000",
                "18000000000",
                "19000000000",
                "21000000000",
                "22000000000",
                "23000000000",
                "25000000000",
                "27000000000",
                "28000000000",
                "29000000000",
                "13000000000",
                "16000000000",
                "20000000000",
                "24000000000"
              ],
              "enumTitles": [
                "Education",
                "Vehicle & Transportation",
                "Baby, Kids & Maternity",
                "Beauty & Personal Care",
                "Tech & Electronics",
                "Travel",
                "Household Products",
                "Pets",
                "Home Improvement",
                "Apparel & Accessories",
                "News & Entertainment",
                "Games",
                "Food & Beverage",
                "Sports & Outdoor",
                "Health",
                "Financial Services",
                "Appliances",
                "Apps",
                "Business Services"
              ]
            }
          },
          "periodDays": {
            "title": "Time period",
            "minimum": 7,
            "maximum": 90,
            "type": "integer",
            "description": "7, 30 or 90 days. Anything else is treated as 7.",
            "default": 7
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "How many hashtags this run may return across all its countries, and what it can cost. Each country and period holds about 55 different hashtags, so you can get fewer than this; pick more countries for more. On the Apify Free plan, 1,000 at most.",
            "default": 3
          },
          "requestTimeoutSecs": {
            "title": "Request timeout",
            "minimum": 8,
            "maximum": 60,
            "type": "integer",
            "description": "Maximum time for each request to the Creative Center.",
            "default": 25
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. Leave this alone unless you need the run to go out through a particular network. Your own proxy servers are used exactly as given.",
            "default": {
              "useApifyProxy": false
            }
          },
          "sessionCookies": {
            "title": "Account cookies (not needed)",
            "minItems": 0,
            "maxItems": 10,
            "type": "array",
            "description": "Optional: your own session, used only for your run. You are responsible for using it within the site's terms. Runs work without it."
          },
          "minPosts": {
            "title": "Minimum posts",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Keep only hashtags with at least this many posts in the period. Hashtags left out are not charged. When a filter is set, the run reads the industry rankings too, to fill Maximum results."
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Keep only hashtags whose videos had at least this many views in the period."
          },
          "risingOnly": {
            "title": "Rising hashtags only",
            "type": "boolean",
            "description": "Keep only hashtags whose popularity went up over the period (trendDirection \"up\").",
            "default": false
          },
          "onlyNewSinceLastRun": {
            "title": "Only hashtags new since my last run",
            "type": "boolean",
            "description": "Skip hashtags this Apify account already got for the same country and period in an earlier run with this box ticked. Handy on a schedule, so each run brings only what entered the rankings since. The list is kept in a key-value store named tiktok-trends-memory on your account; delete it to start over.",
            "default": false
          },
          "includeTrendDetails": {
            "title": "Trend detail columns",
            "type": "boolean",
            "description": "Adds eight columns to each hashtag row: trendStage (rising, peaked, declining or steady), trendMomentumPct, peakDate, peakValue, latestValue, curveEndDate, viewsPerPost and topCreatorUserIds. Worked out from the same data, at no extra cost.",
            "default": false
          },
          "includeTopVideos": {
            "title": "Top videos",
            "type": "boolean",
            "description": "Also get TikTok's top videos for the countries you picked that have a video ranking: US, JP, VN, TH and ID. One row per video, with its link, caption, views, organic views, engagement rate, 6-second view rate, cover, creator and follower count. To get only videos, set Trend types to video.",
            "default": false
          },
          "maxVideos": {
            "title": "Maximum videos",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "How many video rows this run may return across all its countries. A country and period holds about 80 different top videos. On the Apify Free plan, 500 at most.",
            "default": 20
          },
          "videoPeriod": {
            "title": "Video period",
            "enum": [
              "7",
              "30",
              "week",
              "month"
            ],
            "type": "string",
            "description": "Videos posted in the last 7 or 30 days, or the ranking of the last full week or month.",
            "default": "7"
          },
          "videoSortBy": {
            "title": "Rank videos by",
            "enum": [
              "views",
              "engagement",
              "sixSecondViews"
            ],
            "type": "string",
            "description": "The ranking read first. When it runs out before Maximum videos, the run goes on with the other rankings, and each row says which one it came from.",
            "default": "views"
          },
          "videoContentTags": {
            "title": "Video topics",
            "type": "array",
            "description": "Optional. Read only these topics' video rankings. Empty reads the overall ranking first, then each topic's.",
            "items": {
              "type": "string",
              "enum": [
                "11002",
                "11003",
                "11010",
                "11013",
                "11015"
              ],
              "enumTitles": [
                "Beauty & Care",
                "Fashion",
                "Food & Beverage",
                "Lifestyle & Leisure",
                "Technology & Finance"
              ]
            }
          },
          "videoOrganicOnly": {
            "title": "Organic views only",
            "type": "boolean",
            "description": "Rank videos by their organic (unpaid) views only, leaving ad views out.",
            "default": false
          },
          "includeTopAds": {
            "title": "Top ads",
            "type": "boolean",
            "description": "Also get TikTok's top ads for the countries you pick below, or for this run's countries when you pick none. One row per ad, with its caption, brand, industry, objective, likes, CTR, cost tier, cover and video link. Each ad is charged like a hashtag. To get only ads, set Trend types to ad.",
            "default": false
          },
          "maxTopAds": {
            "title": "Maximum ads",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "How many ad rows this run may return across all its countries. The US holds about 180 top ads over 30 days and about 400 over 180 days; smaller countries hold fewer. On the Apify Free plan, 1,000 at most.",
            "default": 20
          },
          "topAdsCountries": {
            "title": "Ad countries",
            "type": "array",
            "description": "Optional. The countries to read top ads for. Empty uses Region, or More countries when you set it.",
            "items": {
              "type": "string",
              "enum": [
                "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",
                "MM",
                "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": [
                "Argentina",
                "Australia",
                "Austria",
                "Bahrain",
                "Bangladesh",
                "Belarus",
                "Belgium",
                "Brazil",
                "Bulgaria",
                "Cambodia",
                "Canada",
                "Chile",
                "Colombia",
                "Croatia",
                "Czechia",
                "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",
                "Myanmar",
                "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"
              ]
            }
          },
          "topAdsPeriod": {
            "title": "Ad period",
            "enum": [
              "7",
              "30",
              "180"
            ],
            "type": "string",
            "description": "Ads ranked over the last 7, 30 or 180 days.",
            "default": "30"
          },
          "topAdsIndustries": {
            "title": "Ad industries",
            "type": "array",
            "description": "Optional. Only ads filed under these industries. Each row's industryId and industry say where TikTok filed it.",
            "items": {
              "type": "string",
              "enum": [
                "10000000000",
                "11000000000",
                "12000000000",
                "13000000000",
                "14000000000",
                "15000000000",
                "16000000000",
                "17000000000",
                "18000000000",
                "19000000000",
                "20000000000",
                "21000000000",
                "22000000000",
                "23000000000",
                "24000000000",
                "25000000000",
                "26000000000",
                "27000000000",
                "28000000000",
                "29000000000",
                "30000000000"
              ],
              "enumTitles": [
                "Education",
                "Vehicle & Transportation",
                "Baby, Kids & Maternity",
                "Financial Services",
                "Beauty & Personal Care",
                "Tech & Electronics",
                "Appliances",
                "Travel",
                "Household Products",
                "Pets",
                "Apps",
                "Home Improvement",
                "Apparel & Accessories",
                "News & Entertainment",
                "Business Services",
                "Games",
                "Life Services",
                "Food & Beverage",
                "Sports & Outdoor",
                "Health",
                "E-Commerce (Non-app)"
              ]
            }
          },
          "topAdsObjectives": {
            "title": "Ad objectives",
            "type": "array",
            "description": "Optional. Only ads run for these campaign objectives.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "8"
              ],
              "enumTitles": [
                "Traffic",
                "App installs",
                "Conversions",
                "Video views",
                "Reach",
                "Lead generation"
              ]
            }
          },
          "topAdsSortBy": {
            "title": "Rank ads by",
            "enum": [
              "forYou",
              "likes"
            ],
            "type": "string",
            "description": "TikTok's own order, or the most liked first.",
            "default": "forYou"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}