{
  "openapi": "3.0.1",
  "info": {
    "title": "Douyin Xingtu 巨量星图 KOL Scraper - Rates, CPM & Rankings",
    "description": "Get Douyin KOL data from Xingtu (巨量星图) for influencer marketing: search creators by keyword, category, gender and followers; pull video quotes, expected CPM/CPE, MCN and audience breakdown; read Xingtu ranking lists. No login or cookies needed. Export to JSON, CSV or Excel.",
    "version": "0.1",
    "x-build-id": "j3b1T3Re9NrhWFGsq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/clover_folktale~xingtu-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-clover_folktale-xingtu-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/clover_folktale~xingtu-scraper/runs": {
      "post": {
        "operationId": "runs-sync-clover_folktale-xingtu-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/clover_folktale~xingtu-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-clover_folktale-xingtu-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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "creator",
              "ranking"
            ],
            "type": "string",
            "description": "What to scrape: creators matching a search, full profiles of given creators, or an official ranking list.",
            "default": "search"
          },
          "keyword": {
            "title": "Keyword (mode: search)",
            "type": "string",
            "description": "Creator nickname or, with searchBy = content, a topic found in the creators' videos. Optional: leave empty to browse creators with the filters below only."
          },
          "searchBy": {
            "title": "Search by (mode: search)",
            "enum": [
              "nickname",
              "content"
            ],
            "type": "string",
            "description": "Match the keyword against creator nicknames or against the content of their videos.",
            "default": "nickname"
          },
          "category": {
            "title": "Category (mode: search)",
            "enum": [
              "any",
              "beauty",
              "fashion",
              "pets",
              "reviews",
              "games",
              "anime",
              "travel",
              "cars",
              "lifestyle",
              "music",
              "dance",
              "food",
              "parenting",
              "fitness",
              "tech",
              "education",
              "looks",
              "home",
              "talent",
              "film-tv",
              "art-culture",
              "finance",
              "rural",
              "comedy-drama",
              "relationships",
              "gardening",
              "real-estate",
              "street-snaps",
              "media"
            ],
            "type": "string",
            "description": "Only creators in this category.",
            "default": "any"
          },
          "gender": {
            "title": "Creator gender (mode: search)",
            "enum": [
              "any",
              "male",
              "female"
            ],
            "type": "string",
            "description": "Only male or female creators.",
            "default": "any"
          },
          "minFollowers": {
            "title": "Min followers (mode: search)",
            "minimum": 0,
            "type": "integer",
            "description": "Only creators with at least this many followers."
          },
          "maxFollowers": {
            "title": "Max followers (mode: search)",
            "minimum": 0,
            "type": "integer",
            "description": "Only creators with at most this many followers."
          },
          "sort": {
            "title": "Sort (mode: search)",
            "enum": [
              "relevance",
              "followers-desc",
              "followers-asc"
            ],
            "type": "string",
            "description": "Best match first, or by follower count.",
            "default": "relevance"
          },
          "creators": {
            "title": "Creators (mode: creator)",
            "type": "array",
            "description": "Xingtu creator IDs (the long number returned as userId by the search) or Xingtu creator page links, e.g. https://www.xingtu.cn/ad/creator/author-homepage/douyin-video/6839869628747874312.",
            "items": {
              "type": "string"
            }
          },
          "rankingList": {
            "title": "Ranking list (mode: ranking)",
            "enum": [
              "brand-preferred",
              "a3-seeding",
              "search-after-view",
              "ecommerce",
              "ad-traffic",
              "high-potential",
              "rising-stars",
              "top-picks"
            ],
            "type": "string",
            "description": "Which official ranking to read. The list ranks creators by their commercial results or growth.",
            "default": "brand-preferred"
          },
          "rankingPeriod": {
            "title": "Ranking period (mode: ranking)",
            "enum": [
              "weekly",
              "monthly"
            ],
            "type": "string",
            "description": "Weekly or monthly edition. The latest published edition is read unless you give a date.",
            "default": "monthly"
          },
          "rankingCategory": {
            "title": "Ranking category (mode: ranking)",
            "enum": [
              "electronics",
              "daily-chemicals",
              "apparel",
              "mom-baby-pet",
              "auto",
              "beauty",
              "food-beverage",
              "all",
              "drama",
              "anime",
              "parenting",
              "entertainment",
              "sports",
              "animals",
              "emotion",
              "photography",
              "education",
              "travel",
              "fashion",
              "games",
              "home-life",
              "life-records",
              "movies",
              "tv-series",
              "tech",
              "science",
              "variety",
              "food",
              "workplace",
              "dance",
              "art",
              "finance",
              "music",
              "looks",
              "rural",
              "cars",
              "law"
            ],
            "type": "string",
            "description": "Advertiser industry (lists brand-preferred, a3-seeding, search-after-view, ecommerce, ad-traffic, high-potential) or content category (rising-stars, top-picks). Leave unset for the default of the chosen list. A category a list does not publish returns no results."
          },
          "rankingDate": {
            "title": "Ranking date (mode: ranking)",
            "type": "string",
            "description": "Optional edition to read, as YYYYMMDD: the last day of the period, e.g. 20260930 for the September 2026 monthly edition. Empty reads the latest edition."
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of items to return in total for this run. You are charged per item returned. On the free Apify plan a run returns at most 20 results in total; any paid Apify plan removes the limit.",
            "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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}