{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Creative Center Top Ads Scraper - CTR, Likes, Videos",
    "description": "Scrape every TikTok Top Ad of a market from Creative Center, not only the first 20: CTR rank, likes, comments, shares, budget level, landing page, industry, objective and MP4 video links. 80+ countries, monitoring for new ads, no login.",
    "version": "0.5",
    "x-build-id": "ImrqUZ9GBwLJlFjgS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/nexuscortex~tiktok-creative-center-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-nexuscortex-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/nexuscortex~tiktok-creative-center-scraper/runs": {
      "post": {
        "operationId": "runs-sync-nexuscortex-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/nexuscortex~tiktok-creative-center-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-nexuscortex-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": {
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Two-letter codes (US, GB, DE, BR, JP...) or country names. \"ALL\" = all 82 countries Creative Center covers: AE, AR, AT, AU, AZ, BD, BE, BG, BH, BO, BR, BY, CA, CH, CL, CO, CR, CY, CZ, DE, DK, DO, DZ, EC, EE, EG, ES, FI, FR, GB, GR, GT, HR, HU, ID, IE, IL, IQ, IT, JO, JP, KE, KH, KR, KW, KZ, LB, LK, LT, LV, MA, MX, MY, NG, NL, NO, NZ, OM, PA, PE, PH, PK, PL, PR, PT, PY, QA, RO, RS, SA, SE, SG, SI, SK, TH, TR, TW, UA, US, UY, VN, ZA. Left empty it defaults to US; with Top Ads Spotlight on, empty means no country market at all (Spotlight only).",
            "items": {
              "type": "string"
            }
          },
          "period": {
            "title": "Period",
            "enum": [
              "7",
              "30",
              "180"
            ],
            "type": "string",
            "description": "Ads that ran in the last 7, 30 or 180 days.",
            "default": "30"
          },
          "allAds": {
            "title": "Get every ad (not only the top 20)",
            "type": "boolean",
            "description": "Creative Center shows at most 20 ads per list to visitors without an account. With this on, the Actor reads the list in every sort order, objective and industry until it has every ad of the market (measured: 187 US ads of the last 30 days where TikTok reported 183, in about 2.5 minutes). Off: only the top 20 by \"Sort by\", with their rank.",
            "default": true
          },
          "spotlight": {
            "title": "Top Ads Spotlight",
            "type": "boolean",
            "description": "Also add Top Ads Spotlight: the ads TikTok's creative experts hand-pick each month (5 at the moment), with their note. Leave Countries empty to get only these.",
            "default": false
          },
          "sortBy": {
            "title": "Sort by (top 20 mode)",
            "enum": [
              "FOR_YOU",
              "LIKES",
              "CTR",
              "REACH",
              "CVR",
              "VIEW_RATE_6S",
              "VIEW_RATE_2S"
            ],
            "type": "string",
            "description": "Ranking used when \"Get every ad\" is off.",
            "default": "FOR_YOU"
          },
          "includeDetails": {
            "title": "Include ad details",
            "type": "boolean",
            "description": "Landing page URL and domain, comments, shares, every country the ad ran in, objectives and source. One extra request per ad (no extra charge).",
            "default": true
          },
          "keyframeMetrics": {
            "title": "Keyframe metrics",
            "type": "array",
            "description": "Second-by-second curves from Creative Center's ad analysis, scaled so the video's best second = 1, plus TikTok's highlight seconds. One extra request per metric per ad (no extra charge). CVR and conversions are only filled for ads with a conversion objective.",
            "items": {
              "type": "string",
              "enum": [
                "CTR",
                "CVR",
                "CLICKS",
                "CONVERSIONS",
                "RETENTION"
              ],
              "enumTitles": [
                "CTR by second",
                "Conversion rate by second",
                "Clicks by second",
                "Conversions by second",
                "Viewer retention by second"
              ]
            },
            "default": []
          },
          "maxItems": {
            "title": "Max ads",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many ads in total. Each ad is one result; an ad found in several countries is delivered once.",
            "default": 1000
          },
          "industries": {
            "title": "Industries",
            "type": "array",
            "description": "Optional. Industry names as Creative Center shows them, e.g. \"Beauty & Personal Care\", \"Apps\", \"Games\", \"E-Commerce (Non-app)\", \"Haircare\". Empty = all industries.",
            "items": {
              "type": "string"
            }
          },
          "objectives": {
            "title": "Campaign objectives",
            "type": "array",
            "description": "Optional. Traffic, App Installs, Conversions, Video Views, Reach, Lead Generation, Product Sales, App Promotion. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "adLanguages": {
            "title": "Ad languages",
            "type": "array",
            "description": "Optional language codes of the ad: en, es, ar, vi, th, de, id, pt, fr, ms, nl, ja, it, ro, zh-Hant, ko. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "adFormat": {
            "title": "Ad format",
            "enum": [
              "ALL",
              "SPARK",
              "NON_SPARK"
            ],
            "type": "string",
            "description": "Optional. Spark Ads are boosted organic posts; Non-Spark Ads are regular in-feed ads.",
            "default": "ALL"
          },
          "likeTiers": {
            "title": "Like tiers",
            "type": "array",
            "description": "Optional. Only ads in the selected like tiers are collected. Each tier is read as its own market; an ad in several is delivered once. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "TOP_1_20",
                "TOP_21_40",
                "TOP_41_60",
                "TOP_61_80",
                "TOP_81_100"
              ],
              "enumTitles": [
                "Top 1–20% by likes",
                "Top 21–40% by likes",
                "Top 41–60% by likes",
                "Top 61–80% by likes",
                "Top 81–100% by likes"
              ]
            },
            "default": []
          },
          "monitorName": {
            "title": "Monitoring name (new ads only)",
            "type": "string",
            "description": "Optional. Runs with the same name deliver (and charge) only ads that earlier runs have not delivered. Schedule the Actor daily with a name like \"us-beauty\" to get a feed of new Top Ads."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify Proxy (datacenter) works. No login or cookies are used.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}