# Odysee 用户内容 API (odysee.user_posts)

- Canonical page: [https://everyinfra.com/odysee-api/user_posts](https://everyinfra.com/odysee-api/user_posts?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "odysee", "action": "user_posts", "params": {...}}
- Price: $0.032 per call ($32 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 20, max 200 per call
- Mode: sync; add "mode": "async" for slow tasks

Odysee 用户内容接口按频道名 `username` 读取一个频道发布的内容，每行带标题 `title`、简介 `description`、链接 `url`、缩略图、时长、浏览数、点赞数、标签 `tags` 和发布时间。它回答「这个频道发了什么、哪些更受关注」，适合监测一个频道的更新、盘点频道的内容类型，或者对比几个频道的表现。

`username` 虽然叫用户名，填的是 Odysee 频道名，可以写 name、@name，也可以写含 @name 的频道链接。要看最新发布，`sort` 用 `newest`；`popular` 看的是和支持金额相关的指标，不要当播放量排行。

## Health

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| username | not declared | yes | not declared | Odysee 频道名，可写 name、@name 或含 @name 的频道链接；返回该频道发布的内容。 |
| sort | enum: newest / popular | no | not declared | 频道内容排序：newest 按发布时间，popular 按内容支持金额相关指标；popular 不等于播放量或点赞量最高。 |
| limit | integer (1–200) | no | 20 | 这次调用最多返回的条数，整数，1–200；不传按默认值，实际返回可能少于这个数。超过上限会在扣费前返回 422。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 该记录在原平台上的唯一标识。仅在同一平台内唯一，跨平台可能重复。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| description | 简介或描述，通常比 text 短。 |
| channel_name | 频道名。 |
| channel_id | 频道 ID。 |
| channel_url | 频道链接。 |
| url | 该记录在原平台上的可访问链接。 |
| thumbnail_url | 缩略图链接，分辨率低于 image_url。 |
| duration_seconds | 时长，单位秒。非视频/音频内容为 null。 |
| duration_sec | platform-native meaning |
| view_count | 浏览/播放数。null 表示不公开，不等于 0。 |
| like_count | 点赞数。null 表示该平台或该接口不公开此数据，不等于 0。 |
| published_at | 发布时间。 |
| media_type | 媒体类型。 |
| languages | 内容语言。 |
| tags | 标签数组。无标签时为空数组，不是 null。 |
| platform | 数据来源平台标识，与请求里的 platform 一致（如 xiaohongshu、tiktok）。 |

## 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": "odysee",
  "action": "user_posts",
  "params": {
    "username": "@lbry"
  }
}'
```

```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": "odysee",
        "action": "user_posts",
        "params": {
            "username": "@lbry",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

Real response to the example request above, captured 2026-09-26T08:56:04Z. `results` and `count` are real with personal information (names, handles, avatars, profile links, contact details) removed; the list keeps the first 2 of 20. `id`, `billing` and `quota` differ on every call, so only their shape is shown.

```text
{
  "id": "req_…",
  "platform": "odysee",
  "action": "user_posts",
  "results": [
    {
      "id": "7aa2220e2d1d5942b90240dec25e925b11a8ea04",
      "title": "Odysee LBRY Usage Agreement",
      "channel_name": "@lbry",
      "channel_url": "https://odysee.com/@•••",
      "url": "https://odysee.com/@lbry/odyseelbryagreement",
      "thumbnail_url": "https://thumbs.odycdn.com/b18ae7090861d94d6c7081969e970348.webp",
      "published_at": "2023-10-19T20:01:10+00:00",
      "media_type": "application/pdf",
      "languages": [
        "en"
      ],
      "platform": "odysee"
    },
    {
      "id": "d434ed74a2a4874358eca22702dd25289d8fc1cd",
      "title": "The End of LBRY Inc.",
      "channel_name": "@lbry",
      "channel_url": "https://odysee.com/@•••",
      "url": "https://odysee.com/@lbry/theendoflbryinc",
      "thumbnail_url": "https://thumbs.odycdn.com/e9740b8e51f33735964d1cccbc53b70d.webp",
      "published_at": "2023-10-19T16:44:47+00:00",
      "media_type": "text/markdown",
      "languages": [
        "en"
      ],
      "tags": [
        "lbry"
      ],
      "platform": "odysee"
    }
  ],
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## FAQ

### Odysee 的 `username` 应该怎么写？

填 Odysee 的频道名，写法有三种：name、@name，或者含 @name 的频道链接，示例里用的是 @lbry。返回的是该频道发布的内容。

### 怎么看频道最近有没有更新？

`sort` 传 `newest`，结果按发布时间排，第一行的 `published_at` 就是最近一条的发布时间。`duration_seconds` 是时长，单位秒，非视频或音频内容为 null。`media_type` 标出每条的媒体类型。

### 它和标签内容接口怎么配合？

标签内容接口按话题找内容，需要标签名；这里按频道取内容，需要频道名。`sort` 和返回字段两边一样。先在标签那页发现频道，再来这里读这个频道发布的内容。

## Also

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