{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Trends Scraper | Trending Hashtags & Top Videos",
    "description": "Get TikTok Creative Center trends: trending hashtags with rank, posts, views, popularity curve, trend direction and top creators, and top videos with views, engagement rate and author. Hashtags in 27 countries, many lists per run merged into one row per item, no login.",
    "version": "0.0",
    "x-build-id": "ryEwEK56Lo115S1tv"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/genial_candlestand~tiktok-trends-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-genial_candlestand-tiktok-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/genial_candlestand~tiktok-trends-scraper/runs": {
      "post": {
        "operationId": "runs-sync-genial_candlestand-tiktok-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/genial_candlestand~tiktok-trends-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-genial_candlestand-tiktok-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",
        "properties": {
          "dataTypes": {
            "title": "What to collect",
            "type": "array",
            "description": "Trending hashtags (27 countries) and/or top videos (US, JP, VN, TH, ID only). Default and empty: both.",
            "items": {
              "type": "string",
              "enum": [
                "hashtags",
                "videos"
              ],
              "enumTitles": [
                "Trending hashtags",
                "Top videos"
              ]
            },
            "default": [
              "hashtags",
              "videos"
            ]
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Country codes in any case or English names, one per line, e.g. US, GB, Japan, United Kingdom. Hashtags: 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. Videos: only US, JP, VN, TH, ID (other countries get hashtags only). Any other country is an input error. Default: US.",
            "default": [
              "US"
            ],
            "items": {
              "type": "string"
            }
          },
          "hashtagPeriods": {
            "title": "Hashtag periods",
            "type": "array",
            "description": "Trending hashtags of the last 7, 30 or 90 days. Each period is its own ranking with its own rows. Hashtags only. Default: 7 days.",
            "items": {
              "type": "string",
              "enum": [
                "7",
                "30",
                "90"
              ],
              "enumTitles": [
                "Last 7 days",
                "Last 30 days",
                "Last 90 days"
              ]
            },
            "default": [
              "7"
            ]
          },
          "hashtagIndustries": {
            "title": "Hashtag lists (industries)",
            "type": "array",
            "description": "The overall ranking and the 16 industry rankings to read in every country and period. TikTok shows the top 3 of each list, so more lists give more hashtags; a hashtag in several lists is one row with all its ranks. Default and empty: all 17. Hashtags only.",
            "items": {
              "type": "string",
              "enum": [
                "overall",
                "apparel-accessories",
                "apps",
                "baby-kids-maternity",
                "beauty-personal-care",
                "education",
                "food-beverage",
                "games",
                "health",
                "home-improvement",
                "household-products",
                "news-entertainment",
                "pets",
                "sports-outdoor",
                "tech-electronics",
                "travel",
                "vehicle-transportation"
              ],
              "enumTitles": [
                "Overall (all industries)",
                "Apparel & Accessories",
                "Apps",
                "Baby, Kids & Maternity",
                "Beauty & Personal Care",
                "Education",
                "Food & Beverage",
                "Games",
                "Health",
                "Home Improvement",
                "Household Products",
                "News & Entertainment",
                "Pets",
                "Sports & Outdoor",
                "Tech & Electronics",
                "Travel",
                "Vehicle & Transportation"
              ]
            },
            "default": [
              "overall",
              "apparel-accessories",
              "apps",
              "baby-kids-maternity",
              "beauty-personal-care",
              "education",
              "food-beverage",
              "games",
              "health",
              "home-improvement",
              "household-products",
              "news-entertainment",
              "pets",
              "sports-outdoor",
              "tech-electronics",
              "travel",
              "vehicle-transportation"
            ]
          },
          "videoPeriods": {
            "title": "Video rankings",
            "type": "array",
            "description": "Top videos of the last full week or month, or videos created in the last 7 or 30 days. Videos only (US, JP, VN, TH, ID). Default: weekly.",
            "items": {
              "type": "string",
              "enum": [
                "weekly",
                "monthly",
                "createdLast7Days",
                "createdLast30Days"
              ],
              "enumTitles": [
                "Weekly ranking",
                "Monthly ranking",
                "Created in the last 7 days",
                "Created in the last 30 days"
              ]
            },
            "default": [
              "weekly"
            ]
          },
          "videoSortBy": {
            "title": "Video ranking metrics",
            "type": "array",
            "description": "Rank top videos by views, engagement rate and/or 6-second view rate. Each metric is its own top 4; a video in several lists is one row with all its ranks. Default and empty: all three. Videos only.",
            "items": {
              "type": "string",
              "enum": [
                "views",
                "engagementRate",
                "sixSecondViewRate"
              ],
              "enumTitles": [
                "Views",
                "Engagement rate",
                "6-second view rate"
              ]
            },
            "default": [
              "views",
              "engagementRate",
              "sixSecondViewRate"
            ]
          },
          "videoContentLabels": {
            "title": "Video lists (content labels)",
            "type": "array",
            "description": "Overall top videos and/or the top videos of Beauty & Care, Fashion, Food & Beverage, Lifestyle & Leisure or Technology & Finance. Each is its own top 4. Default and empty: all 6. Videos only.",
            "items": {
              "type": "string",
              "enum": [
                "overall",
                "beauty-care",
                "fashion",
                "food-beverage",
                "lifestyle-leisure",
                "technology-finance"
              ],
              "enumTitles": [
                "Overall (all content)",
                "Beauty & Care",
                "Fashion",
                "Food & Beverage",
                "Lifestyle & Leisure",
                "Technology & Finance"
              ]
            },
            "default": [
              "overall",
              "beauty-care",
              "fashion",
              "food-beverage",
              "lifestyle-leisure",
              "technology-finance"
            ]
          },
          "videoOrganicOnly": {
            "title": "Organic videos only",
            "type": "boolean",
            "description": "Rank videos by organic (non-promoted) performance only, like the Organic switch on the Creative Center. Videos only.",
            "default": false
          },
          "videoHistoryPeriods": {
            "title": "Video history (past periods)",
            "minimum": 0,
            "maximum": 12,
            "type": "integer",
            "description": "Also read this many earlier weekly and monthly video rankings, 0–12, e.g. 4 = the 4 weeks before the current weekly ranking. Ignored for the created-in-the-last-7/30-days rankings. Default: 0 (latest only).",
            "default": 0
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many rows, hashtags and videos together. Each row is one hashtag or video in one country and period, merged across lists. Default: 1000.",
            "default": 1000
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "The default Apify datacenter proxy works; a blocked request is retried through a residential proxy.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}