# Lobsters Trending API (lobsters.trending)

- Canonical page: [https://everyinfra.com/en/lobsters-api/trending](https://everyinfra.com/en/lobsters-api/trending?utm_medium=ai_doc&utm_campaign=page_md)
- Endpoint: POST https://api.everyinfra.com/api/v1/social with {"platform": "lobsters", "action": "trending", "params": {...}}
- Price: $0.000792 per call ($0.79 per 1,000 requests); failed calls and empty results are not charged
- Returns: list, one page of 25 per call (limit is ignored; pass the top-level next_page_token from the response as page_token for the next page)
- Pagination: pass next_page_token back as page_token for the next page, other params unchanged; one call per page, tokens last 24 hours
- 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=trending

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| page_token | not declared | no | not declared | Page token for `trending`, `latest_posts` and `tag_posts`. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, keeping `tag` the same on `tag_posts`. Pages hold up to 25 stories and each is one call; the last page has no `next_page_token`. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | Short code of the story (such as 5kmyma) on story rows; on `comments`, the comment's short code. |
| url | Link on Lobsters: the story's discussion page, or on `profile` the user's profile page. |
| title | Title. null when the platform has no titles (for example text-only posts). |
| text | The story's own text, absent for stories that are only a link; on `comments`, the comment as plain text. |
| upvote_count | Net score, upvotes minus downvotes; the site does not show the two separately. |
| comment_count | Number of comments on the story. |
| author_username | Author's username (@handle), usually usable in URLs. |
| tags | Array of tags. An empty array, not null, when there are none. |
| links | The links submitted with the story. |
| posted_at | Publish time in ISO 8601, UTC (for example 2026-08-07T12:34:56+00:00). Non-standard strings from the platform are passed through as is, so parse defensively. null means the platform does not disclose it. |
| rank | Position of the row in this response, from 1. |
| collected_at | When this data was collected (ISO 8601, UTC). |
| platform | Source platform identifier, the same as platform in the request (for example 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": "trending",
  "params": {}
}'
```

```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": "trending",
        "params": {},
    },
    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": "trending",
  "results": [
    {
      "id": …,
      "url": …,
      "title": …,
      "text": …,
      "upvote_count": …,
      "comment_count": …,
      "author_username": …,
      "tags": …,
      "links": …,
      "posted_at": …,
      "rank": …,
      "collected_at": …,
      "platform": …
    }
  ],
  "next_page_token": …,
  "pagination": { … },
  "count": …,
  "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
