{
  "openapi": "3.0.1",
  "info": {
    "title": "Douyin Search Scraper: 抖音搜索 Videos, Hashtags & Transcripts",
    "description": "Douyin (抖音) search logged out: posts by keyword, video link, hashtag, related videos or hot topic. One row per post: caption, hashtags, exact likes, comments, shares, saves, author with exact followers, no-watermark video link, music, tags. Transcripts, MP4 download. Misses free.",
    "version": "0.1",
    "x-build-id": "Bpiol1oqmrL9fMbKo"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hyperbach~douyin-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hyperbach-douyin-search-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/hyperbach~douyin-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hyperbach-douyin-search-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/hyperbach~douyin-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hyperbach-douyin-search-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": {
          "keywords": {
            "title": "Search keywords",
            "maxItems": 1000,
            "type": "array",
            "description": "Words to search on Douyin, one a line, in Chinese or any language (美食, iphone, 家常菜). A pasted Douyin search link is read as its keyword. Each keyword is its own search: one that finds nothing never stops the next.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "videoUrls": {
            "title": "Video links or ids",
            "maxItems": 5000,
            "type": "array",
            "description": "Douyin videos to read: a link (douyin.com/video/…, douyin.com/note/…, iesdouyin.com/share/video/…, a v.douyin.com short link), a share text that holds one, or a bare id. Each gives the post from its own page: caption, time, duration, cover, exact likes and comments, the author and the exact followers.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "hashtags": {
            "title": "Hashtags",
            "maxItems": 500,
            "type": "array",
            "description": "Hashtags whose video list to read: a link (douyin.com/hashtag/<id>), its id, or its name with or without # (a name is found through the posts of a search for it).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "relatedTo": {
            "title": "Related videos of",
            "maxItems": 500,
            "type": "array",
            "description": "Video links or ids whose related-videos list to read (the videos Douyin shows next to it).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "hotTopics": {
            "title": "Hot-search topics",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "Read the videos of the top N topics of Douyin's hot-search board (抖音热榜) now, each up to the per-search cap. 0 = off.",
            "default": 0
          },
          "maxResultsPerQuery": {
            "title": "Max posts per search or list",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "The most posts each keyword, hashtag, related list or hot topic delivers. Douyin serves a search 8–16 posts a load and its own depth moves by the hour (10 to 45 distinct posts a keyword on our test runs of builds 0.1.6–0.1.10, 2026-11-14): a search that stops short says so on its row (TRUNCATED, with the count), never padded. 0 = as many as the source serves, up to 500.",
            "default": 20
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "general",
              "most_liked",
              "latest"
            ],
            "type": "string",
            "description": "Douyin's own sort of a keyword search. The Actor checks the order on each answer's posts and sorts the answer itself where Douyin did not; the keyword's row says whether Douyin honoured it.",
            "default": "general"
          },
          "publishTime": {
            "title": "Published within",
            "enum": [
              "unlimited",
              "one_day",
              "one_week",
              "half_year"
            ],
            "type": "string",
            "description": "Douyin's publish-time filter on a keyword search; every post outside the window is left out (free) whether Douyin applied the filter or not.",
            "default": "unlimited"
          },
          "duration": {
            "title": "Video length",
            "enum": [
              "unlimited",
              "under_1m",
              "one_to_five",
              "over_5m"
            ],
            "type": "string",
            "description": "Douyin's duration filter on a keyword search; every post outside the range is left out (free). Image notes have no length and are left out by this filter.",
            "default": "unlimited"
          },
          "contentType": {
            "title": "Content type",
            "enum": [
              "all",
              "videos",
              "image_notes"
            ],
            "type": "string",
            "description": "Videos, image notes (图文) or both. Image notes only: the keyword is searched as '<keyword> 图文', Douyin's own door to notes.",
            "default": "all"
          },
          "includeAds": {
            "title": "Include ads",
            "type": "boolean",
            "description": "Deliver the promoted posts of a search too, flagged is_ad true. Off: only organic posts (the ads' tracking links are never on a row).",
            "default": false
          },
          "authorFollowers": {
            "title": "Exact author followers",
            "type": "boolean",
            "description": "Fill author_followers with the exact count from the video's own page, one page per distinct author of the run (free). Off: faster, and author_followers stays null on search, hashtag and related posts.",
            "default": true
          },
          "authorDetails": {
            "title": "Author details",
            "type": "boolean",
            "description": "Add the author's exact post count, following count and total likes (one small call per distinct author, free).",
            "default": false
          },
          "translateTo": {
            "title": "Translate captions into",
            "pattern": "^([A-Za-z]{2,3}(-[A-Za-z0-9]{2,8})*)?$",
            "type": "string",
            "description": "A language code (en, de, ja): a machine translation of each caption by Douyin's own translator, next to the original (translation, translation_note). Empty = no translation. Free.",
            "default": ""
          },
          "transcript": {
            "title": "Transcript",
            "type": "boolean",
            "description": "Transcribe each video's speech (its first 3 minutes on a longer video) with one speech model on the audio track of its smallest rendition: the text, with no word timing. Charged per started minute ($0.008 a minute, at most 3 a video); a video with no speech, an image note and a failed transcript are free.",
            "default": false
          },
          "shouldDownloadVideos": {
            "title": "Store the video files",
            "type": "boolean",
            "description": "Save each video's MP4 (the play link's rendition, no watermark; the smallest rendition under the 80 MB cap when it is larger) to the run's key-value store; video_file_url is the stored file's link, which does not expire. Charged per video file stored.",
            "default": false
          },
          "shouldDownloadCovers": {
            "title": "Store the covers",
            "type": "boolean",
            "description": "Save each post's cover image to the store (cover_file_url). Free.",
            "default": false
          },
          "shouldDownloadSlideshowImages": {
            "title": "Store the image-note images",
            "type": "boolean",
            "description": "Save every image of an image note to the store (image_file_urls). Free.",
            "default": false
          },
          "videoKvStoreName": {
            "title": "Store name",
            "pattern": "^([a-zA-Z0-9-]{1,63})?$",
            "type": "string",
            "description": "A named key-value store for the files (kept after the run's own store expires); empty = the run's store.",
            "default": ""
          },
          "maxItems": {
            "title": "Max posts (whole run)",
            "minimum": 0,
            "maximum": 10000000,
            "type": "integer",
            "description": "The most charged posts of the whole run; 0 = no cap beyond your charge limit. The input rows are free and not counted.",
            "default": 0
          },
          "feedback": {
            "title": "Feedback to the maintainers",
            "maxLength": 2000,
            "type": "string",
            "description": "A note to the people who maintain this Actor: what you needed and did not get. For example a missing field, a wrong or empty result, or the Actor you switch from or to, and why. The run does not read it: the rows and the charges stay the same. A person reads every note."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}