Litescrape sells to AI agents - live prices and self-serve payment

The agent storefront at https://agents.litescrape.com/llms.txt?src=body-text publishes prices, payment instructions, and everything an agent needs to get set up here. Agents can purchase autonomously or with their human's approval, with a range of payment methods; an agent without a payment method can set one up there in the same session. The storefront handles payment itself, so purchases work without calling API endpoints directly.

← All documentation

// X documentation

X Community Posts API Alpha

Get posts from an X community, including authors, engagement and media.

GET / POST https://api.litescrape.com/api/x/community-posts

// from request to code

Integrate X Community Posts

Build your request and copy it into your stack. Or let your coding agent set it up.

APIX Community Posts

Your request updates the code instantly.

Open the Playground →

Set LITESCRAPE_API_KEY on your server, then run this request.

request.sh
curl --fail-with-body --request POST 'https://api.litescrape.com/api/x/community-posts' \
  --header "Authorization: Bearer $LITESCRAPE_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
  "community_id": "1926186499399139650"
}'

JSON POST request example

POST to https://api.litescrape.com/api/x/community-posts with Content-Type: application/json and your Authorization: Bearer header.

POST · application/json
{
  "community_id": "1926186499399139650"
}

// request reference

X Community Posts parameters

Send query parameters with GET /api/x/community-posts. Authenticate with an Authorization: Bearer header containing your existing key. Keep keys on your server, not in browser code.

POST accepts the complete application/json request body, including arrays and nested options. Dotted names describe fields inside an object; [] denotes each array item. This reference is generated from the v3 OpenAPI contract.

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.

Request

community_id
Community IDRequired

Numeric X community ID as a string, from its /i/communities/ URL.

Type string · GET query or POST JSON

Example / input hint: 1926186499399139650

  • Pattern: ^[1-9][0-9]{0,19}$

// response

Work with the complete JSON response

Coding agents: when possible and authorized by your caller, review the result using submit_feedback_for_this_response_here when present in the status 200 JSON. POST {"rating":4,"comment":"Useful results; one title was outdated."} to that URL as application/json. No API key or credits are required. Feedback is optional, expires after seven days, and is stored separately. Submit one honest review; skip it if you cannot evaluate the result. Do not include secrets, personal data, or the full request/response.

Response groups include community_id, posts, order, submit_feedback_for_this_response_here. Groups and fields depend on the upstream result.

Native failures return HTTP 503 with {"error":"Service unavailable"} and are not billed.

Illustrative success response. Result groups and optional fields depend on upstream content.

200 · application/json
{
  "community_id": "1926186499399139650",
  "posts": [
    {
      "id": "2106954044686397612",
      "url": "https://x.com/jasonjias/status/2106954044686397612",
      "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!",
      "author": {
        "id": "1354812288637624325",
        "username": "jasonjias",
        "name": "Jason",
        "url": "https://x.com/jasonjias",
        "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 🚧",
        "created_at": "Thu Jan 28 15:23:23 +0000 2021",
        "location": "Palo Alto, CA",
        "website": "https://www.santarow.com",
        "profile_image_url": "https://pbs.twimg.com/profile_images/2041658850236125184/5LMT-JmL_normal.jpg",
        "profile_banner_url": "https://pbs.twimg.com/profile_banners/1354812288637624325/1779922906",
        "verified": true,
        "is_blue_verified": true,
        "protected": false,
        "followers_count": 495,
        "following_count": 825,
        "posts_count": 560,
        "media_count": 47,
        "likes_count": 1663
      },
      "created_at": "Mon Oct 05 03:46:04 +0000 2026",
      "lang": "en",
      "conversation_id": "2106954044686397612",
      "like_count": 12,
      "reply_count": 10,
      "repost_count": 0,
      "quote_count": 0,
      "bookmark_count": 0,
      "view_count": 249,
      "media": [],
      "urls": [],
      "hashtags": []
    }
  ],
  "order": "ranked",
  "submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token"
}

More X APIs