# Community posts API

2 endpoints on 2 platforms return the same Post object. The posts of a community. A call costs from $0.0003 to $0.0060, each endpoint at its own price; a failed call is free.

## Community posts on each platform

| Platform | Endpoint | Path | A page | Returns | Price |
| --- | --- | --- | --- | --- | --- |
| X (Twitter) | [X community posts](https://dataxapi.com/apis/x/communities/posts/list.md) | `GET /v1/x/communities/posts/list` | 20 | Post list | $0.0003 / item |
| Reddit | [Reddit community posts](https://dataxapi.com/apis/reddit/subreddits/posts/list.md) | `GET /v1/reddit/subreddits/posts/list` | 25 | Post list | $0.0020 / call |

Prices are the prices in force. A call that fails, or whose result is uncertain, costs nothing.

## The Post object

Every endpoint above returns these fields, with the same names and types.

| Field | Type | Description |
| --- | --- | --- |
| `id` | text | ID; pass it unchanged to the get endpoint |
| `url` | link | Link that opens the post |
| `type` | text | Content format |
| `title` | text | Title |
| `text` | text | Body text |
| `lang` | text | Language of the text |
| `published_at` | time | When it was published |
| `author.id` | text | Author's account ID |
| `author.username` | text | Author's handle |
| `author.name` | text | Author's display name |
| `author.avatar_url` | link | Author's avatar |
| `author.verified` | yes/no | Whether the author is verified |
| `author.followers` | integer | Author's follower count |
| `metrics.likes` | integer | Likes |
| `metrics.comments` | integer | Comments |
| `metrics.shares` | integer | Shares |
| `metrics.favorites` | integer | Saves |
| `metrics.views` | integer | Views |
| `metrics.reposts` | integer | Reposts |
| `images` | list of link | Image addresses |
| `hashtags` | list of text | Hashtags, without the # |
| `mentions[].id` | text | Account ID |
| `mentions[].username` | text | Handle |
| `mentions[].name` | text | Display name |
| `is_pinned` | yes/no | Whether the author pinned it |
| `post_id` | text | ID of the thread's root post when this is a reply; otherwise null |
| `parent_id` | text | ID of the item it replies to directly; otherwise null |
| `root_id` | text | ID of the first-level reply its thread hangs under |

[The object's own page →](https://dataxapi.com/docs/objects/post/)

### Which platform fills which field

A field an endpoint cannot give is listed in `meta.unavailable` on every answer, so a gap is never a surprise.

| Platform | `type` | `title` | `lang` | `author.name` | `author.avatar_url` | `author.verified` | `author.followers` | `metrics.likes` | `metrics.shares` | `metrics.favorites` | `metrics.views` | `metrics.reposts` | `images` | `hashtags` | `mentions[].id` | `mentions[].username` | `mentions[].name` | `is_pinned` | `post_id` | `parent_id` | `root_id` |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| X (Twitter) | available | not available | available | available | available | not available | available | available | not available | available | available | available | available | available | available | available | available | not available | available | available | not available |
| Reddit | not available | available | not available | not available | not available | not available | not available | not available | not available | not available | not available | not available | not available | not available | not available | not available | not available | not available | not available | not available | not available |

## The same call on two platforms

Same parameter names, same paging, same answer. Only the path changes.

```bash
# X (Twitter)
curl -G "https://api.dataxapi.com/v1/x/communities/posts/list" \
  --data-urlencode "id=1539231166569410560" \
  -H "Authorization: Bearer $DATAXAPI_API_KEY"

# Reddit: the same call on its own path
curl -G "https://api.dataxapi.com/v1/reddit/subreddits/posts/list" \
  --data-urlencode "id=nasa" \
  -H "Authorization: Bearer $DATAXAPI_API_KEY"
```

### 200 · application/json

X community posts: From a response recorded 2026-10-12 18:46 UTC. Names, text and IDs are examples, and so are the links: none is the recorded one (the page shows no one's personal data); the figures are as recorded. Long lists are cut. The request ID, cursor and balance are made up.

```jsonc
{
  "code": "ok",
  "request_id": "5a160ea8-e93a-4816-a859-218a5357be6d",
  "data": {
    "items": [
      {
        "id": "1829806902753096374",
        "url": "https://x.com/i/status/1829806902753096374",
        "type": "text",
        "text": "Everything I wish I knew about weekend hiking before starting.",
        "lang": "en",
        "published_at": "2026-10-12T16:07:04.000Z",
        "author": {
          "id": "120992799803264058",
          "username": "trail_and_lens",
          "name": "Maya Chen",
          "avatar_url": "https://pbs.twimg.com/profile_images/1848757287189742861/SYeqkCB8_normal.jpg",
          "followers": 668
        },
        "metrics": {
          "likes": 0,
          "comments": 0,
          "favorites": 0,
          "views": 14,
          "reposts": 0
        },
        "images": [],
        "hashtags": [],
        "mentions": [
          {
            "id": "125986387632433993",
            "username": "northside_coffee",
            "name": "Leo Park"
          }
        ],
        "post_id": null,
        "parent_id": null
      },
      // … 19 more
    ]
  },
  "page": {
    "next_cursor": "c1.9YeybLwHU9zkDUcKc-7kGuDGILN2DPK12RA6xoHN",
    "cursor_expires_at": "2026-10-12T19:46:55.000Z",
    "has_more": true,
    "returned": 20
  },
  "warnings": [],
  "meta": {
    "capability": "x.communities.posts.list",
    "result_status": "complete",
    "fetched_at": "2026-10-12T18:46:55.000Z",
    "cached": false,
    "replayed": false,
    "unavailable": {
      "title": "platform",
      "metrics.shares": "platform",
      "is_pinned": "capability",
      "root_id": "platform",
      "author.verified": "capability"
    },
    "billing": {
      "amount": "0.006",
      "currency": "USD",
      "balance_after": "9.994"
    }
  }
}
```

## What comes back

- [The Post object](https://dataxapi.com/docs/objects/post/): Fields 28, Endpoints that return it 81, Platforms 19

## Questions about the Community posts API

### How much does it cost?

$0.0003 per item returned on X (Twitter); $0.0020 a call on Reddit. You are charged when data comes back; a failed call costs nothing. No subscription, no monthly minimum.

### How do I get every page?

Pass `page.next_cursor` back as `cursor` until `page.has_more` is false. Each page is one call at the same price.

### Does every platform fill every field?

No. 21 of the 28 fields are missing on at least one platform; the table on this page says which. A field an endpoint cannot give is named in `meta.unavailable` on every answer, never filled with a guess.

### Do I need an account on the platform?

No. One DataXAPI key reads all 2 platforms. No platform account and no cookie.

## Other data types

[Comment replies API](https://dataxapi.com/roles/comments-replies-list/), [Hashtag posts API](https://dataxapi.com/roles/topics-posts-list/), [Trending topics API](https://dataxapi.com/roles/trends-list/), [Account profile API](https://dataxapi.com/roles/accounts-get/), [Account posts API](https://dataxapi.com/roles/accounts-posts-list/), [Comments API](https://dataxapi.com/roles/posts-comments-list/), [Post detail API](https://dataxapi.com/roles/posts-get/), [Post search API](https://dataxapi.com/roles/posts-search/), [Trending posts API](https://dataxapi.com/roles/posts-trending/), [Account search API](https://dataxapi.com/roles/accounts-search/), [Post metrics API](https://dataxapi.com/roles/posts-metrics/), [Ad detail API](https://dataxapi.com/roles/ads-get/), [Advertiser ads API](https://dataxapi.com/roles/advertisers-ads-list/), [Advertiser search API](https://dataxapi.com/roles/advertisers-search/), [Ad library search API](https://dataxapi.com/roles/ads-search/), [Video transcript API](https://dataxapi.com/roles/transcripts-get/), [Followers API](https://dataxapi.com/roles/accounts-followers-list/), [Community profile API](https://dataxapi.com/roles/communities-get/), [Product detail API](https://dataxapi.com/roles/products-get/), [Product reviews API](https://dataxapi.com/roles/products-reviews-list/), [Product search API](https://dataxapi.com/roles/products-search/), [Creator search API](https://dataxapi.com/roles/creators-search/), [Creator profile API](https://dataxapi.com/roles/creators-get/), [Creator audience API](https://dataxapi.com/roles/creators-audience-get/), [Creator metrics API](https://dataxapi.com/roles/creators-metrics/), [Creator posts API](https://dataxapi.com/roles/creators-posts-list/), [All 21 platforms →](https://dataxapi.com/apis/)

---

Last checked 2026-10-21 11:10 UTC. Catalog revision c48ce454ae6c4c65. [HTML version](https://dataxapi.com/roles/communities-posts-list/)
