{
  "openapi": "3.0.1",
  "info": {
    "title": "TikTok Creative Center Scraper: Top Ads & Trending Hashtags",
    "description": "Extract TikTok Creative Center Top Ads and Trending Hashtags by country, keyword, industry, objective, and format with CTR, likes, views, curves, and run changes (NEW/UP/DOWN/DROPPED). Unofficial tool independent from TikTok.",
    "version": "0.0",
    "x-build-id": "ZCzkP5Jufqu3gyJ5E"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kizukidata~tiktok-creative-trends/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kizukidata-tiktok-creative-trends",
        "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/kizukidata~tiktok-creative-trends/runs": {
      "post": {
        "operationId": "runs-sync-kizukidata-tiktok-creative-trends",
        "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/kizukidata~tiktok-creative-trends/run-sync": {
      "post": {
        "operationId": "run-sync-kizukidata-tiktok-creative-trends",
        "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": {
          "boards": {
            "title": "Boards",
            "type": "array",
            "description": "Creative Center boards to read: `ads` (up to 20 Top Ads per query) and/or `hashtags` (3 trending hashtags per board, or ~55 unique tags across all 21 industries). Raise Maximum rows above 20 when reading both boards.",
            "items": {
              "type": "string"
            },
            "default": [
              "ads"
            ]
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Up to 40 two-letter country codes the Creative Center covers (for example [\"US\", \"GB\", \"JP\"]). Unknown codes are skipped and listed in the run summary. Leave empty to default to US.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "periods": {
            "title": "Windows in days",
            "type": "array",
            "description": "Time windows offered by the boards: \"7\" and/or \"30\" days. Each window tracks its own rank history.",
            "items": {
              "type": "string"
            },
            "default": [
              "7"
            ]
          },
          "sorts": {
            "title": "Top Ads order",
            "type": "array",
            "description": "Sort orders for Top Ads: \"for_you\" (board ranking) and/or \"ctr\" (click-through rate). Each order keeps separate rank history.",
            "items": {
              "type": "string"
            },
            "default": [
              "for_you"
            ]
          },
          "keyword": {
            "title": "Keyword or brand search",
            "type": "string",
            "description": "Search Top Ads by brand or ad text, and filter hashtags locally by tag name. Top Ads results are those the public, logged-out search shows, so expect only a few ads (often 0 or 1). When set, Top Ads language and format filters do not apply.",
            "default": ""
          },
          "industries": {
            "title": "Industries",
            "type": "array",
            "description": "Filter by Creative Center industry names or numeric IDs (for example [\"Beauty & Personal Care\"]), or pass [\"all\"] to sweep all 21 top-level categories and gather up to about 55 unique hashtags per country and window.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "objective": {
            "title": "Campaign objective (Top Ads)",
            "type": "string",
            "description": "Filter Top Ads by objective: conversion, traffic, reach, video_view, app_install, lead_generation, product_sales, or app_promotion. Leave empty for all objectives.",
            "default": ""
          },
          "adLanguage": {
            "title": "Ad language (Top Ads)",
            "type": "string",
            "description": "Filter Top Ads by language code or name (for example en, es, fr, de, ja, ko, pt, vi, th, id, ar, it, nl, ms, ro, zh-Hant). Leave empty for all languages.",
            "default": ""
          },
          "adFormat": {
            "title": "Ad format (Top Ads)",
            "type": "string",
            "description": "Filter Top Ads by format: spark (Spark ads) or non_spark (Non-Spark ads). Leave empty for both formats.",
            "default": ""
          },
          "includeCurve": {
            "title": "Include the hashtag popularity curve",
            "type": "boolean",
            "description": "Return the hashtag board's seven-point curve (ISO timestamp and a value where the window's peak is 100). Turning it off makes hashtag rows smaller; the rising/falling reading is still computed from it.",
            "default": true
          },
          "onlyChanges": {
            "title": "Only rows that changed",
            "type": "boolean",
            "description": "Return only rows that are NEW, moved UP or DOWN, or left the board (DROPPED). State is kept per board, country, window, and filter combination for 90 days.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum rows",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Maximum rows written in one run, from 1 to 1000. Raise this above the default 20 when combining boards, countries, windows, or sweeping all industries.",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "No proxy by default: this Actor works directly without a proxy in most runs. Turn on an Apify datacenter proxy when your runs are rate-limited. Residential proxies are not available in this Actor.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}