# Douyin Broadcast details API (douyin.live_session)

- Canonical page: [https://everyinfra.com/en/douyin-api/live_session](https://everyinfra.com/en/douyin-api/live_session?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "douyin", "action": "live_session", "params": {...}}
- Price: $0.000792 per call ($0.79 per 1,000 requests); failed calls and empty results are not charged
- Returns: single object
- Mode: sync; add "mode": "async" for slow tasks

## Health

- Live health (24h percent, hourly and daily trends): https://api.everyinfra.com/api/v1/social/availability?platform=douyin&action=live_session

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| live_id | not declared | yes | not declared | The numeric ID of one broadcast, from the `live_id` of `live_room` or `user_live` rows. It changes each time the host goes live and is not the number in the live-room link. You can still look up a broadcast after it ends. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| room_id | Live room ID (`live_room`): the number in `live.douyin.com/<room_id>`. |
| live_id | ID of this live session (`live_room`); the same room gets a new one each time it goes live. |
| title | Title. null when the platform has no titles (for example text-only posts). |
| is_live | Whether the account (profile, creator_search) or the room (live_room) was live at the moment of the call; a point-in-time state. |
| url | Link to the record on the platform. |
| cover_image_url | Cover image URL: the cover of a video or image post on search, user_posts, posts_batch, related_posts, mix_posts, music_posts and media_links rows; the music cover on music_search and music_detail; the topic image on billboard_topic_hot; the collection cover on user_mixes; the room cover on live_room. Signed links expire. |
| author_name | Author's display name. |
| author_id | Author's unique ID on the platform. |
| author_douyin_id | The author's Douyin ID. |
| author_avatar_url | Author avatar image URL: the creator on search / user_posts / video / posts_batch / related_posts / mix_posts / music_posts rows, the host on live_room, the commenter on comments rows. |
| author_is_verified | Whether the author is verified (search / user_posts / video / posts_batch / related_posts / mix_posts / music_posts rows; on live_room, whether the host is; on comments rows, whether the commenter is). |
| like_count | Likes. null means the platform or this capability does not disclose it; it is not 0. |
| viewer_count | People watching the room now (`live_room`); a point-in-time figure. |
| started_at | When the live session started (`live_room`, ISO 8601, UTC); absent when not given. |
| streams | Live pull URLs (`live_room`): [{quality, format (such as flv, hls), url}]. The URLs are signed and expire; absent when the room is not live. |
| platform | Source platform identifier, the same as platform in the request (for example xiaohongshu, tiktok). |
| author_uid | Numeric user ID of the author (on comments, of the commenter). author_id is the secUid; both identify the same person. |
| author_follower_count | Author's follower count. null means not disclosed. |
| is_paid | platform-native meaning |

## Example

```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": "live_session",
  "params": {
    "live_id": "7710380709042457398"
  }
}'
```

```python
import os
import requests

response = requests.post(
    "https://api.everyinfra.com/api/v1/social",
    headers={"Authorization": f"Bearer {os.environ['EVERYINFRA_API_KEY']}"},
    json={
        "platform": "douyin",
        "action": "live_session",
        "params": {
            "live_id": "7710380709042457398",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-11-21T07:17:52Z. `results` and `count` are real 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.

```text
{
  "id": "req_…",
  "platform": "douyin",
  "action": "live_session",
  "results": {
    "room_id": "569635859833",
    "live_id": "7710380709042457398",
    "title": "GTA6全流程直播！",
    "is_live": false,
    "url": "https://live.douyin.com/569635859833",
    "cover_image_url": "https://p3-webcast-sign.douyinpic.com/webcast-cover/1ccc80989283734120840ef99ad9b8bc.jpg~tplv-qz53dukwul-common-resize:0:0.image?biz_tag=aweme_webcast&from=webcast.room.pack&l=20261121151818BE5B5186EDE8EE71C48C&lk3s=39e7556e&s=reflow_room_info&sc=webcast_cover&x-expires=179783749…",
    "author_name": "查•••A",
    "author_id": "•••",
    "author_douyin_id": "•••",
    "author_avatar_url": "https://p3.douyinpic.com/•••",
    "author_is_verified": false,
    "like_count": 68406,
    "platform": "douyin",
    "author_uid": "•••",
    "author_follower_count": 516344,
    "is_paid": false
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

- Capability catalog (no key): https://api.everyinfra.com/api/v1/social/catalog?platform=douyin
- OpenAPI: https://everyinfra.com/openapi.json · Agents guide: https://everyinfra.com/agents.md
