# LowEndTalk 分类下的讨论 API (lowendtalk.category_posts)

- Canonical page: [https://everyinfra.com/lowendtalk-api/category_posts](https://everyinfra.com/lowendtalk-api/category_posts?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "lowendtalk", "action": "category_posts", "params": {...}}
- Price: $0.000792 per call ($0.79 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, default 20, max 100 per call (larger values are capped)
- 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=lowendtalk&action=category_posts

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| category | not declared | yes | not declared | LowEndTalk 分类的 slug，如 offers、general；大小写都收。 |
| limit | integer (1–100) | no | 20 | 这次调用最多返回的条数，整数，1–100；不传按默认值，实际返回可能少于这个数。超过上限照收，按上限返回。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | 编号：讨论编号（latest_posts、category_posts、post_detail），或回复编号（comments），一串数字。 |
| url | 该记录在原平台上的可访问链接。 |
| title | 标题。平台无标题概念时（如纯文本帖）为 null。 |
| text | 首帖全文（latest_posts、category_posts、post_detail）或回复全文（comments）的纯文本。 |
| text_html | 同一段内容带格式的 HTML 原文，图片、链接都在里面。 |
| posted_at | 发布时间，ISO 8601 格式、UTC 时区（如 2026-08-07T12:34:56+00:00）。平台只给非标准字符串时原样透传，解析前建议做容错。null 表示平台未公开。 |
| author_username | 作者用户名（@handle），通常可用于拼 URL。 |
| author_avatar_url | 作者头像图片链接（多数平台带签名、会过期）。 |
| category | 分类名，如 Offers；post_detail 有时没有这个字段。 |
| rank | 这一行在这一次结果里的位置，从 1 开始（latest_posts、category_posts、comments）。 |
| collected_at | 这条数据的抓取时刻（ISO 8601，UTC）。 |
| 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": "lowendtalk",
  "action": "category_posts",
  "params": {
    "category": "offers"
  }
}'
```

```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": "lowendtalk",
        "action": "category_posts",
        "params": {
            "category": "offers",
        },
    },
    timeout=120,
)
print(response.status_code)
print(response.json())
```

## Response example

No real sample for these example parameters yet: structure only, every value is a placeholder (…).

```text
{
  "id": "req_…",
  "platform": "lowendtalk",
  "action": "category_posts",
  "results": [
    {
      "id": …,
      "url": …,
      "title": …,
      "text": …,
      "text_html": …,
      "posted_at": …,
      "author_username": …,
      "author_avatar_url": …,
      "category": …,
      "rank": …,
      "collected_at": …,
      "platform": …
    }
  ],
  "count": …,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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