{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Trending Products",
    "description": "Find your next winner! Discover viral products and profitable niches on TikTok. Scrape trending categories, winning ads, CTR, CVR, and CPA data from TikTok Creative Center. No login required!",
    "version": "1.0",
    "x-build-id": "ei3yqJwoDtkcMhGZz"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/burbn~tiktok-trending-products-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-burbn-tiktok-trending-products-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/burbn~tiktok-trending-products-scraper/runs": {
      "post": {
        "operationId": "runs-sync-burbn-tiktok-trending-products-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/burbn~tiktok-trending-products-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-burbn-tiktok-trending-products-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": {
          "period_type": {
            "title": "📅 Period Type",
            "enum": [
              "last",
              "week",
              "month"
            ],
            "type": "string",
            "description": "Select how to define the time period. 'Last' uses predefined ranges (1/7/30 days), 'Week' uses a specific week date, 'Month' uses a specific month.",
            "default": "last"
          },
          "last": {
            "title": "📆 Last N Days",
            "enum": [
              "1",
              "7",
              "30"
            ],
            "type": "string",
            "description": "When period_type is 'last', select the time range. 1 = Yesterday, 7 = Last 7 days, 30 = Last 30 days.",
            "default": "7"
          },
          "week": {
            "title": "📅 Specific Week",
            "type": "string",
            "description": "When period_type is 'week', enter the week start date in YYYY-MM-DD format (e.g. 2026-01-01). Only used when Period Type is 'Specific Week'.",
            "default": ""
          },
          "month": {
            "title": "📅 Specific Month",
            "type": "string",
            "description": "When period_type is 'month', enter the month in YYYY-MM format (e.g. 2025-01). Only used when Period Type is 'Specific Month'.",
            "default": ""
          },
          "page": {
            "title": "📄 Start Page Number",
            "minimum": 1,
            "type": "integer",
            "description": "The page number to start scraping from. Default: 1.",
            "default": 1
          },
          "country_code": {
            "title": "🌍 Country",
            "enum": [
              "",
              "AR",
              "AU",
              "AT",
              "BH",
              "BY",
              "BE",
              "BR",
              "KH",
              "CA",
              "CL",
              "CO",
              "CZ",
              "DK",
              "EC",
              "EG",
              "FI",
              "FR",
              "DE",
              "GR",
              "HU",
              "ID",
              "IQ",
              "IE",
              "IL",
              "IT",
              "JP",
              "JO",
              "KZ",
              "KW",
              "LB",
              "MY",
              "MX",
              "MA",
              "NL",
              "NZ",
              "NO",
              "OM",
              "PK",
              "PE",
              "PH",
              "PL",
              "PT",
              "QA",
              "RO",
              "SA",
              "SG",
              "ZA",
              "KR",
              "ES",
              "SE",
              "CH",
              "TW",
              "TH",
              "TR",
              "AE",
              "GB",
              "US",
              "UY",
              "VN"
            ],
            "type": "string",
            "description": "Select a country to filter products by region. Leave empty for all countries.",
            "default": ""
          },
          "ecom_type": {
            "title": "📦 Product Level",
            "enum": [
              "l3",
              "l2"
            ],
            "type": "string",
            "description": "Select the product granularity level. 'Product' shows individual product categories, 'Subcategory' shows broader subcategories.",
            "default": "l3"
          },
          "order_by": {
            "title": "📈 Sort By",
            "enum": [
              "post",
              "post_change",
              "ctr",
              "cvr",
              "cpa",
              "cost",
              "like",
              "share",
              "comment",
              "impression",
              "play_six_rate"
            ],
            "type": "string",
            "description": "Sort products by a specific metric.",
            "default": "post"
          },
          "order_type": {
            "title": "🔄 Sort Order",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Sort direction - descending (highest first) or ascending (lowest first).",
            "default": "desc"
          },
          "first_ecom_category_id": {
            "title": "🏷️ Category Filter",
            "enum": [
              "",
              "605196",
              "809488",
              "929928",
              "930056",
              "930184",
              "940424",
              "940296",
              "940808",
              "940936",
              "809616",
              "940680",
              "602284",
              "879112",
              "877320",
              "961928",
              "878216",
              "878600",
              "878984",
              "877576",
              "879496",
              "880008",
              "877832",
              "601450",
              "849160",
              "849544",
              "849800",
              "848904",
              "849032",
              "848648",
              "849288",
              "849672",
              "849416",
              "848776",
              "981128",
              "801928",
              "989704",
              "989320",
              "992904",
              "927112",
              "992392",
              "986760",
              "985736",
              "990216",
              "997384",
              "951432",
              "952712",
              "809872",
              "953352",
              "937736",
              "810000",
              "601755",
              "828168",
              "825352",
              "824840",
              "829192",
              "830344",
              "831112",
              "826760",
              "605248",
              "905224",
              "905608",
              "843144",
              "905352",
              "905864",
              "810128",
              "905480",
              "700437",
              "915208",
              "914696",
              "914824",
              "915464",
              "914952",
              "809744",
              "915336",
              "915080",
              "604453",
              "871304",
              "871432",
              "871048",
              "871176",
              "700645",
              "950792",
              "700646",
              "924424",
              "949384",
              "604968",
              "873096",
              "872968",
              "872584",
              "873352",
              "872712",
              "872456",
              "873224",
              "872840",
              "808208",
              "600001",
              "851976",
              "852488",
              "852232",
              "852104",
              "851848",
              "852360",
              "852616",
              "600942",
              "845320",
              "844808",
              "844168",
              "845064",
              "953224",
              "964616",
              "964360",
              "955272",
              "955016",
              "963848",
              "964744",
              "955400",
              "961800",
              "964488",
              "954888",
              "964104",
              "964232",
              "955144",
              "802184",
              "802312",
              "805128",
              "803592",
              "806024",
              "806792",
              "600024",
              "859016",
              "858888",
              "858760",
              "859144",
              "859272",
              "859400",
              "858632",
              "859528",
              "858504",
              "824584",
              "902920",
              "902792",
              "902664",
              "902536",
              "902408",
              "824328",
              "840072",
              "840584",
              "840328",
              "840712",
              "839944",
              "840456",
              "601303",
              "601304",
              "601343",
              "838920",
              "601339",
              "601325",
              "601331",
              "601348",
              "839176",
              "601310",
              "602118",
              "821896",
              "818696",
              "813960",
              "812168",
              "812808",
              "816392",
              "818184",
              "815624",
              "1001992",
              "819848",
              "821000",
              "822792",
              "601739",
              "909448",
              "909320",
              "909192",
              "909704",
              "909064",
              "995976",
              "909576",
              "984584",
              "978952",
              "601352",
              "900616",
              "900744",
              "900488",
              "603014",
              "834952",
              "835464",
              "936712",
              "835336",
              "835592",
              "834568",
              "834824",
              "834696",
              "835080",
              "835208",
              "600154",
              "808328",
              "811016",
              "809992",
              "604579",
              "871944",
              "871688",
              "872328",
              "871816",
              "871560",
              "980488",
              "872072",
              "872200",
              "604206",
              "860296",
              "951560",
              "859656",
              "859784",
              "860040",
              "860168",
              "860552",
              "859912",
              "834312",
              "996360",
              "601152",
              "842376",
              "842504",
              "843016",
              "842632",
              "842760",
              "842248",
              "842888"
            ],
            "type": "string",
            "description": "Select a product category to filter trending products. Leave empty for all categories.",
            "default": ""
          },
          "keyword": {
            "title": "🔍 Search Keyword",
            "type": "string",
            "description": "Search for products by keyword. Leave empty to not filter by keyword.",
            "default": ""
          },
          "maxResults": {
            "title": "🎯 Max Results",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of products to scrape. Set to 0 for unlimited. Default: 100.",
            "default": 20
          },
          "limit": {
            "title": "📐 Results Per Page",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Number of products per API request. Max 20. Default: 20.",
            "default": 20
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}