POST

API health

24h health
Normal
  • Healthy / normal
  • Available
  • Limited
  • Mostly down
Normal

Last 24 hours

Last 30 days

Break down a Douyin creator's followers by device price band, gender, age or province, with each bucket's share and its TGI index. Shares are decimals between 0 and 1, not percentages, and the buckets are not buyer records or individual people.

Send POST https://api.everyinfra.com/api/v1/social with platform set to douyin and action set to creator_audience. Price $0.56 per 1,000 requests ($0.000556 per call). Failed calls and empty results are not charged. Synchronous. For slow jobs add "mode": "async" to the body, take the job_id and poll.

Douyin Creator audience reads who follows one creator, given the creator's user_id, along one dimension: device price band (the default), gender, age or province. Each bucket in audience_distribution carries the share of followers it holds, and audience_tgi shows how strongly that group is represented compared with the Douyin average. Brands and agencies use it to check that a creator's followers match the customers they want to reach before they book a campaign.

Shares are decimals from 0 to 1 rather than percentages, so 0.42 means 42 percent of followers; they are neither follower counts nor shares of buyers. TGI sits on a separate scale and is the number to read for fit, since a bucket with a modest share can still be strongly over-represented. For user_id, pass the creator's secUid, the long string that usually begins with MS4w, or the whole profile link that contains it, as the example does.

AI prompt

#
Please help me write a data collection script with the EveryInfra Douyin Creator audience endpoint (douyin/creator_audience).

How the endpoint works:
- Request: POST https://api.everyinfra.com/api/v1/social with the header Authorization: Bearer <API key>. Read the key from the EVERYINFRA_API_KEY environment variable and never hard-code it.
- In the request body, set platform to douyin and action to creator_audience, and put the parameters inside params.
- Required parameters:
  - user_id: The Douyin creator's secUid, usually beginning with MS4w, used to read the available audience distribution and TGI signals. Use user_id from creator discovery, not a nickname, short Douyin ID, or buyer identifier.
- Optional parameters:
  - dimension: Selects the creator_audience follower-segment view: device_price_band (default), gender, age, or province. Distribution values are raw share decimals from 0 to 1, not percentages; TGI remains a separate index. (allowed: age / device_price_band / gender / province)
- Returns one object. Main fields: user_id, audience_distribution, audience_tgi, dimension_code.
- Example request body:
{
  "platform": "douyin",
  "action": "creator_audience",
  "params": {
    "user_id": "https://www.douyin.com/user/MS4wLjABAAAAk1tZ-L085zZf2yW_H5dnVFZWyk8Rt8v4RAvf9KhTyPoVdMDxTs7Q_rvgTJGWXezS"
  }
}
- Price: $0.56 per 1,000 requests; failed and empty results are not charged.
- For dozens or hundreds of targets, add "mode": "async" to the body: you get a job_id at once and poll GET https://api.everyinfra.com/api/v1/jobs/{job_id} for the result.
- On 422, fix the request using the suggested parameter names and allowed values in the error; on 429 or 503, wait for Retry-After and try again.

Before writing code, ask me which targets I need, how many, which fields, and what output format I want; then confirm the plan and the rough cost with me.

Request parameters

#
NameInTypeRequiredDefaultDescription
AuthorizationheaderstringYes-Bearer followed by your API key. Create it in the console; never put it in a URL or a code repository.
platformbodystringYesdouyinPlatform identifier, fixed value.
actionbodystringYescreator_audienceCapability identifier, fixed value.
user_idbody.paramsstringYes-The Douyin creator's secUid, usually beginning with MS4w, used to read the available audience distribution and TGI signals. Use user_id from creator discovery, not a nickname, short Douyin ID, or buyer identifier.
dimensionbody.paramsstring (enum)No-Selects the creator_audience follower-segment view: device_price_band (default), gender, age, or province. Distribution values are raw share decimals from 0 to 1, not percentages; TGI remains a separate index. This parameter does not request individual follower records or buyer data.Allowed valuesagedevice_price_bandgenderprovince

Code samples

#
bash
curl -X POST 'https://api.everyinfra.com/api/v1/social' \
  -H "Authorization: Bearer $EVERYINFRA_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "platform": "douyin",
  "action": "creator_audience",
  "params": {
    "user_id": "https://www.douyin.com/user/MS4wLjABAAAAk1tZ-L085zZf2yW_H5dnVFZWyk8Rt8v4RAvf9KhTyPoVdMDxTs7Q_rvgTJGWXezS"
  }
}'

OpenAPI definition (JSON)Samples read the key from the EVERYINFRA_API_KEY environment variable; copied code never contains your key.

Response example

#
Captured October 24, 2026 at 18:28 (UTC) by calling this API with the parameters in the code sample above. results and count are that call's real response with personal information (names, handles, avatars, profile links, contact details) removed. id, billing and quota differ on every call, so only their shape is shown.
json
{  "id": "req_…",  "platform": "douyin",  "action": "creator_audience",  "results": {    "user_id": "https://www.douyin.com/user/MS4wLjABAAAAk1tZ-L085zZf2yW_H5dnVFZWyk8Rt8v4RAvf9KhTyPoVdMDxTs7Q_rvgTJGWXezS",    "audience_distribution": [      {        "label": "2000~2999",        "value": 0.21259893463305227      },      {        "label": "5000~5999",        "value": 0.16836679678233302      },      {        "label": "1000~1999",        "value": 0.14285406198106493      }    ],    "audience_tgi": [      {        "label": "3000~3999",        "value": 121.50162156159308      },      {        "label": "7000~7999",        "value": 107.46785052961428      },      {        "label": "0~999",        "value": 34.04478663045582      }    ],    "dimension_code": "device_price_band",    "platform": "douyin"  },  "billing": {    "charged": …,    "charged_usd": …,    "balance_after_usd": …,    …  },  "quota": { … }}

Response fields

#

Business data is in results. The table lists the fields a record can contain; values the platform does not show are never made up.

FieldMeaning
user_idUser's unique ID on the platform.
audience_distributionKeeps the platform's own meaning
audience_tgiKeeps the platform's own meaning
dimension_codeKeeps the platform's own meaning
platformSource platform identifier, the same as platform in the request (for example xiaohongshu, tiktok).

FAQ

#

What is the device price band?

#

device_price_band, the default dimension, groups a creator's followers by the price range of the phones they use, which helps when you match a product's price level with a creator's audience. As with the other dimensions, each bucket comes back as a share from 0 to 1 with its own TGI.

What does audience_tgi add to the share?

#

TGI compares each bucket with the Douyin platform average and is measured independently of the share. A group can be a small slice of followers yet have a high TGI, meaning the creator draws that group more than Douyin does overall. Use the share to size a group and TGI to judge how distinctive the audience is.

Can I get all four dimensions in one call?

#

No. Each call returns one dimension, chosen with dimension: device_price_band when you leave it out, or gender, age or province. Call once per dimension you need. dimension_code in each response records which one it holds, so results from separate calls stay labeled when you store them together.

Errors and billing

#
401
Missing or invalid key.
402
Insufficient balance. Top up first.
422
Invalid parameter name or value. Fix it using the suggestions in the error. No charge.
429
Per-minute request limit reached. Wait for Retry-After, then try again.
503
Could not complete. The held charge is returned to your balance. If the outcome is unknown, verify it before you retry.
200 empty
No data. No charge.

Errors

Our own visit stats are always on. Google Analytics loads only if you choose “Allow analytics”. Privacy policy