{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Trends Scraper | Trending Videos, Hashtags & Search",
    "description": "TikTok trending videos by category and country with views, likes, shares, saves, sound and transcripts, plus a trend report: top and rising hashtags, sounds, creators and videos. Also keyword, hashtag and profile search. From $0.15/1K, no login.",
    "version": "0.2",
    "x-build-id": "BeSKl4iq2awBatCKI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/monkey.d.scraping~tiktok-trends-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-monkey.d.scraping-tiktok-trends-search-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/monkey.d.scraping~tiktok-trends-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-monkey.d.scraping-tiktok-trends-search-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/monkey.d.scraping~tiktok-trends-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-monkey.d.scraping-tiktok-trends-search-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": {
          "trendingCategories": {
            "title": "Trending categories",
            "type": "array",
            "description": "Videos trending now on TikTok Explore, by category, with full stats: views, likes, comments, shares, saves, duration, sound and creator. Each category also gets a trend report: top hashtags, sounds and creators, and what is new or rising since the previous run. Leave everything empty to get the mixed trending list.",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "singing-dancing",
                "comedy",
                "sports",
                "anime-comics",
                "relationship",
                "shows",
                "lipsync",
                "daily-life",
                "beauty-care",
                "games",
                "society",
                "outfit",
                "cars",
                "food",
                "animals",
                "family",
                "drama",
                "fitness-health",
                "education",
                "technology"
              ],
              "enumTitles": [
                "All (mixed)",
                "Singing & dancing",
                "Comedy",
                "Sports",
                "Anime & comics",
                "Relationship",
                "Shows",
                "Lipsync",
                "Daily life",
                "Beauty care",
                "Games",
                "Society",
                "Outfit",
                "Cars",
                "Food",
                "Animals",
                "Family",
                "Drama",
                "Fitness & health",
                "Education",
                "Technology"
              ]
            }
          },
          "allTrendingCategories": {
            "title": "All 21 trending categories",
            "type": "boolean",
            "description": "Read every trending category in one run and add an overall report that ranks the categories by views and engagement.",
            "default": false
          },
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "One per line: words or phrases to search on TikTok (skincare routine, iphone 18 review) or a TikTok search link. Each one returns matching public videos and photo posts with likes, comments, caption and creator stats.",
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "Hashtags",
            "type": "array",
            "description": "One per line: booktok, #booktok or a hashtag link. Returns videos with the hashtag plus a hashtag row with total views, total videos, top creators, related hashtags and averages.",
            "items": {
              "type": "string"
            }
          },
          "profiles": {
            "title": "Profiles",
            "type": "array",
            "description": "One per line: nasa, @nasa or a profile link. Returns a profile row (followers, likes, bio, average views of the latest videos, posting frequency) and the creator's videos.",
            "items": {
              "type": "string"
            }
          },
          "videoUrls": {
            "title": "Video links",
            "type": "array",
            "description": "Links to single videos or photo posts, short links included (vm.tiktok.com). Each returns that video with its stats and creator.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerItem": {
            "title": "Max videos per item",
            "minimum": 0,
            "maximum": 3000,
            "type": "integer",
            "description": "Videos kept for each keyword, hashtag, profile or category. For profiles, 0 returns only the profile row.",
            "default": 50
          },
          "sortBy": {
            "title": "Sort videos by",
            "enum": [
              "relevance",
              "newest",
              "mostLiked"
            ],
            "type": "string",
            "description": "Order of the videos of each item.",
            "default": "relevance"
          },
          "period": {
            "title": "Published in the last",
            "enum": [
              "any",
              "day",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Keep only videos published in this period (exact publishing date).",
            "default": "any"
          },
          "postedAfter": {
            "title": "Published after",
            "type": "string",
            "description": "Keep only videos published on or after this date (YYYY-MM-DD)."
          },
          "minLikes": {
            "title": "Minimum likes",
            "minimum": 0,
            "type": "integer",
            "description": "Skip videos with fewer likes.",
            "default": 0
          },
          "minViews": {
            "title": "Minimum views",
            "minimum": 0,
            "type": "integer",
            "description": "Skip videos with fewer views (videos without a view count are skipped too).",
            "default": 0
          },
          "searchCountry": {
            "title": "Search country",
            "type": "string",
            "description": "Two-letter country code that shapes keyword, hashtag and profile results (us, gb, it, de, br, jp, tw…).",
            "default": "us"
          },
          "searchLanguage": {
            "title": "Search language",
            "type": "string",
            "description": "Optional two-letter language code (en, es, it, zh…). Keyword and hashtag videos whose caption is clearly in another language are left out; videos too short to tell are kept.",
            "default": ""
          },
          "trendingCountry": {
            "title": "Trending country",
            "type": "string",
            "description": "Two-letter country code (US, GB, IT, DE, BR, JP…) to read the trending lists as seen from that country. Empty: United States.",
            "default": ""
          },
          "includeTranscripts": {
            "title": "Add transcripts to trending videos",
            "type": "boolean",
            "description": "Spoken text of trending videos (trendingCategories) that publish subtitles, with its language. TikTok gives subtitles only in its trending lists: keyword, hashtag, profile and link videos carry no transcript. Free.",
            "default": false
          },
          "strictMatch": {
            "title": "Exact keyword match",
            "type": "boolean",
            "description": "For search keywords: keep only videos that name every word of the keyword (caption, hashtags or transcript; plurals and other word forms count). Off: at least one word. Fewer but more precise results.",
            "default": false
          },
          "directVideoOnly": {
            "title": "Use only direct TikTok requests for video links",
            "type": "boolean",
            "description": "For each video URL, use TikTok player and creator data and skip search and profile fallbacks.",
            "default": false
          },
          "includeAuthorStats": {
            "title": "Add creator stats to every video",
            "type": "boolean",
            "description": "Followers, total likes, bio, avatar and verified badge of each creator, plus view counts of their latest videos. Free.",
            "default": true
          },
          "onlyNewVideos": {
            "title": "Only new videos (monitoring)",
            "type": "boolean",
            "description": "Skip videos already returned by earlier runs of the same task: schedule the task to get only what is new.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}