{
  "openapi": "3.0.1",
  "info": {
    "title": "Douyin KOL Scraper - 星图 Influencer Rates & Audience",
    "description": "Scrape Douyin's 星图 (Xingtu) influencer marketplace: search creators by niche with follower and price filters, browse Xingtu leaderboards, find similar creators, and pull quoted ad rates, CPM/CPE, audience demographics and sponsored videos. Export to JSON/CSV/Excel. No login, cookies or proxy needed.",
    "version": "1.0",
    "x-build-id": "sgucL7c77GKX4T7OL"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vulnv~douyin-kol-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vulnv-douyin-kol-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/vulnv~douyin-kol-scraper/runs": {
      "post": {
        "operationId": "runs-sync-vulnv-douyin-kol-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/vulnv~douyin-kol-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-vulnv-douyin-kol-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",
        "required": [
          "operation"
        ],
        "properties": {
          "operation": {
            "title": "⚙️ Operation",
            "enum": [
              "search_creators",
              "rankings",
              "similar_creators",
              "creator_profile",
              "audience_portrait",
              "creator_videos"
            ],
            "type": "string",
            "description": "What to scrape. Each operation uses a different input field below:\n\n• Search creators → Keywords (+ optional filters)\n• Leaderboards → Leaderboard settings\n• Similar creators → Creators\n• Creator profile & rates → Creators\n• Audience portrait → Creators\n• Creator's videos → Creators",
            "default": "search_creators"
          },
          "keywords": {
            "title": "🔎 Search keywords",
            "type": "array",
            "description": "For the \"Search creators\" operation. Add one or more keywords, e.g. a niche (美妆, 健身, 数码) or a creator name. Each keyword is searched independently and cross-keyword duplicates are removed.",
            "items": {
              "type": "string"
            }
          },
          "creators": {
            "title": "👤 Creators",
            "type": "array",
            "description": "For \"Similar creators\", \"Creator profile\", \"Audience portrait\" and \"Creator's videos\". One per line: a Douyin ID (抖音号, e.g. m6640150), a Douyin profile URL (douyin.com/user/MS4w...), a Xingtu creator URL, or a Xingtu creator ID (the star_id of any result row). The creator must be listed on the Xingtu marketplace.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "📊 Maximum results per input",
            "minimum": 0,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper bound on results per keyword / creator (search, similar creators, videos) and on leaderboard rows. Cost scales linearly. Set 0 to fetch all available.",
            "default": 100
          },
          "searchBy": {
            "title": "🔤 Match keyword against",
            "enum": [
              "nickname",
              "content"
            ],
            "type": "string",
            "description": "For \"Search creators\" only. Match the keyword against creator nicknames, or against the content creators publish.",
            "default": "nickname"
          },
          "followersMin": {
            "title": "Minimum followers",
            "minimum": 0,
            "type": "integer",
            "description": "For \"Search creators\" only. Only return creators with at least this many followers. Leave empty for no limit."
          },
          "followersMax": {
            "title": "Maximum followers",
            "minimum": 0,
            "type": "integer",
            "description": "For \"Search creators\" only. Only return creators with at most this many followers. Leave empty for no limit."
          },
          "priceTier": {
            "title": "Price filter applies to",
            "enum": [
              "1_20s",
              "21_60s",
              "60s_plus"
            ],
            "type": "string",
            "description": "For \"Search creators\" only. Which quoted rate the price range below filters on.",
            "default": "21_60s"
          },
          "priceMin": {
            "title": "Minimum quoted rate (CNY)",
            "minimum": 0,
            "type": "integer",
            "description": "For \"Search creators\" only. Only return creators whose quoted rate is at least this much, in CNY. Leave empty for no limit."
          },
          "priceMax": {
            "title": "Maximum quoted rate (CNY)",
            "minimum": 0,
            "type": "integer",
            "description": "For \"Search creators\" only. Only return creators whose quoted rate is at most this much, in CNY. Leave empty for no limit."
          },
          "creatorGender": {
            "title": "Creator gender",
            "enum": [
              "any",
              "female",
              "male"
            ],
            "type": "string",
            "description": "For \"Search creators\" only.",
            "default": "any"
          },
          "rankingList": {
            "title": "🏆 Leaderboard",
            "enum": [
              "top_creators",
              "rising_creators",
              "brand_preferred",
              "seeding",
              "search_after_view",
              "sales",
              "ad_boost",
              "high_potential"
            ],
            "type": "string",
            "description": "For \"Leaderboards\" only. Which Xingtu creator leaderboard to fetch (up to 100 creators each).",
            "default": "top_creators"
          },
          "rankingCategory": {
            "title": "Leaderboard category",
            "type": "string",
            "description": "For \"Leaderboards\" only, in Chinese as the marketplace names it. Top must-pick and Fastest growth use content categories (不限 = all, 美食, 游戏, 科技, 时尚, 旅行 ...). The brand leaderboards use industries: 美妆, 日化, 3C及电器, 服装配饰, 母婴宠物, 食品饮料, 汽车 (not every list has every industry). If the category does not exist for the chosen list, the run log shows the valid ones.",
            "default": "不限"
          },
          "rankingPeriod": {
            "title": "Leaderboard period",
            "enum": [
              "30",
              "7"
            ],
            "type": "string",
            "description": "For \"Leaderboards\" only. Weekly or monthly ranking; the latest published edition is used.",
            "default": "30"
          },
          "similarBy": {
            "title": "🧭 Similar by",
            "enum": [
              "comprehensive",
              "content",
              "audience",
              "commercial"
            ],
            "type": "string",
            "description": "For \"Similar creators\" only. What \"similar\" means.",
            "default": "comprehensive"
          },
          "audienceType": {
            "title": "👥 Audience",
            "enum": [
              "followers",
              "fan_club",
              "loyal_fans",
              "viewers"
            ],
            "type": "string",
            "description": "For \"Audience portrait\" only. Whose demographics to return.",
            "default": "followers"
          },
          "videoType": {
            "title": "🎬 Videos to return",
            "enum": [
              "all",
              "personal",
              "sponsored"
            ],
            "type": "string",
            "description": "For \"Creator's videos\" only. All videos, only the creator's own (organic) videos, or only sponsored videos ordered through Xingtu.",
            "default": "all"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}