# X Community Posts

Get X community posts data via REST or OpenAny MCP—with pay-per-use pricing, no subscription, and no cookies required. Powered by LiteScrape, pass parameters such as community_id, and retrieve structured data including returned community id field, returned order field, identifier, text, and author context for content research and account lookup, and integration reference.

Documentation: https://openany.si/x/x-community-posts/948d6343-279e-4bbd-9cc2-0ec94065bbad/
API ID: 948d6343-279e-4bbd-9cc2-0ec94065bbad
Provider: litescrape
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/litescrape/api/x/community-posts
Page update time: 2026-12-03T02:53:42.054Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.00015 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:53:41.337Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "150",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## X Community Posts API

Retrieve posts from an X community, including authors, engagement and media. Provide community\_id in body. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

## What You Can Build

- **Content research and account lookup**: Keep source records connected to their content and account identifiers.
- **Integration reference**: Use the selected request format and keep source identifiers with the returned result.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `community_id` | Returned community id field |
| `order` | Returned order field |
| `posts[].id` | Identifier |
| `posts[].text` | Text |
| `posts[].author` | Author context |
| `posts[].bookmark_count` | Returned bookmark count field |
| `posts[].conversation_id` | Returned conversation id field |
| `posts[].created_at` | Creation timestamp |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "X Community Posts request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "timeout": {
          "type": "number",
          "description": "Total request execution budget in seconds, greater than 0 and at most 90. Supply in the query string for GET or POST. page_timeout cannot extend this budget.",
          "maximum": 90
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "additionalProperties": false,
      "examples": [
        {
          "community_id": "1926186499399139650"
        }
      ],
      "properties": {
        "community_id": {
          "description": "Numeric X community ID as a string, from its /i/communities/ URL.",
          "pattern": "^[1-9][0-9]{0,19}$",
          "title": "Community Id",
          "type": "string",
          "x-litescrape": {
            "group": 0,
            "label": "Community ID",
            "placeholder": "1926186499399139650",
            "summary": "Numeric X community ID as a string, from its /i/communities/ URL."
          }
        }
      },
      "required": [
        "community_id"
      ],
      "title": "Request",
      "type": "object",
      "description": "Get posts from an X community, including authors, engagement and media."
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "community_id": {
      "type": "string"
    },
    "order": {
      "type": "string"
    },
    "posts": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "author": {
            "type": "object",
            "properties": {
              "created_at": {
                "type": "string"
              },
              "description": {
                "type": "string"
              },
              "followers_count": {
                "type": "integer"
              },
              "following_count": {
                "type": "integer"
              },
              "id": {
                "type": "string"
              },
              "is_blue_verified": {
                "type": "boolean"
              },
              "likes_count": {
                "type": "integer"
              },
              "location": {
                "type": "string"
              },
              "media_count": {
                "type": "integer"
              },
              "name": {
                "type": "string"
              },
              "posts_count": {
                "type": "integer"
              },
              "profile_banner_url": {
                "type": "string"
              },
              "profile_image_url": {
                "type": "string"
              },
              "protected": {
                "type": "boolean"
              },
              "url": {
                "type": "string"
              },
              "username": {
                "type": "string"
              },
              "verified": {
                "type": "boolean"
              },
              "website": {
                "type": "string"
              }
            }
          },
          "bookmark_count": {
            "type": "integer"
          },
          "conversation_id": {
            "type": "string"
          },
          "created_at": {
            "type": "string"
          },
          "hashtags": {
            "type": "array",
            "items": {}
          },
          "id": {
            "type": "string"
          },
          "lang": {
            "type": "string"
          },
          "like_count": {
            "type": "integer"
          },
          "media": {
            "type": "array",
            "items": {}
          },
          "quote_count": {
            "type": "integer"
          },
          "reply_count": {
            "type": "integer"
          },
          "repost_count": {
            "type": "integer"
          },
          "text": {
            "type": "string"
          },
          "url": {
            "type": "string"
          },
          "urls": {
            "type": "array",
            "items": {}
          },
          "view_count": {
            "type": "integer"
          }
        }
      }
    },
    "submit_feedback_for_this_response_here": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/litescrape/api/x/community-posts' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "community_id": "1926186499399139650"
}'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "community_id": "1926186499399139650",
  "order": "ranked",
  "posts": [
    {
      "author": {
        "created_at": "Thu Jan 28 15:23:23 +0000 2021",
        "description": "Working on improving Claude user experience and making something wonderful ❤️\n\nShowing up every day to build and seeing what everyone else is building 🚧",
        "followers_count": 495,
        "following_count": 825,
        "id": "1354812288637624325",
        "is_blue_verified": true,
        "likes_count": 1663,
        "location": "Palo Alto, CA",
        "media_count": 47,
        "name": "Jason",
        "posts_count": 560,
        "profile_banner_url": "https://pbs.twimg.com/profile_banners/1354812288637624325/1779922906",
        "profile_image_url": "https://pbs.twimg.com/profile_images/2041658850236125184/5LMT-JmL_normal.jpg",
        "protected": false,
        "url": "https://x.com/jasonjias",
        "username": "jasonjias",
        "verified": true,
        "website": "https://www.santarow.com"
      },
      "bookmark_count": 0,
      "conversation_id": "2106954044686397612",
      "created_at": "Mon Oct 05 03:46:04 +0000 2026",
      "hashtags": [],
      "id": "2106954044686397612",
      "lang": "en",
      "like_count": 12,
      "media": [],
      "quote_count": 0,
      "reply_count": 10,
      "repost_count": 0,
      "text": "I’m a solo founder in Palo Alto\n\nif you’re a founder, builder, or working on ai, tech, or cool stuff let’s connect!\n\nLet’s grow together!",
      "url": "https://x.com/jasonjias/status/2106954044686397612",
      "urls": [],
      "view_count": 249
    }
  ],
  "submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Which inputs identify this request?
Provide community_id in body (string). Keep identifiers and URLs in the formats documented for this implementation.

### What type does timeout use?
timeout uses the JSON type number in query. Preserve that type; strings, numbers, booleans and arrays are not interchangeable.

### How should I structure the JSON body?
Send the body according to its root JSON schema. Do not add a second body wrapper around the documented properties, and preserve the declared types of nested values.

### How should I map the returned fields?
Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

## Available implementations
- anyapi: https://openany.si/x/x-community-posts/d0df957b-85ec-4d57-8c47-33862f9bc4c7/
- litescrape: https://openany.si/x/x-community-posts/948d6343-279e-4bbd-9cc2-0ec94065bbad/
- scrapecreators: https://openany.si/x/x-community-posts/820e1d15-521a-48af-b608-ddd231ebdc77/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
