{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Creative Center Scraper: Top Ads, Hashtags, Videos",
    "description": "Export TikTok's top-performing ads with video links, likes, CTR, budget level, landing pages and countries, plus trending hashtags with popularity curves and top creators, and top videos with views and engagement. Many countries per run, deep search past the 20-ad view, new-ads monitor.",
    "version": "0.1",
    "x-build-id": "WhBJ6OWqMcjJSlngs"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/automatic~tiktok-creative-center-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-automatic-tiktok-creative-center-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/automatic~tiktok-creative-center-scraper/runs": {
      "post": {
        "operationId": "runs-sync-automatic-tiktok-creative-center-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/automatic~tiktok-creative-center-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-automatic-tiktok-creative-center-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": {
          "sections": {
            "title": "What to collect",
            "type": "array",
            "description": "Top ads: TikTok's best-performing ads with the video, likes, CTR and budget level. Trending hashtags: the hashtags rising fastest, with posts, views, a daily popularity curve and their top creators. Top videos: the most-viewed and most engaging TikTok videos, with views, engagement and the creator. Leave it out to get all three; an empty run input returns a small sample of each for the US. To read only the ad links below, clear this field.",
            "items": {
              "type": "string",
              "enum": [
                "topAds",
                "hashtags",
                "videos"
              ],
              "enumTitles": [
                "Top ads",
                "Trending hashtags",
                "Top videos"
              ]
            }
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "One list per country: two-letter codes (US, GB, DE) or English names. Use \"all\" for every country TikTok publishes. Top ads cover 28 countries, hashtags 27 and top videos US, JP, VN, TH and ID; a country a section does not cover is skipped and named in the run summary. Empty means the US.",
            "items": {
              "type": "string"
            }
          },
          "periods": {
            "title": "Time periods",
            "type": "array",
            "description": "Last 7, 30, 90 or 180 days; pick several to compare. Top ads offer 7, 30 and 180 days, hashtags 7, 30 and 90, top videos 7 and 30. Empty means the last 7 days.",
            "items": {
              "type": "string",
              "enum": [
                "7",
                "30",
                "90",
                "180"
              ],
              "enumTitles": [
                "Last 7 days",
                "Last 30 days",
                "Last 90 days",
                "Last 180 days"
              ]
            }
          },
          "industries": {
            "title": "Industries",
            "type": "array",
            "description": "Only ads (and hashtags) from these industries, by the Creative Center's own names, for example \"Beauty & Personal Care\", \"Skincare\", \"Games\", \"Apps\" or \"E-Commerce (Non-app)\". Each industry is its own list. An unknown name is skipped and named in the run summary.",
            "items": {
              "type": "string"
            }
          },
          "objectives": {
            "title": "Campaign objectives (top ads)",
            "type": "array",
            "description": "Only ads run for these goals. Each objective is its own list.",
            "items": {
              "type": "string",
              "enum": [
                "traffic",
                "app-installs",
                "conversions",
                "video-views",
                "reach",
                "lead-generation",
                "product-sales",
                "app-promotion"
              ],
              "enumTitles": [
                "Traffic",
                "App Installs",
                "Conversions",
                "Video Views",
                "Reach",
                "Lead Generation",
                "Product Sales",
                "App Promotion"
              ]
            }
          },
          "adLanguages": {
            "title": "Ad languages (top ads)",
            "type": "array",
            "description": "Only ads in these languages.",
            "items": {
              "type": "string",
              "enum": [
                "en",
                "es",
                "ar",
                "vi",
                "th",
                "de",
                "id",
                "pt",
                "fr",
                "ms",
                "nl",
                "ja",
                "it",
                "ro",
                "zh-Hant",
                "ko"
              ],
              "enumTitles": [
                "English",
                "Spanish",
                "Arabic",
                "Vietnamese",
                "Thai",
                "German",
                "Indonesian",
                "Portuguese",
                "French",
                "Malay",
                "Dutch",
                "Japanese",
                "Italian",
                "Romanian",
                "Chinese (Traditional)",
                "Korean"
              ]
            }
          },
          "adFormat": {
            "title": "Ad format (top ads)",
            "enum": [
              "all",
              "spark",
              "non-spark"
            ],
            "type": "string",
            "description": "Spark ads are boosted organic posts from a creator or brand account; non-Spark ads are uploaded straight to the ad account.",
            "default": "all"
          },
          "sortBy": {
            "title": "Rank top ads by",
            "enum": [
              "for-you",
              "reach",
              "ctr",
              "2s-view-rate",
              "6s-view-rate",
              "cvr",
              "likes"
            ],
            "type": "string",
            "description": "The order TikTok ranks ads in; each list holds the top ads for that ranking.",
            "default": "for-you"
          },
          "videoCategories": {
            "title": "Video categories (top videos)",
            "type": "array",
            "description": "Only top videos from these categories. Each category is its own list.",
            "items": {
              "type": "string",
              "enum": [
                "11002",
                "11003",
                "11010",
                "11013",
                "11015"
              ],
              "enumTitles": [
                "Beauty & Care",
                "Fashion",
                "Food & Beverage",
                "Lifestyle & Leisure",
                "Technology & Finance"
              ]
            }
          },
          "videoSortBy": {
            "title": "Rank top videos by",
            "enum": [
              "views",
              "engagement-rate",
              "6s-view-rate"
            ],
            "type": "string",
            "description": "Views, engagement rate or the share of views that last at least 6 seconds.",
            "default": "views"
          },
          "deepSearch": {
            "title": "Deep search: go past the top 20",
            "type": "boolean",
            "description": "TikTok shows the top 20 ads, 3 hashtags or 4 videos for each combination of filters. Turn this on to sweep every objective, industry, performance tier, format, language and ranking (and every industry or video category for trends), combine the results without duplicates and go much deeper, up to Maximum results. The run summary shows how many ads TikTok counts for each country and period and how many were found.",
            "default": false
          },
          "includeDetails": {
            "title": "Include ad details",
            "type": "boolean",
            "description": "Add each top ad's landing page, countries, comments, shares, keywords, voice-over and source. Applies to lists and pasted links. Each saved ad with details adds the ad-details charge ($0.50 per 1,000 on the Free plan). Turn off for basic ad fields and only the result charge per row.",
            "default": true
          },
          "maxResults": {
            "title": "Maximum results per list",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Most rows saved for each section, country and time period (up to 5,000), shared fairly among the filters you list. This limit also applies separately to all pasted ad links together. Without deep search each combination holds up to 20 ads, 3 hashtags or 4 videos.",
            "default": 100
          },
          "onlyNewResults": {
            "title": "Only new results since the last run",
            "type": "boolean",
            "description": "Skip ads, hashtags and videos this monitor already delivered, including ads from pasted links. Skipped rows incur no result or ad-details charge. The first run establishes the starting point.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Optional history name for Only new results, for example beauty-ads-us. Leave empty for the automatic history for this set of lists, or the shared links-only history when no lists are selected."
          },
          "startUrls": {
            "title": "Top ad links",
            "type": "array",
            "description": "Creative Center Top Ads links (https://ads.tiktok.com/business/creativecenter/topads/<id>/...) or ad IDs. With Include ad details on, each saved link adds the ad-details charge ($0.50 per 1,000 on the Free plan). With no list choices, only these links run. Leaving an explicitly supplied link list empty then returns zero rows.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}