# 抖音 直播场次详情 API (douyin.live_session)

- Canonical page: [https://everyinfra.com/douyin-api/live_session](https://everyinfra.com/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 | 直播场次 ID，纯数字，取自 live_room、user_live 返回行的 live_id；每开一次播换一个，不是直播间链接里的那串数字。这一场结束后也能查。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| room_id | 直播间 ID（live_room、live_session、user_live），即 live.douyin.com/<room_id> 里的那串数字。 |
| live_id | 这一场直播的 ID（live_room、live_session、user_live），同一个直播间每开播一次都不同；传给 live_session、live_viewers 的 live_id。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| is_live | 账号（profile、creator_search）或直播间（live_room）在采集时是否正在直播；属于时点状态。 |
| url | 该记录在原平台上的可访问链接。 |
| cover_image_url | 封面图链接：search / user_posts / posts_batch / related_posts / mix_posts / music_posts / media_links 是作品封面，music_search / music_detail 是音乐封面，billboard_topic_hot 是话题配图，user_mixes 是合集封面，live_room 是直播间封面；带签名的会过期。 |
| author_name | 作者昵称（显示名）。 |
| author_id | 作者在原平台的唯一 ID。 |
| author_douyin_id | 作者抖音号。 |
| author_avatar_url | 作者头像链接：search / user_posts / video / posts_batch / related_posts / mix_posts / music_posts 行上是博主的，live_room 上是主播的，comments 行上是评论者的。 |
| author_is_verified | 作者是否认证（search / user_posts / video / posts_batch / related_posts / mix_posts / music_posts 行上；live_room 上是主播是否认证；comments 行上是评论者是否认证）。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| viewer_count | 直播间当前在看人数（live_room、live_session、user_live），时点数据。 |
| started_at | 这场直播开播时间（live_room、live_session、user_live，ISO 8601，UTC）；抖音没给开播时间时没有这个键。 |
| streams | 直播拉流地址（live_room、live_session、user_live）：[{quality（清晰度名）, format（如 flv、hls）, url}]；地址带签名、会过期，不在播时没有。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |
| author_uid | 作者（评论里是评论者）的数字用户 ID；author_id 是 secUid，两者是同一个人的两种 ID。 |
| author_follower_count | 作者粉丝数。null 表示不公开。 |
| is_paid | 是否付费：series_feed、series_detail、user_series 是这部短剧有没有付费集；series_posts 是这一集要不要付费（付费集的视频链接是加密的，下载后无法播放）；live_session、user_live 是这一场是不是付费直播。 |

## 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
