# Lobsters 主页或对象详情 API (lobsters.profile)

- Canonical page: [https://everyinfra.com/lobsters-api/profile](https://everyinfra.com/lobsters-api/profile?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "lobsters", "action": "profile", "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=lobsters&action=profile

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| username | not declared | yes | not declared | Lobsters 用户名，如 jcs，也收 https://lobste.rs/u/jcs 这样的主页链接；认不出的写法在扣费前被拒。 |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| username | 用户名（@handle）。 |
| url | Lobsters 上的链接：story 的讨论页（trending、latest_posts、tag_posts、post_detail），或用户主页（profile）。 |
| display_name | 显示名，可能与 username 不同。 |
| avatar_url | 头像图片链接。部分平台给的是带尺寸参数的 CDN 链接，可能有时效。 |
| bio | 个人简介，账号自己填写的文本。可能含换行和 emoji。 |
| joined_at | 注册时间（profile），ISO 8601、UTC；用户没公开时没有。 |
| post_count | 发帖数（profile）；用户没公开时没有。 |
| 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": "lobsters",
  "action": "profile",
  "params": {
    "username": "jcs"
  }
}'
```

```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": "lobsters",
        "action": "profile",
        "params": {
            "username": "jcs",
        },
    },
    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": "lobsters",
  "action": "profile",
  "results": {
    "username": …,
    "url": …,
    "display_name": …,
    "avatar_url": …,
    "bio": …,
    "joined_at": …,
    "post_count": …,
    "collected_at": …,
    "platform": …
  },
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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