X User Posts
Retrieve user Posts with the X API. Supply a username. Sample fields include authors and creation times. Use it in a social research or monitoring workflow. The POST request schema also lists timeout.
- Selected price
- $0.00015 / callPublished pricing
- Sellers / APIs
- 1 / 1
- Requests · 30d
- —Loading...
- Success rate · 30d
- —Loading...
X User Posts
Prepare your request, then continue with your agent.
Selected price
$0.00015 / call
- Provider
- Pricing
On this page
Playground
Run sends a real API request. Charges follow the published API contract.
Response structure
paginationobjectnext_cursorstring
postsobject[]authorobjectbio_urlsstring[]created_atstringdescriptionstringfollowers_countintegerfollowing_countintegeridstringis_blue_verifiedbooleanlikes_countintegerlocationstringmedia_countintegernamestringpinned_post_idsstring[]posts_countintegerprofile_banner_urlstringprofile_image_urlstringprotectedbooleanurlstringusernamestringverifiedbooleanverified_typestringwebsitestring
bookmark_countintegerconversation_idstringcreated_atstringhashtagsunknown[]idstringlangstringlike_countintegermediaobject[]duration_msintegerheightintegertypestringurlstringvariantsobject[]content_typestringurlstringbitrateinteger
video_urlstringwidthinteger
possibly_sensitivebooleanquote_countintegerreply_countintegerrepost_countintegertextstringurlstringurlsunknown[]view_countinteger
submit_feedback_for_this_response_herestring
// Inferred from response examples. Fields are optional and other fields may be returned.
export type ApiResponse = {
pagination?: {
next_cursor?: string;
};
posts?: Array<{
author?: {
bio_urls?: Array<string>;
created_at?: string;
description?: string;
followers_count?: number;
following_count?: number;
id?: string;
is_blue_verified?: boolean;
likes_count?: number;
location?: string;
media_count?: number;
name?: string;
pinned_post_ids?: Array<string>;
posts_count?: number;
profile_banner_url?: string;
profile_image_url?: string;
protected?: boolean;
url?: string;
username?: string;
verified?: boolean;
verified_type?: string;
website?: string;
};
bookmark_count?: number;
conversation_id?: string;
created_at?: string;
hashtags?: Array<unknown>;
id?: string;
lang?: string;
like_count?: number;
media?: Array<{
duration_ms?: number;
height?: number;
type?: string;
url?: string;
variants?: Array<{
content_type?: string;
url?: string;
bitrate?: number;
}>;
video_url?: string;
width?: number;
}>;
possibly_sensitive?: boolean;
quote_count?: number;
reply_count?: number;
repost_count?: number;
text?: string;
url?: string;
urls?: Array<unknown>;
view_count?: number;
}>;
submit_feedback_for_this_response_here?: string;
};Sellers
| Seller | Pricing | Requests · 30d | Performance | Access |
|---|---|---|---|---|
litescrapeCurrent X User Posts · POST · View API reference | $0.00015 / call | — | —successP50— |
- Unit price
- $0.00015
Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 3. Price update time: not supplied.
Total $0.015
API
- Method
- POST
- Endpoint
https://api.openany.si/v1/agent-apis/litescrape/api/x/user-posts- Content type
- application/json
- Authentication
Authorization: Bearer $OPENANY_API_KEY
curl \
'https://api.openany.si/v1/agent-apis/litescrape/api/x/user-posts' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"username": "OpenAI"
}'Input parameters
Fields in this listing; additional options and input encoding can vary by provider.
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
timeout | URL query parametersquery | number | No | 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 |
cursor | JSON request bodybody | string | null | No | Continuation cursor returned for the same username. |
username | JSON request bodybody | string | Yes | X username, with or without a leading @. Profile URLs are not accepted. pattern: ^[A-Za-z0-9_]{1,15}$ |
Required markers inside a nested object or variant apply when that object or variant is used.
Sample response
Sample response · Documented HTTP 200 Example from the provider's documentation. Field values in your results will differ.
{
"pagination": {
"next_cursor": "DAAHCgABHUPqMZa___ALAAIAAAATMjEwNDk5Mzk2Nzk4NTM4MTY3MwgAAwAAAAIAAA"
},
"posts": [
{
"author": {
"bio_urls": [
"http://openai.com/jobs"
],
"created_at": "Sun Dec 06 22:51:08 +0000 2015",
"description": "OpenAI’s mission is to ensure that artificial general intelligence benefits all of humanity. We’re hiring: https://t.co/dJGr6LgzPA",
"followers_count": 5422967,
"following_count": 4,
"id": "4398626122",
"is_blue_verified": true,
"likes_count": 2525,
"location": "",
"media_count": 743,
"name": "OpenAI",
"pinned_post_ids": [
"2107894997538525580"
],
"posts_count": 2179,
"profile_banner_url": "https://pbs.twimg.com/profile_banners/4398626122/1777662919",
"profile_image_url": "https://pbs.twimg.com/profile_images/1885410181409820672/ztsaR0JW_normal.jpg",
"protected": false,
"url": "https://x.com/OpenAI",
"username": "OpenAI",
"verified": true,
"verified_type": "Business",
"website": "https://openai.com"
},
"bookmark_count": 6606,
"conversation_id": "2107894997538525580",
"created_at": "Wed Oct 07 18:05:04 +0000 2026",
"hashtags": [],
"id": "2107894997538525580",
"lang": "en",
"like_count": 23055,
"media": [
{
"duration_ms": 70111,
"height": 1080,
"type": "video",
"url": "https://pbs.twimg.com/media/HUDAEy0a4AAdfz8.jpg",
"variants": [
{
"content_type": "application/x-mpegURL",
"url": "https://video.twimg.com/amplify_video/2107893961461473280/pl/1EuBGSX7XqZrrJja.m3u8?tag=29"
},
{
"bitrate": 256000,
"content_type": "video/mp4",
"url": "https://video.twimg.com/amplify_video/2107893961461473280/vid/avc1/480x270/JfePfj9Q30RmRuEa.mp4?tag=29"
},
{
"bitrate": 832000,
"content_type": "video/mp4",
"url": "https://video.twimg.com/amplify_video/2107893961461473280/vid/avc1/640x360/-mREAGeqEMpB-95D.mp4?tag=29"
},
{
"bitrate": 2176000,
"content_type": "video/mp4",
"url": "https://video.twimg.com/amplify_video/2107893961461473280/vid/avc1/1280x720/juhdrcOKw2K9lzhq.mp4?tag=29"
},
{
"bitrate": 10368000,
"content_type": "video/mp4",
"url": "https://video.twimg.com/amplify_video/2107893961461473280/vid/avc1/1920x1080/7gMw9Wtm-zDxFZET.mp4?tag=29"
}
],
"video_url": "https://video.twimg.com/amplify_video/2107893961461473280/vid/avc1/1920x1080/7gMw9Wtm-zDxFZET.mp4?tag=29",
"width": 1920
}
],
"possibly_sensitive": false,
"quote_count": 1444,
"reply_count": 1126,
"repost_count": 1812,
"text": "GPT-6 and Intelligent UI, now rolling out in ChatGPT for everyone.\n\nIntelligent UI in ChatGPT delivers fast, interactive answers that make everyday questions more visual, complex topics easier to grasp, and interactive tools for your task available on the spot. https://t.co/XL2gDCPBwG",
"url": "https://x.com/OpenAI/status/2107894997538525580",
"urls": [],
"view_count": 5816962
}
],
"submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token"
}Agent integration
Copy the resource contract without sharing an API key.
View API Markdown
# X User Posts
Retrieve user Posts with the X API. Supply a username. Sample fields include authors and creation times. Use it in a social research or monitoring workflow. The POST request schema also lists timeout.
## Available implementations
litescrape · X User Posts: https://openany.si/markets/apis/capabilities/x-user-posts?offering=47091f0f-6feb-4cb2-9086-e5916c62dbda · $0.00015 / call
## Selected API contract
Documentation: https://openany.si/markets/apis/capabilities/x-user-posts
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/litescrape/api/x/user-posts
Price: $0.00015 / call
Provider: litescrape
Contract revision: 3
Price source: OpenAny public API contract and documented provider unit rates. Price update time: not supplied.
Use OPENANY_API_KEY from the environment. API Key calls use your shared balance.
## Prepared request
```bash
curl \
'https://api.openany.si/v1/agent-apis/litescrape/api/x/user-posts' \
-X POST \
-H "Authorization: Bearer $OPENANY_API_KEY" \
-H 'Content-Type: application/json' \
--data-raw '{
"username": "OpenAI"
}'
```
## API contract
```json
{
"resource_type": "api",
"name": "X User Posts",
"endpoint": "https://api.openany.si/v1/agent-apis/litescrape/api/x/user-posts",
"method": "POST",
"content_type": "application/json",
"execution_mode": "sync",
"authentication": {
"type": "bearer",
"environment_variable": "OPENANY_API_KEY"
},
"inputs": [
{
"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.",
"location": "query",
"maximum": "90",
"name": "timeout",
"nullable": false,
"required": false,
"type": "number"
},
{
"description": "Get posts from an X user.",
"json_schema": {
"additionalProperties": false,
"examples": [
{
"username": "OpenAI"
}
],
"properties": {
"cursor": {
"anyOf": [
{
"maxLength": 4096,
"minLength": 1,
"pattern": "^[A-Za-z0-9_+/=-]+$",
"type": "string"
},
{
"type": "null"
}
],
"default": null,
"description": "Continuation cursor returned for the same username.",
"title": "Cursor",
"x-litescrape": {
"group": 0,
"label": "Cursor",
"summary": "Continuation cursor returned for the same username."
}
},
"username": {
"description": "X username, with or without a leading @. Profile URLs are not accepted.",
"pattern": "^[A-Za-z0-9_]{1,15}$",
"title": "Username",
"type": "string",
"x-litescrape": {
"group": 0,
"label": "Username",
"placeholder": "OpenAI",
"summary": "X username, with or without a leading @. Profile URLs are not accepted."
}
}
},
"required": [
"username"
],
"title": "Request",
"type": "object"
},
"location": "body",
"name": "body",
"nullable": false,
"pointer": "",
"required": true,
"type": "object"
}
],
"billing": {
"currency": "USD",
"mode": "fixed",
"priceMicroUsd": "150",
"rounding": null,
"unit": "call",
"unitQuantity": null
},
"examples": [
{
"http_status": 200,
"name": "Official example",
"request": {
"body": {
"username": "OpenAI"
},
"headers": {},
"path": {},
"query": {}
},
"response_body": {
"pagination": {
"next_cursor": "DAAHCgABHUPqMZa___ALAAIAAAATMjEwNDk5Mzk2Nzk4NTM4MTY3MwgAAwAAAAIAAA"
},
"posts": [
{
"author": {
"bio_urls": [
"http://openai.com/jobs"
],
"created_at": "Sun Dec 06 22:51:08 +0000 2015",
"description": "OpenAI’s mission is to ensure that artificial general intelligence benefits all of humanity. We’re hiring: https://t.co/dJGr6LgzPA",
"followers_count": 5422967,
"following_count": 4,
"id": "4398626122",
"is_blue_verified": true,
"likes_count": 2525,
"location": "",
"media_count": 743,
"name": "OpenAI",
"pinned_post_ids": [
"2107894997538525580"
],
"posts_count": 2179,
"profile_banner_url": "https://pbs.twimg.com/profile_banners/4398626122/1777662919",
"profile_image_url": "https://pbs.twimg.com/profile_images/1885410181409820672/ztsaR0JW_normal.jpg",
"protected": false,
"url": "https://x.com/OpenAI",
"username": "OpenAI",
"verified": true,
"verified_type": "Business",
"website": "https://openai.com"
},
"bookmark_count": 6606,
"conversation_id": "2107894997538525580",
"created_at": "Wed Oct 07 18:05:04 +0000 2026",
"hashtags": [],
"id": "2107894997538525580",
"lang": "en",
"like_count": 23055,
"media": [
{
"duration_ms": 70111,
"height": 1080,
"type": "video",
"url": "https://pbs.twimg.com/media/HUDAEy0a4AAdfz8.jpg",
"variants": [
{
"content_type": "application/x-mpegURL",
"url": "https://video.twimg.com/amplify_video/2107893961461473280/pl/1EuBGSX7XqZrrJja.m3u8?tag=29"
},
{
"bitrate": 256000,
"content_type": "video/mp4",
"url": "https://video.twimg.com/amplify_video/2107893961461473280/vid/avc1/480x270/JfePfj9Q30RmRuEa.mp4?tag=29"
},
{
"bitrate": 832000,
"content_type": "video/mp4",
"url": "https://video.twimg.com/amplify_video/2107893961461473280/vid/avc1/640x360/-mREAGeqEMpB-95D.mp4?tag=29"
},
{
"bitrate": 2176000,
"content_type": "video/mp4",
"url": "https://video.twimg.com/amplify_video/2107893961461473280/vid/avc1/1280x720/juhdrcOKw2K9lzhq.mp4?tag=29"
},
{
"bitrate": 10368000,
"content_type": "video/mp4",
"url": "https://video.twimg.com/amplify_video/2107893961461473280/vid/avc1/1920x1080/7gMw9Wtm-zDxFZET.mp4?tag=29"
}
],
"video_url": "https://video.twimg.com/amplify_video/2107893961461473280/vid/avc1/1920x1080/7gMw9Wtm-zDxFZET.mp4?tag=29",
"width": 1920
}
],
"possibly_sensitive": false,
"quote_count": 1444,
"reply_count": 1126,
"repost_count": 1812,
"text": "GPT-6 and Intelligent UI, now rolling out in ChatGPT for everyone.\n\nIntelligent UI in ChatGPT delivers fast, interactive answers that make everyday questions more visual, complex topics easier to grasp, and interactive tools for your task available on the spot. https://t.co/XL2gDCPBwG",
"url": "https://x.com/OpenAI/status/2107894997538525580",
"urls": [],
"view_count": 5816962
}
],
"submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token"
}
}
]
}
```Error handling
| Status | Next step |
|---|---|
400 | Check the offering and request fields. |
401 / 403 | Verify your credentials and access permissions. |
402 | Inspect the selected access mode and returned payment requirements. |
429 | Respect the returned rate limit and retry guidance. |
5xx | Inspect the error and usage record before retrying a paid operation. |
Examples
Official example
Example from the provider's documentation. Field values in your results will differ.
Prepare your environment
Use a terminal with cURL installed.
Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.
Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.
Terminal · macOS / Linuxprintf 'OpenAny API key: ' read -r -s OPENANY_API_KEY export OPENANY_API_KEY printf '\n'Run the request
Paste the complete command below into your terminal.
Values to replace before running 2
Review these request fields before running. Keep the published provider and request method unchanged.
timeout- 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.
body- Get posts from an X user.
Terminal · cURLcurl \ 'https://api.openany.si/v1/agent-apis/litescrape/api/x/user-posts' \ -X POST \ -H "Authorization: Bearer $OPENANY_API_KEY" \ -H 'Content-Type: application/json' \ --data-raw '{ "username": "OpenAI" }'Check the response
Sample response · Documented HTTP 200
Sample response{ "pagination": { "next_cursor": "DAAHCgABHUPqMZa___ALAAIAAAATMjEwNDk5Mzk2Nzk4NTM4MTY3MwgAAwAAAAIAAA" }, "posts": [ { "author": { "bio_urls": [ "http://openai.com/jobs" ], "created_at": "Sun Dec 06 22:51:08 +0000 2015", "description": "OpenAI’s mission is to ensure that artificial general intelligence benefits all of humanity. We’re hiring: https://t.co/dJGr6LgzPA", "followers_count": 5422967, "following_count": 4, "id": "4398626122", "is_blue_verified": true, "likes_count": 2525, "location": "", "media_count": 743, "name": "OpenAI", "pinned_post_ids": [ "2107894997538525580" ], "posts_count": 2179, "profile_banner_url": "https://pbs.twimg.com/profile_banners/4398626122/1777662919", "profile_image_url": "https://pbs.twimg.com/profile_images/1885410181409820672/ztsaR0JW_normal.jpg", "protected": false, "url": "https://x.com/OpenAI", "username": "OpenAI", "verified": true, "verified_type": "Business", "website": "https://openai.com" }, "bookmark_count": 6606, "conversation_id": "2107894997538525580", "created_at": "Wed Oct 07 18:05:04 +0000 2026", "hashtags": [], "id": "2107894997538525580", "lang": "en", "like_count": 23055, "media": [ { "duration_ms": 70111, "height": 1080, "type": "video", "url": "https://pbs.twimg.com/media/HUDAEy0a4AAdfz8.jpg", "variants": [ { "content_type": "application/x-mpegURL", "url": "https://video.twimg.com/amplify_video/2107893961461473280/pl/1EuBGSX7XqZrrJja.m3u8?tag=29" }, { "bitrate": 256000, "content_type": "video/mp4", "url": "https://video.twimg.com/amplify_video/2107893961461473280/vid/avc1/480x270/JfePfj9Q30RmRuEa.mp4?tag=29" }, { "bitrate": 832000, "content_type": "video/mp4", "url": "https://video.twimg.com/amplify_video/2107893961461473280/vid/avc1/640x360/-mREAGeqEMpB-95D.mp4?tag=29" }, { "bitrate": 2176000, "content_type": "video/mp4", "url": "https://video.twimg.com/amplify_video/2107893961461473280/vid/avc1/1280x720/juhdrcOKw2K9lzhq.mp4?tag=29" }, { "bitrate": 10368000, "content_type": "video/mp4", "url": "https://video.twimg.com/amplify_video/2107893961461473280/vid/avc1/1920x1080/7gMw9Wtm-zDxFZET.mp4?tag=29" } ], "video_url": "https://video.twimg.com/amplify_video/2107893961461473280/vid/avc1/1920x1080/7gMw9Wtm-zDxFZET.mp4?tag=29", "width": 1920 } ], "possibly_sensitive": false, "quote_count": 1444, "reply_count": 1126, "repost_count": 1812, "text": "GPT-6 and Intelligent UI, now rolling out in ChatGPT for everyone.\n\nIntelligent UI in ChatGPT delivers fast, interactive answers that make everyday questions more visual, complex topics easier to grasp, and interactive tools for your task available on the spot. https://t.co/XL2gDCPBwG", "url": "https://x.com/OpenAI/status/2107894997538525580", "urls": [], "view_count": 5816962 } ], "submit_feedback_for_this_response_here": "https://ecll-litescrape-v3--site-api-web.modal.run/api/feedback/example-not-a-valid-token" }