{
  "openapi": "3.0.1",
  "info": {
    "title": "Douyin (抖音) Profile Scraper | Followers, Posts & Likes",
    "description": "Scrape Douyin (抖音) followers, posts & likes with ZERO login or cookies! Get total likes, bio, IP region, 抖音号, engagement rates, chapters, POI cities, .mp3 audio & watermark-free MP4s. 250+ data points per post. Fast profile-only mode. Free 20-result preview. Export JSON/CSV/Excel.",
    "version": "0.0",
    "x-build-id": "Wmb8NKQFwiQRrG2Yf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapepilot~douyin-dou-yin-profile-scraper-followers-posts-likes/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapepilot-douyin-dou-yin-profile-scraper-followers-posts-likes",
        "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/scrapepilot~douyin-dou-yin-profile-scraper-followers-posts-likes/runs": {
      "post": {
        "operationId": "runs-sync-scrapepilot-douyin-dou-yin-profile-scraper-followers-posts-likes",
        "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/scrapepilot~douyin-dou-yin-profile-scraper-followers-posts-likes/run-sync": {
      "post": {
        "operationId": "run-sync-scrapepilot-douyin-dou-yin-profile-scraper-followers-posts-likes",
        "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": [
          "profileUrls"
        ],
        "properties": {
          "profileUrls": {
            "title": "Douyin Profile URLs, Share Links, or IDs",
            "type": "array",
            "description": "List of Douyin creator profile URLs (douyin.com/user/...), app share links (v.douyin.com/...), legacy share URLs (iesdouyin.com/share/user/...), bare UserSecIDs (MS4w...), numeric user IDs, or Douyin handles (抖音号). Mixed formats are supported in the same run.",
            "default": [
              "https://www.douyin.com/user/MS4wLjABAAAAk1tZ-L085zZf2yW_H5dnVFZWyk8Rt8v4RAvf9KhTyPoVdMDxTs7Q_rvgTJGWXezS"
            ],
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerProfile": {
            "title": "Max Posts Per Profile",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Number of recent posts to collect per creator (0–10,000). Set to 0 for ultra-fast profile-only mode (returns 1 creator profile row per account without fetching post rows). Free preview tier is capped at 20 results per run; paid plans unlock unrestricted extraction.",
            "default": 100
          },
          "recentDays": {
            "title": "Recent Days Window (Optional)",
            "minimum": 1,
            "type": "integer",
            "description": "Only include posts published within the last N days (e.g., 30 for the past month). Takes priority over oldestPostDate when both are provided."
          },
          "oldestPostDate": {
            "title": "Oldest Post Date (YYYY-MM-DD, Optional)",
            "type": "string",
            "description": "Only include posts published on or after this UTC date (YYYY-MM-DD, e.g., 2026-01-01). Ignored if recentDays is also specified.",
            "default": ""
          },
          "excludePinnedPosts": {
            "title": "Exclude Pinned Posts",
            "type": "boolean",
            "description": "When enabled, skips posts pinned to the top of the creator's profile (isPinned: true).",
            "default": false
          },
          "enrichPostDetails": {
            "title": "Enrich Post Details (Recommended)",
            "type": "boolean",
            "description": "Concurrently enriches collected posts to recover 3-level Douyin videoTags, city & GB/T 2260 city codes, POI coordinates, multi-bitrate variants, and direct .mp3 audio URLs.",
            "default": true
          },
          "shouldDownloadVideos": {
            "title": "Download Unwatermarked MP4 Videos",
            "type": "boolean",
            "description": "If enabled, downloads clean unwatermarked HD MP4 video files for collected posts directly into your Apify Key-Value Store.",
            "default": false
          },
          "shouldDownloadCovers": {
            "title": "Download Cover Images",
            "type": "boolean",
            "description": "If enabled, downloads high-resolution post cover images and profile avatars/covers into your Apify Key-Value Store.",
            "default": false
          },
          "shouldDownloadSlideshowImages": {
            "title": "Download Slideshow Images",
            "type": "boolean",
            "description": "If enabled, downloads all individual high-resolution images from image-text/carousel posts into your Key-Value Store.",
            "default": false
          },
          "videoKvStoreName": {
            "title": "Named Key-Value Store (Optional)",
            "type": "string",
            "description": "Specify a custom Key-Value Store name to store downloaded MP4s and images across runs. Leave empty to use the default run Key-Value Store.",
            "default": ""
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Optional Apify Proxy settings. Connects directly by default for low latency and high extraction speed."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}