What X-Argus is
X-Argus is a request signature that TikTok’s Android and iOS apps attach to their API calls. It is produced by the security SDK built into the app (ByteDance’s MSSDK, shipped as a native library) and it ties each request to what is in it and who is sending it: the query string, the body, the time, the app build and the device. TikTok’s servers check it before answering.
If you have captured TikTok app traffic with mitmproxy, Charles or HTTP Toolkit, you have seen it: a long base64 string in an x-argus header, next to x-ladon, x-gorgon and x-khronos. Replay the request a minute later, or change one query parameter, and the call stops working. That is X-Argus doing its job.
The full set of TikTok signature headers
X-Argus never travels alone. A signed request from a current TikTok app carries a group of headers that all have to agree with each other and with the request.
| Header | What it is | Form |
|---|---|---|
X-Argus | The main signature: request digests, timestamp, app and SDK version, device identifiers, encrypted | Long base64 string |
X-Ladon | Timestamp, license ID and app ID, encrypted | Base64, about 48 characters |
X-Gorgon | An older digest over the query, body and cookies, combined with the timestamp | 52 hex characters, starting with a version such as 8404 |
X-Khronos | The Unix time in seconds used inside the other signatures | Integer |
X-SS-Stub | MD5 of the request body, for requests that have one | 32 hex characters, uppercase |
X-SS-Req-Ticket | The request time in milliseconds | Integer |
Change the body and X-SS-Stub changes, which changes the body digest inside X-Argus and the X-Gorgon digest. Change the clock and X-Khronos, X-Ladon and X-Argus all move. Everything is computed for one exact request at one moment, which is why signatures cannot be copied from one call to another.
What is inside an X-Argus
Decoded, an X-Argus is a structured record wrapped in several layers of encoding and encryption. The free decoder shows the fields that identify where a header came from:
{
"aid": 1233,
"app_version": "47.5.41",
"sdk_version_str": "v05.03.03-ov-android",
"sdk_version": 168101952,
"platform": "android",
"create_time": 1794440800,
"device_id": "7392011847562901234",
"license_id": 2142840551,
"psk_version": "0",
"call_type": 738,
"query_hash_hex": "8c4a129e0b1f44e1",
"body_hash_hex": "d41d8cd98f00b204"
}| Field | Meaning |
|---|---|
aid | The app ID: 1233 for TikTok, 1340 for TikTok Lite on Android, 1128 for Douyin |
app_version | The exact app release that produced the header |
sdk_version_str | The security SDK build inside that release |
create_time | The signing time, the same value sent as X-Khronos |
device_id | The registered device the request claims to come from |
license_id | The app’s security license, also inside X-Ladon |
query_hash_hex, body_hash_hex | Short digests of the query string and body that bind the signature to this request |
Beyond these, X-Argus carries counters and device signals that the security SDK keeps across a session, such as how many requests it has signed. That is one reason a signer that starts fresh for every request looks different from a real phone.
Generate X-Argus for a request
- 1Build the request
Write the exact method, full URL with its query string, headers and body you are going to send.
- 2Choose the client
Pick
os,app_flavourandapp_version. There are 8 apps and 50+ releases;/v1/apps/versionslists them for free. - 3Sign it
POST it to
/v1/crypto/sign. Optionally pass adevice_idfrom a device you provisioned, so the signature matches a registered device. - 4Send it yourself
Add the returned headers to your request and send it from your own code and proxy, within a few seconds.
POST /v1/crypto/sign · 3 reqs per call| Parameter | Type | Required | What it does |
|---|---|---|---|
os | string | No | android or ios. e.g. android |
app_flavour | string | No | Which app to run as. e.g. tiktok |
app_version | string | No | A release of that app. Defaults to the current default for (os, app_flavour). e.g. 47.5.41 |
method | string | Yes | The HTTP method of your request. e.g. GET |
url | string | Yes | The full request URL, with its query. e.g. https://api16-normal-c-useast1a.tiktokv.com/aweme/v2/feed/?aid=1233&count=6 |
headers | object | No | Headers you will send. |
body | string | No | The body you will send, if any. |
device_id | string | No | Sign as one of your provisioned devices. |
import httpx
from tikultra import TikUltra
client = TikUltra()
url = ("https://api16-normal-c-useast1a.tiktokv.com/aweme/v2/feed/"
"?aid=1233&count=6&device_id=7392011847562901234") # your full query
headers = load_app_headers() # the user-agent, cookies etc. your client already sends
signed = client.crypto.sign(url, method="GET", headers=headers,
os="android", app_flavour="tiktok", app_version="47.5.41")
r = httpx.get(url, headers={**headers, **signed["headers"]},
proxy="http://user:pass@your-proxy:8000")
print(r.status_code, len(r.content)){
"headers": {
"x-argus": "2PxBqzvQe0d+5SWvx45cr+LKRhQN3D0elZBF6hFDcKtTYsKtysoEdsp1TMLEi73Q5TIgcpXxDSuR9L22KPpbm0N8XEGsOXStCg4S",
"x-gorgon": "8404701B00006D2BAB9391444846DFBE6320BCC64DE2A5417306",
"x-khronos": "1794440800",
"x-ladon": "7Rn17g/L4D32jfFAmX5C3KRcWg424sPaP/v+QtSRHAolomQI",
"x-ss-req-ticket": "1794440800412"
},
"client": {
"os": "android",
"app_flavour": "tiktok",
"app_version": "47.5.41",
"aid": 1233
},
"took_ms": 0.24
}Why X-Argus generators on GitHub stop working
Search GitHub for “X-Argus” and you will find several generators. They are good for learning how the signature is built. They are a poor foundation for anything that has to keep running, for reasons that have little to do with the algorithm itself:
- Frozen versions. A generator is written against one app release and one SDK build. TikTok retires old app versions on its servers, so requests signed as an old build start failing or getting thinner data.
- Device mismatch. TikTok checks that the device ID inside X-Argus is a registered device whose history makes sense. A generator with a hard-coded or random device ID signs perfectly valid-looking headers that the server still distrusts.
- Missing session state. The real SDK keeps counters and signals across requests. A stateless generator sends the same “first request” every time.
- Silent failures. Bad signatures rarely produce a clear error. You get empty lists, a
status_codethat is not 0, or a verification challenge, and only notice when your data dries up.
A maintained signer tracks current releases, signs as a provisioned device with a real hardware profile, and keeps that device’s state between requests. That is the difference between headers that are valid and headers that are trusted.
Sign as a consistent device
For steady results, provision a device and sign every request as it. POST /v1/devices/provision creates a device context pinned to one of 84 cities, with a hardware profile from 252 real phone templates; /v1/devices/{id}/bootstrap registers it with TikTok. Pass its device_id to /v1/crypto/sign and the signature, the device registration and the app headers all agree.
The device registration guide covers the device side in depth: what registration sends, what a believable device looks like, and how to keep devices healthy.
Why signed requests still fail
Most problems with signed requests are not the signature itself but a mismatch between what was signed and what was sent. TikTok rarely says which; you get an empty list or a non-zero status_code. Check these first:
| Symptom | Usual cause | Fix |
|---|---|---|
| Works once, then fails on retry | A signature reused for a second request | Sign every request, including retries, right before sending |
| Fails only on POST requests | The body you sent differs from the body you signed | Sign the exact bytes: same JSON key order, spacing and encoding |
| Fails when some parameters are present | The URL was re-encoded after signing | Build and encode the final URL first, then sign that string |
Empty lists, status_code not 0 | Device ID not registered, or registered as a different app or version | Sign as a provisioned, bootstrapped device with matching app headers |
| Errors on every request after a while | The app version was retired | Move to a current release from /v1/apps/versions |
| Random failures under load | Clock skew on your servers | Keep servers on NTP; let the signer set the timestamp |
How researchers capture TikTok traffic
To see real X-Argus headers you have to capture the app’s traffic, and TikTok makes that harder than for most apps. It pins its TLS certificates, so pointing a phone at mitmproxy or Charles shows failed connections rather than requests. Security researchers work around this on a dedicated test device, usually a rooted Android phone or emulator, with tooling that disables certificate pinning for the app. Once traffic flows through the proxy, every API request shows its full signature set, and the free decoders above turn the headers into readable fields.
Use a test device and a test account for this, never your main phone or account, and only inspect traffic from apps and accounts you are allowed to analyze.
Decode captured headers for free
When you are reverse-engineering an app build or debugging your own traffic, decode what the real app sent. The decoders are free on every plan.
| Decoder | Endpoint | What you learn |
|---|---|---|
| X-Argus | /v1/crypto/x-argus/decrypt | App, app version, SDK build, device ID, license ID, signing time, digests |
| X-Ladon | /v1/crypto/x-ladon/decrypt | Timestamp, license ID and app ID |
| X-Gorgon | /v1/crypto/x-gorgon/decrypt | Gorgon version, timestamp and the digest prefix |
| MSSDK payloads | /v1/crypto/mssdk/decrypt | The security SDK’s own report and setting payloads |
| TTEncrypt | /v1/crypto/ttencrypt/decrypt | Encrypted bodies such as device registration |
captured = "2PxBqzvQe0d+5SWvx45cr+LKRhQN3D0elZBF6hFDcKtTYsKtysoEdsp1TMLEi73Q..."
info = client.crypto.x_argus_decrypt(captured)
print(info["app_version"], info["sdk_version_str"], info["device_id"])
print(client.crypto.x_ladon_decrypt("7Rn17g/L4D32jfFAmX5C3KRcWg424sPaP/v+QtSRHAolomQI"))
print(client.crypto.x_gorgon_decrypt("8404701B00006D2BAB9391444846DFBE6320BCC64DE2A5417306"))X-Argus vs X-Bogus and the web signatures
The names get mixed up constantly. X-Bogus, X-Gnarly and msToken belong to TikTok’s website: they are computed in JavaScript in the browser and sent with requests to www.tiktok.com/api/.... X-Argus, X-Ladon and X-Gorgon belong to the mobile apps and are sent to the api*.tiktokv.com hosts. They are different algorithms for different endpoints, and a web signature does nothing for a mobile request. The X-Bogus guide covers the web side.
| Mobile (X-Argus family) | Web (X-Bogus family) | |
|---|---|---|
| Sent by | TikTok Android and iOS apps | tiktok.com in a browser |
| Hosts | api16-normal-*.tiktokv.com and others | www.tiktok.com/api/... |
| Headers | X-Argus, X-Ladon, X-Gorgon, X-Khronos, X-SS-Stub | X-Bogus, X-Gnarly, msToken |
| Computed by | A native security library in the app | Obfuscated JavaScript in the page |
| Data available | Everything the app shows, including Shop, LIVE and account actions | What the website shows; some lists need a login |
Signing API or full API?
If you already run scrapers with your own proxies and parsing, the signing API is the smallest change: keep your code, replace your signer. If you would rather not run devices, proxies and parsers at all, the regular endpoints do all of it and return clean JSON, usually for less per call than signing plus your own proxy traffic.
| Signing API | Full API (e.g. `/v1/video`) | |
|---|---|---|
| You send the request | Yes, from your servers and proxies | No, Tikultra sends it |
| Proxies and IP reputation | Yours | Handled |
| Response | TikTok’s raw response | Clean JSON with cursor and has_more |
| Cost per call | 3 reqs | From 1 req |
| Good for | Custom endpoints, existing scraper fleets, research | Products, pipelines, most use cases |
What signing costs
Each signature costs 3 reqs and signing is on Starter and up. Decoders are free. Signing 100,000 requests a month is 300,000 requests, $199.60 at Scale’s rate. For millions of signatures a month, ask about the high-volume signing add-on.
| Plan | Monthly price | Requests included | Per 1,000 calls | Rate limit |
|---|---|---|---|---|
| Starter | $49 | 40,000 | $3.67 | 20 req/s |
| Growth | $159 | 175,000 | $2.73 | 75 req/s |
| Scale | $499 | 750,000 | $2.00 | 250 req/s |
| Status | Code | Meaning | Retry? |
|---|---|---|---|
| 400 | invalid_request | A parameter is missing or malformed. | No. Fix the request. |
| 401 | unauthorized | The key is missing, wrong or revoked. | No. |
| 402 | out_of_credits | Your balance can’t cover this call. | After a top-up. |
| 403 | forbidden | Your plan doesn’t include this endpoint. | No. Upgrade. |
| 404 | not_found | The video, profile or product doesn’t exist or isn’t visible. | No. |
| 409 | session_expired | A connected account needs to sign in again. | After re-connecting. |
| 429 | rate_limited | Over your plan’s requests per second. | Yes, after retry-after. |
| 502 | upstream_error | TikTok returned an error after our retries. | Yes, with backoff. |
| 504 | upstream_timeout | TikTok didn’t answer in time. | Yes, with backoff. |
Is it legal to generate X-Argus?
Generating a signature is computing a value; what matters legally is what you do with the requests you sign. Reading public data is lawful in many places, but TikTok’s terms restrict automated access, and personal data and copyright laws apply to what you collect. Use signing for public data, research and accounts you own, and get legal advice for your situation.