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.

Run it in the PlaygroundSee the callSign in to run it; it runs on your own balance.
Platforms2 platforms
Endpoints2 endpointsone on each platform
PriceFrom $0.0003per call. A failed call is free
ReturnsPost20 to 25 a page, with a cursor for the next

Community posts on each platform

One row per endpoint: what it is called, how much comes back in a call, and what a call costs.

PlatformEndpointA pageReturnsPrice
X (Twitter)X community postsGET/v1/x/communities/posts/list20Post list$0.0003 / item
RedditReddit community postsGET/v1/reddit/subreddits/posts/list25Post list$0.0020
Prices are the prices in force. A call that fails, or whose result is uncertain, costs nothing.Live status →

The Post object

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

The object's own page →
idtextID; pass it unchanged to the get endpoint
urllinkLink that opens the post
typetextContent format
titletextTitle
texttextBody text
langtextLanguage of the text
published_attimeWhen it was published
author.idtextAuthor's account ID
author.usernametextAuthor's handle
author.nametextAuthor's display name
author.avatar_urllinkAuthor's avatar
author.verifiedyes/noWhether the author is verified
author.followersintegerAuthor's follower count
metrics.likesintegerLikes
metrics.commentsintegerComments
metrics.sharesintegerShares
metrics.favoritesintegerSaves
metrics.viewsintegerViews
metrics.repostsintegerReposts
imageslist of linkImage addresses
hashtagslist of textHashtags, without the #
mentions[].idtextAccount ID
mentions[].usernametextHandle
mentions[].nametextDisplay name
is_pinnedyes/noWhether the author pinned it
post_idtextID of the thread's root post when this is a reply; otherwise null
parent_idtextID of the item it replies to directly; otherwise null
root_idtextID of the first-level reply its thread hangs under

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.

Platformtypetitlelangauthor.nameauthor.avatar_urlauthor.verifiedauthor.followersmetrics.likesmetrics.sharesmetrics.favoritesmetrics.viewsmetrics.repostsimageshashtagsmentions[].idmentions[].usernamementions[].nameis_pinnedpost_idparent_idroot_id
X (Twitter)
Reddit

The same call on two platforms

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

# 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"
// X (Twitter)
import { DataXAPI } from "@dataxapi/sdk";

const dx = new DataXAPI(); // reads DATAXAPI_API_KEY
const result = await dx.x.communities.posts.list({ id: "1539231166569410560" });
console.log(result.data.items);

// Reddit: the same call on its own path
const other = await dx.reddit.subreddits.posts.list({ id: "nasa" });
console.log(other.data.items);
# X (Twitter)
from dataxapi import DataXAPI

dx = DataXAPI()  # reads DATAXAPI_API_KEY
result = dx.x.communities.posts.list(id="1539231166569410560")
print(result["data"]["items"])

# Reddit: the same call on its own path
other = dx.reddit.subreddits.posts.list(id="nasa")
print(other["data"]["items"])
# X (Twitter)
dataxapi call x.communities.posts.list id=1539231166569410560

# Reddit: the same call on its own path
dataxapi call reddit.subreddits.posts.list id=nasa
200 · application/json · charged $0.0003
{
  "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"
    }
  }
}

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.

What comes back

The objects these endpoints answer with: one set of fields each, the same on every platform.

All skills →

Questions about the Community posts API

Short answers. Each endpoint's page has its own limits and examples.

X 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

The same idea everywhere: one action, every platform that has it.

Start with one key.

207 endpoints on 21 platforms, from $0.0003 a call. Errors and timeouts are not charged.

Start free