{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Trends & Video Scraper",
    "description": "Scrape TikTok trends and videos with no login: trending hashtags and top 100 videos by country and industry from TikTok Creative Center, Top 50 / Viral 50 sound charts, trending searches, keyword, hashtag and sound videos, plus daily re-measure of the same videos. JSON, CSV.",
    "version": "0.1",
    "x-build-id": "PUjmkeDixqbBH7AJJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/blueskyscraper~tiktok-trends-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-blueskyscraper-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/blueskyscraper~tiktok-trends-scraper/runs": {
      "post": {
        "operationId": "runs-sync-blueskyscraper-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/blueskyscraper~tiktok-trends-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-blueskyscraper-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": {
          "keywords": {
            "title": "🔍 Search keywords",
            "type": "array",
            "description": "Video search, like typing into TikTok search: <code>freeze dried dog food</code>, <code>labubu</code>. Each keyword returns videos with views, likes, comments, shares, saves, hashtags and sound.",
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "#️⃣ Hashtags",
            "type": "array",
            "description": "Videos of a hashtag: <code>#dogfood</code>, <code>dogfood</code> or <code>https://www.tiktok.com/tag/dogfood</code>.",
            "items": {
              "type": "string"
            }
          },
          "sounds": {
            "title": "🎵 Sounds",
            "type": "array",
            "description": "Videos that use a sound: sound link <code>https://www.tiktok.com/music/…-7092433200873474050</code> or the sound ID.",
            "items": {
              "type": "string"
            }
          },
          "searchRegion": {
            "title": "🌎 Search region",
            "type": "string",
            "description": "Two-letter country code the search and re-measure ask TikTok for (US, GB, DE…). Hashtag videos support US, GB, FR, JP, VN, SG. This is the <b>request</b> region — it is written into <code>requestRegion</code>, separately from the creator's region and the audience country.",
            "default": "US"
          },
          "searchPublishedWithin": {
            "title": "📅 Search: published within",
            "enum": [
              "any",
              "day",
              "week",
              "month",
              "three_months",
              "six_months"
            ],
            "type": "string",
            "description": "Keyword search only: keep videos from this window (TikTok's own filter).",
            "default": "any"
          },
          "searchSort": {
            "title": "↕️ Search: sort",
            "enum": [
              "relevance",
              "most_liked"
            ],
            "type": "string",
            "description": "Keyword search only.",
            "default": "relevance"
          },
          "publishedAfter": {
            "title": "📅 Published after",
            "type": "string",
            "description": "Keyword, hashtag and sound videos: keep only videos published on or after this date (<code>YYYY-MM-DD</code>)."
          },
          "trendingHashtags": {
            "title": "📈 Trending hashtags (Creative Center)",
            "type": "boolean",
            "description": "The trending hashtag ranking of TikTok Creative Center for the country below: rank, posts, views and a daily popularity curve. One ranking per industry you pick (or all industries).",
            "default": false
          },
          "trendIndustries": {
            "title": "🏷️ Trending hashtags: industries",
            "type": "array",
            "description": "Empty = all industries.",
            "items": {
              "type": "string",
              "enum": [
                "pets",
                "food_beverage",
                "health",
                "beauty",
                "apparel",
                "household",
                "home_improvement",
                "baby_kids",
                "sports_outdoor",
                "travel",
                "tech",
                "apps",
                "games",
                "news_entertainment",
                "education",
                "vehicles",
                "finance",
                "business",
                "life_services",
                "appliances"
              ],
              "enumTitles": [
                "Pets",
                "Food & Beverage",
                "Health",
                "Beauty & Personal Care",
                "Apparel & Accessories",
                "Household Products",
                "Home Improvement",
                "Baby, Kids & Maternity",
                "Sports & Outdoor",
                "Travel",
                "Tech & Electronics",
                "Apps",
                "Games",
                "News & Entertainment",
                "Education",
                "Vehicle & Transportation",
                "Financial Services",
                "Business Services",
                "Life Services",
                "Appliances"
              ]
            }
          },
          "trendWindowDays": {
            "title": "🗓️ Trending hashtags: window",
            "enum": [
              "7",
              "30",
              "90"
            ],
            "type": "string",
            "description": "Creative Center ranking window.",
            "default": "7"
          },
          "topVideos": {
            "title": "🏆 Top videos (Creative Center)",
            "type": "boolean",
            "description": "The Creative Center Top Contents ranking (up to 100 videos) for the country below: total and organic views, engagement rate, 6-second view rate. Paid reach shows as total views above organic views.",
            "default": false
          },
          "topVideoCategories": {
            "title": "🏆 Top videos: categories",
            "type": "array",
            "description": "Empty = all categories.",
            "items": {
              "type": "string",
              "enum": [
                "nature_animals",
                "food_beverage",
                "lifestyle_leisure",
                "beauty_care",
                "fashion",
                "family_relationship",
                "vlog_selfie",
                "creativity_talent",
                "music_entertainment",
                "sports_outdoor",
                "education_work",
                "society",
                "games",
                "vehicles",
                "tech_finance"
              ],
              "enumTitles": [
                "Nature & Animals",
                "Food & Beverage",
                "Lifestyle & Leisure",
                "Beauty & Care",
                "Fashion",
                "Family & Relationship",
                "Vlog & Selfie",
                "Creativity & Talent",
                "Music & Entertainment",
                "Sports & Outdoor",
                "Education & Work",
                "Society",
                "Games",
                "Vehicles & Transportation",
                "Technology & Finance"
              ]
            }
          },
          "topVideoPeriod": {
            "title": "🏆 Top videos: period",
            "enum": [
              "daily",
              "weekly"
            ],
            "type": "string",
            "description": "Daily = yesterday's ranking; weekly = last Sunday's.",
            "default": "daily"
          },
          "topVideoOrder": {
            "title": "🏆 Top videos: ranked by",
            "enum": [
              "views",
              "engagement",
              "six_second_view_rate"
            ],
            "type": "string",
            "description": "Ranking metric.",
            "default": "views"
          },
          "trendCountry": {
            "title": "🌎 Trend country",
            "type": "string",
            "description": "Two-letter country of the Creative Center rankings (US, GB, DE, FR, JP…). Written into <code>audienceCountry</code> of ranking rows.",
            "default": "US"
          },
          "soundCharts": {
            "title": "🎵 Sound charts",
            "type": "array",
            "description": "TikTok's Top 50 and Viral 50 sound charts.",
            "items": {
              "type": "string",
              "enum": [
                "top50",
                "viral50"
              ],
              "enumTitles": [
                "Top 50",
                "Viral 50"
              ]
            }
          },
          "trendingSearchWords": {
            "title": "🔥 Trending searches",
            "type": "boolean",
            "description": "TikTok's list of trending search words of the day.",
            "default": false
          },
          "exploreCategories": {
            "title": "🧭 Explore feed categories",
            "type": "array",
            "description": "One page of TikTok's Explore feed per category — a recommendation sample, not the whole market.",
            "items": {
              "type": "string",
              "enum": [
                "food",
                "animals",
                "daily_life",
                "family",
                "beauty_care",
                "outfit",
                "fitness_health",
                "comedy",
                "sports",
                "education",
                "tech",
                "games",
                "performance",
                "singing_dancing",
                "drama",
                "relationship",
                "anime_comics",
                "lipsync",
                "society",
                "vehicles",
                "all"
              ],
              "enumTitles": [
                "Food",
                "Animals",
                "Daily life",
                "Family",
                "Beauty & care",
                "Outfit",
                "Fitness & health",
                "Comedy",
                "Sports",
                "Education",
                "Tech",
                "Games",
                "Performance",
                "Singing & dancing",
                "Drama",
                "Relationship",
                "Anime & comics",
                "Lip-sync",
                "Society",
                "Vehicles",
                "All"
              ]
            }
          },
          "refreshVideos": {
            "title": "🔁 Re-measure videos (by link or ID)",
            "type": "array",
            "description": "Links or IDs of videos you already track: <code>https://www.tiktok.com/@user/video/7703650226506173710</code>. Returns each video again with today's views, likes, comments, shares and saves. A removed or private video comes back as a free row with <code>state: unavailable</code>.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerInput": {
            "title": "💯 Results per input",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Cap for each keyword, hashtag, sound or ranking: e.g. 100 = up to 100 videos per keyword or 100 rows of a ranking.",
            "default": 50
          },
          "maxItems": {
            "title": "Maximum rows per run",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop after this many rows in the whole run — a hard ceiling on cost.",
            "default": 10000
          },
          "monitoringStoreName": {
            "title": "🔔 Monitoring mode — store name",
            "type": "string",
            "description": "Give the run a name (e.g. <code>brand-mentions</code>) and every later run with the same name returns <b>only rows it has not delivered before</b>. Empty = normal run."
          },
          "dataContract": {
            "title": "🧾 Data contract (provenance + null reasons)",
            "type": "boolean",
            "description": "Adds to every row a <code>provenance</code> block (platform, upstream API, endpoint, mode, source ID, canonical URL, observedAt / collectedAt, schema version, checksum of ID + counters, <code>rawChecksum</code> of the source record) and a <code>metrics</code> block where every counter is a value or <code>null</code> with the reason — never a fake zero. On by default; switch off for plain rows.",
            "default": true
          },
          "authorPrivacy": {
            "title": "🕶️ Author data",
            "enum": [
              "full",
              "pseudonymous"
            ],
            "type": "string",
            "description": "Default: Pseudonymous. Choose Full to get author names, IDs and profile links. Pseudonymous replaces author names, IDs, links and avatars with <code>authorKey</code> — a salted, stable hash (one key per author on the platform's stable id, the same in every mode; deleted authors get none) that still lets you measure how concentrated a topic is, without storing profiles. Profile inputs are replaced by the same key in <code>sourceInput</code>; sound titles named after a creator and Reddit <code>u_…</code> profile links are masked too. @mentions inside post, comment and title text become <code>@user_&lt;hash&gt;</code> (Reddit <code>u/name</code> → <code>u/user_&lt;hash&gt;</code>) — the same hash for the same handle in every run; e-mail addresses and #hashtags stay as written.",
            "default": "pseudonymous"
          },
          "stripSignedTokens": {
            "title": "✂️ Remove signed tokens from links",
            "type": "boolean",
            "description": "Removes signed parameters (xsec_token, expiring media signatures) from links and drops signed video file links. On by default (and always on with pseudonymous authors).",
            "default": true
          },
          "snapshotId": {
            "title": "🏷️ Snapshot id",
            "type": "string",
            "description": "Optional label of this snapshot (e.g. the date), written into provenance of every row."
          },
          "panelId": {
            "title": "🏷️ Panel id / version",
            "type": "string",
            "description": "Optional id of your fixed panel of posts, written into provenance. With Re-measure IDs it also keeps a <b>panel journal</b> between runs: free <code>panel_change</code> rows say which IDs were added, removed from your input or are still in the panel but gone on the source (with the date they joined and the previous run time), <code>panelVersion</code> goes up whenever the membership changes, and the run's key-value store gets a <code>PANEL</code> record with the full membership."
          },
          "queryId": {
            "title": "🏷️ Query id / version",
            "type": "string",
            "description": "Optional id of your search profile version, written into provenance."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}