What is a_bogus on Douyin and do I need to generate it?

a_bogus is a signature parameter the Douyin web client adds to its API requests, along with the older X-Bogus. Requests without a valid value are rejected. You only need to generate it if you call Douyin's web API yourself; through a data API you send a normal request and never touch it. XTikAPI reads Douyin with 34 endpoints from $0.002 a call. A failed call is not charged, and a verified account gets $0.5 of trial balance.

Updated 2026-11-18

How people generate it today

Open-source projects keep their own signers. MediaCrawler runs Douyin's JavaScript in a Playwright browser to produce the value. Evil0ctal's Douyin_TikTok_Download_API ships a standalone implementation and has had to update its a_bogus algorithm in later releases, which tells you Douyin changes it.

That is the real cost: a signer works until the next change, and then your pipeline stops until someone updates it.

Without a signer

douyin.videos.search takes a keyword; douyin.videos.detail and douyin.comments.list take the video's aweme_id as id. No signature, cookie or device of yours is involved.

Why XTikAPI

  • One API key for Douyin and every other supported platform, with the same JSON shape: data holds the result, meta says what was billed.
  • A failed call or a timeout is not charged; the response says charged: false.
  • X-Max-Price caps what one call may cost, and the same Idempotency-Key within 24 hours is never billed twice.
  • Prepaid balance, no subscription. Balance never expires, and unused top-up money can be refunded within 14 days.

Endpoints

More about Douyin

Sources