# Gab Posts by user API (gab.user_posts)

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

## Parameters

| name | type | required | default | description |
|---|---|---|---|---|
| username | not declared | yes | not declared | The known Gab account whose timeline posts should be read; this is not a people-search term. |
| limit | integer (1–100) | no | 20 | The most rows to return in this call, an integer from 1 to 100. The default applies when you leave it out, and a call can return fewer rows. Larger values return 422 before any charge. |

## Response fields (items in `results`)

| field | meaning |
|---|---|
| id | The record's unique ID on the platform. Unique only within one platform; IDs can repeat across platforms. |
| url | Link to the record on the platform. |
| text | Body text with HTML removed, returned in full and never cut short (on a few platforms the list results themselves carry only an excerpt; the platform's field notes say so). |
| author_username | Author's username (@handle), usually usable in URLs. |
| author_name | Author's display name. |
| like_count | Likes. null means the platform or this capability does not disclose it; it is not 0. |
| repost_count | Reposts (as distinct from quote posts). null means not disclosed. |
| reply_count | Replies, usually replies to a comment. null means not disclosed. |
| media_urls | platform-native meaning |
| 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. |
| 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": "gab",
  "action": "user_posts",
  "params": {
    "username": "a"
  }
}'
```

```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": "gab",
        "action": "user_posts",
        "params": {
            "username": "a",
        },
    },
    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": "gab",
  "action": "user_posts",
  "results": [
    {
      "id": "•••",
      "url": "https://gab.com/a/posts/117335894018810516",
      "text": "The rise of AI is the biggest Gospel opportunity in our lifetimes for this reason btw. When your identity is in Christ you don't worry about such things.",
      "author_username": "•••",
      "author_name": "•••",
      "like_count": 21,
      "repost_count": 4,
      "reply_count": 7,
      "media_urls": [
        "https://m3.gab.com/media_attachments/6e/1a/8a/6e1a8a522b253d8f0bfb4fd3cb1e8d52.jpg"
      ],
      "posted_at": "2026-09-26T06:20:56.315000+00:00",
      "platform": "gab"
    },
    {
      "id": "•••",
      "url": "https://gab.com/a/posts/117334988995901537",
      "text": "imagine. You don’t need to worship the technology, but you also don’t need to fear it either. You need to understand it and put it to work in service of things that matter. Be humble enough to learn. Be disciplined enough to practice. The promise and vision that we have for AI is…",
      "author_username": "•••",
      "author_name": "•••",
      "like_count": 58,
      "repost_count": 7,
      "reply_count": 11,
      "posted_at": "2026-09-26T02:30:46.751000+00:00",
      "platform": "gab"
    }
  ],
  "count": 20,
  "billing": {
    "charged": …,
    "charged_usd": …,
    "balance_after_usd": …,
    …
  },
  "quota": { … }
}
```

## Also

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