Xproapi Tweet Activity API
The Tweet Activity API from Xproapi — 8 operation(s) for tweet activity.
The Tweet Activity API from Xproapi — 8 operation(s) for tweet activity.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/xproapi:xproapi-tweet-activity-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Xproapi Tweet Activity API
x-refined-note:
- x-apisguru-categories differs across the merged source definitions and was not carried
x-logo:
url: https://xproapi.com/apple-touch-icon.png
altText: Xproapi.com
version: '1.0'
description: 'Operations tagged Tweet Activity across 2 of this provider''s published API definitions: xproapi-openapi.json, xproapi-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://xproapi.com/api
tags:
- name: Tweet Activity
paths:
/twitter/user/tweet_timeline:
get:
tags:
- Tweet Activity
summary: Get User Tweet Timeline
description: '## Get User Tweet Timeline
Retrieves the tweet timeline for a specified Twitter/X user, including their tweets and retweets in chronological order.
### Query Parameters
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `userName` | string | ✅ Required | The Twitter/X username (without @). Example: `elonmusk` |
| `cursor` | string | Optional | Pagination cursor for fetching the next page of the timeline |
### Example Request
```
GET {{base_url}}/twitter/user/tweet_timeline?userName=elonmusk
```
### Example Response
Returns a paginated timeline of tweet objects, each containing:
- `id` — Tweet ID
- `text` — Tweet content
- `author` — Author user object
- `createdAt` — Timestamp
- `likeCount`, `replyCount`, `retweetCount`, `viewCount` — Engagement metrics
- `isRetweet` — Whether this is a retweet
- `cursor` — Pagination cursor for the next page'
parameters:
- name: X-API-Key
in: header
schema:
type: string
example: '{{key}}'
- name: userName
in: query
schema:
type: string
example: elonmusk
responses:
'200':
description: Successful response
content:
application/json: {}
operationId: getTwitterUserTweetTimeline
x-operation-id-source: derived
servers:
- url: https://xproapi.com/api
/twitter/user/last_tweets:
get:
tags:
- Tweet Activity
summary: Get User Last Tweets
description: '## Get User Last Tweets
Retrieves the most recent tweets posted by a specified Twitter/X user.
### Query Parameters
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `userName` | string | ✅ Required | The Twitter/X username (without @). Example: `elonmusk` |
| `cursor` | string | Optional | Pagination cursor for fetching the next page of results |
### Example Request
```
GET {{base_url}}/twitter/user/last_tweets?userName=elonmusk
```
### Example Response
Returns a paginated list of the user''s most recent tweet objects, each containing:
- `id` — Tweet ID
- `text` — Tweet content
- `createdAt` — Timestamp
- `likeCount`, `replyCount`, `retweetCount`, `viewCount` — Engagement metrics
- `media` — Attached media (images, videos) if any
- `cursor` — Pagination cursor for the next page'
parameters:
- name: X-API-Key
in: header
schema:
type: string
example: '{{key}}'
- name: userName
in: query
schema:
type: string
example: elonmusk
responses:
'200':
description: Successful response
content:
application/json: {}
operationId: getTwitterUserLastTweets
x-operation-id-source: derived
servers:
- url: https://xproapi.com/api
/twitter/tweets:
get:
tags:
- Tweet Activity
summary: Get Tweets by IDs
description: '## Get Tweets by IDs
Retrieves detailed information for one or more tweets by their IDs in a single batch request.
### Query Parameters
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `tweet_ids` | string | ✅ Required | Comma-separated list of tweet IDs to fetch. Example: `2104402989570297895,2104396243434651759` |
### Example Request
```
GET {{base_url}}/twitter/tweets?tweet_ids=2104402989570297895,2104396243434651759
```
### Notes
- You can pass a single tweet ID or multiple IDs separated by commas.
- Maximum recommended batch size: 100 tweet IDs per request.
### Example Response
Returns an array of tweet objects, each containing:
- `id` — Tweet ID
- `text` — Tweet content
- `author` — Author user object (id, name, userName, followersCount)
- `createdAt` — Timestamp
- `likeCount`, `replyCount`, `retweetCount`, `viewCount` — Engagement metrics
- `media` — Attached media if any
- `urls` — Expanded URLs in the tweet'
parameters:
- name: X-API-Key
in: header
schema:
type: string
example: '{{key}}'
- name: tweet_ids
in: query
schema:
type: string
example: 2104402989570297895,2104396243434651759
responses:
'200':
description: Successful response
content:
application/json: {}
operationId: getTwitterTweets
x-operation-id-source: derived
servers:
- url: https://xproapi.com/api
/twitter/tweet/replies/v2:
get:
tags:
- Tweet Activity
summary: Get Tweet Replies v2
description: '## Get Tweet Replies (v2)
Retrieves replies to a specific tweet using the v2 endpoint, with support for relevance-based or latest sorting.
### Query Parameters
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `tweetId` | string | ✅ Required | The unique ID of the tweet to fetch replies for. Example: `2109692430178255016` |
| `queryType` | string | Optional | Sort order of replies. Values: `Relevance` (default) or `Latest` |
| `cursor` | string | Optional | Pagination cursor for fetching the next page of replies |
### Example Request
```
GET {{base_url}}/twitter/tweet/replies/v2?tweetId=2109692430178255016&queryType=Relevance
```
### Example Response
Returns a paginated list of reply tweet objects, each containing:
- `id` — Tweet ID
- `text` — Reply text content
- `author` — Author user object (id, name, userName)
- `createdAt` — Timestamp of the reply
- `likeCount`, `replyCount`, `retweetCount` — Engagement metrics
- `cursor` — Pagination cursor for the next page'
parameters:
- name: X-API-Key
in: header
schema:
type: string
example: '{{key}}'
- name: tweetId
in: query
schema:
type: integer
example: '2109692430178255016'
- name: queryType
in: query
schema:
type: string
example: Relevance
responses:
'200':
description: Successful response
content:
application/json: {}
operationId: getTwitterTweetRepliesV2
x-operation-id-source: derived
servers:
- url: https://xproapi.com/api
/twitter/tweet/quotes:
get:
tags:
- Tweet Activity
summary: Get Tweet Quotes
description: '## Get Tweet Quotes
Retrieves a list of quote tweets for a specific tweet.
### Query Parameters
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `tweetId` | string | ✅ Required | The unique ID of the tweet to fetch quote tweets for. Example: `2109692430178255016` |
| `cursor` | string | Optional | Pagination cursor for fetching the next page of results |
### Example Request
```
GET {{base_url}}/twitter/tweet/quotes?tweetId=2109692430178255016
```
### Example Response
Returns a paginated list of quote tweet objects, each containing:
- `id` — Tweet ID
- `text` — Quote tweet text
- `author` — Author user object
- `quotedTweet` — The original tweet being quoted
- `createdAt` — Timestamp
- `likeCount`, `replyCount`, `retweetCount` — Engagement metrics
- `cursor` — Pagination cursor for the next page'
parameters:
- name: X-API-Key
in: header
schema:
type: string
example: '{{key}}'
- name: tweetId
in: query
schema:
type: integer
example: '2109692430178255016'
responses:
'200':
description: Successful response
content:
application/json: {}
operationId: getTwitterTweetQuotes
x-operation-id-source: derived
servers:
- url: https://xproapi.com/api
/twitter/tweet/retweeters:
get:
tags:
- Tweet Activity
summary: Get Tweet Retweeters
description: '## Get Tweet Retweeters
Retrieves a list of users who retweeted a specific tweet.
### Query Parameters
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `tweetId` | string | ✅ Required | The unique ID of the tweet to fetch retweeters for. Example: `2109692430178255016` |
| `cursor` | string | Optional | Pagination cursor for fetching the next page of results |
### Example Request
```
GET {{base_url}}/twitter/tweet/retweeters?tweetId=2109692430178255016
```
### Example Response
Returns a paginated list of user objects who retweeted the tweet, each containing:
- `id` — Twitter user ID
- `name` — Display name
- `userName` — Username handle
- `followersCount` — Number of followers
- `isVerified` — Verification status
- `cursor` — Pagination cursor for the next page'
parameters:
- name: X-API-Key
in: header
schema:
type: string
example: '{{key}}'
- name: tweetId
in: query
schema:
type: integer
example: '2109692430178255016'
responses:
'200':
description: Successful response
content:
application/json: {}
operationId: getTwitterTweetRetweeters
x-operation-id-source: derived
servers:
- url: https://xproapi.com/api
/twitter/tweet/thread_context:
get:
tags:
- Tweet Activity
summary: Get Tweet Thread Context
description: '## Get Tweet Thread Context
Retrieves the full thread context of a tweet, including parent tweets and replies in the thread chain.
### Query Parameters
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `tweetId` | string | ✅ Required | The unique ID of the tweet to fetch thread context for. Example: `2104402989570297895` |
### Example Request
```
GET {{base_url}}/twitter/tweet/thread_context?tweetId=2104402989570297895
```
### Example Response
Returns the thread context including:
- `tweet` — The requested tweet object
- `ancestors` — Array of parent tweets in the thread
- `replies` — Array of direct replies in the thread
- Each tweet contains: `id`, `text`, `author`, `createdAt`, engagement metrics'
parameters:
- name: X-API-Key
in: header
schema:
type: string
example: '{{key}}'
- name: tweetId
in: query
schema:
type: integer
example: '2104402989570297895'
responses:
'200':
description: Successful response
content:
application/json: {}
operationId: getTwitterTweetThreadContext
x-operation-id-source: derived
servers:
- url: https://xproapi.com/api
/twitter/tweet/replies:
get:
tags:
- Tweet Activity
summary: Get Tweet Replies
description: '## Get Tweet Replies
Retrieves replies to a specific tweet.
### Query Parameters
| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `tweetId` | string | ✅ Required | The unique ID of the tweet to fetch replies for. Example: `1846987139428634858` |
| `cursor` | string | Optional | Pagination cursor for fetching the next page of replies |
### Example Request
```
GET {{base_url}}/twitter/tweet/replies?tweetId=1846987139428634858
```
### Example Response
Returns a paginated list of reply tweet objects, each containing:
- `id` — Tweet ID
- `text` — Reply text content
- `author` — Author user object (id, name, userName)
- `createdAt` — Timestamp of the reply
- `likeCount`, `replyCount`, `retweetCount` — Engagement metrics
- `cursor` — Pagination cursor for the next page'
parameters:
- name: X-API-Key
in: header
schema:
type: string
example: '{{key}}'
- name: tweetId
in: query
schema:
type: integer
example: '1846987139428634858'
responses:
'200':
description: Successful response
content:
application/json: {}
operationId: getTwitterTweetReplies
x-operation-id-source: derived
servers:
- url: https://xproapi.com/api
/twitter/article:
get:
tags:
- Tweet Activity
operationId: article
summary: Get article
description: 'An X article (long-form post) by the id of the tweet that shares it: title, cover and content blocks (unstyled, header-one…, list items, image, gif, markdown, divider).
Costs 70 credits per article.'
externalDocs:
url: https://xproapi.com/docs/article/
parameters:
- name: tweet_id
in: query
required: true
description: Id of the tweet carrying the article.
schema:
type: string
minLength: 1
example: '1905545699552375179'
responses:
'200':
description: Success. Costs 70 credits per article.
headers:
X-Request-Id:
$ref: '#/components/headers/RequestId'
X-RateLimit-Limit:
$ref: '#/components/headers/RateLimitLimit'
X-RateLimit-Remaining:
$ref: '#/components/headers/RateLimitRemaining'
content:
application/json:
schema:
type: object
properties:
article:
type: object
properties:
author:
$ref: '#/components/schemas/User'
replyCount:
type: integer
likeCount:
type: integer
quoteCount:
type: integer
viewCount:
type: integer
createdAt:
type: string
title:
type: string
preview_text:
type: string
cover_media_img_url:
type: string
contents:
type: array
items:
type: object
properties:
type:
type: string
text:
type: string
inlineStyleRanges:
type: array
items: {}
url:
type: string
previewUrl:
type: string
width:
type: integer
height:
type: integer
status:
type: string
message:
type: string
required:
- article
- status
- message
example:
article:
author:
type: user
id: '44196397'
userName: writer
name: Elon Musk
url: https://x.com/elonmusk
description: Read @Grok
profilePicture: https://pbs.twimg.com/profile_images/1234567890/avatar_normal.jpg
followers: 219000000
following: 1100
isBlueVerified: true
protected: false
unavailable: false
replyCount: 40
likeCount: 900
quoteCount: 12
viewCount: 120000
createdAt: Fri Mar 28 08:00:00 +0000 2025
title: How we built it
preview_text: A short preview
cover_media_img_url: https://pbs.twimg.com/media/cover.jpg
contents:
- type: header-one
text: Intro
inlineStyleRanges: []
- type: image
url: https://pbs.twimg.com/media/one.jpg
previewUrl: https://pbs.twimg.com/media/one.jpg
width: 1200
height: 800
status: success
message: success
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'402':
$ref: '#/components/responses/InsufficientCredits'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'429':
$ref: '#/components/responses/RateLimited'
'500':
$ref: '#/components/responses/ServerError'
'502':
$ref: '#/components/responses/UpstreamError'
'503':
$ref: '#/components/responses/Unavailable'
x-codeSamples:
- lang: Shell
label: cURL
source: "curl \"https://xproapi.com/api/twitter/article?tweet_id=1905545699552375179\" \\\n -H \"X-API-Key: YOUR_API_KEY\""
- lang: Python
label: Python SDK
source: '# pip install git+https://github.com/Xproapi-LLC/xproapi_python.git
import os
from xproapi import Xproapi
x = Xproapi(os.environ["XPROAPI_KEY"])
result = x.article("1905545699552375179")
print(result)'
- lang: JavaScript
label: Node.js SDK
source: '// npm install github:Xproapi-LLC/xproapi_node
import { Xproapi } from ''xproapi'';
const x = new Xproapi({ apiKey: process.env.XPROAPI_KEY });
const result = await x.article(''1905545699552375179'');
console.log(result);'
- lang: PHP
label: PHP SDK
source: '<?php
// composer config repositories.xproapi vcs https://github.com/Xproapi-LLC/xproapi_php
// composer require xproapi/xproapi-php:dev-master
require ''vendor/autoload.php'';
use Xproapi\Client;
$x = new Client(getenv(''XPROAPI_KEY''));
$result = $x->article(''1905545699552375179'');
print_r($result);'
- lang: Go
label: Go SDK
source: "// go get github.com/Xproapi-LLC/xproapi_go\npackage main\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"log\"\n\t\"os\"\n\n\txproapi \"github.com/Xproapi-LLC/xproapi_go\"\n)\n\nfunc main() {\n\tx, err := xproapi.New(os.Getenv(\"XPROAPI_KEY\"))\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tctx := context.Background()\n\n\tresult, err := x.Article(ctx, \"1905545699552375179\")\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tfmt.Println(result)\n}"
- lang: Java
label: Java SDK
source: "// Build the client first: https://xproapi.com/sdks/java/#install\nimport com.xproapi.Xproapi;\nimport java.util.List;\nimport java.util.Map;\n\npublic class Example {\n public static void main(String[] args) {\n Xproapi x = new Xproapi(System.getenv(\"XPROAPI_KEY\"));\n\n Map<String, Object> result = x.article(\"1905545699552375179\");\n System.out.println(result);\n }\n}"
- lang: C#
label: C# SDK
source: '// git clone https://github.com/Xproapi-LLC/xproapi_csharp.git
// dotnet add reference xproapi_csharp/src/Xproapi.csproj
using Xproapi;
var x = new XproapiClient(Environment.GetEnvironmentVariable("XPROAPI_KEY")!);
var result = await x.ArticleAsync("1905545699552375179");
Console.WriteLine(result);'
security:
- ApiKeyAuth: []
servers:
- url: https://xproapi.com/api
description: Production
components:
schemas:
Error:
type: object
required:
- status
- error
- message
- request_id
properties:
status:
type: string
const: error
error:
type: integer
description: The HTTP status code.
message:
type: string
description: What went wrong, in plain English.
request_id:
type: string
description: Same as the X-Request-Id header.
User:
type: object
description: A public X account.
required:
- type
- id
- userName
- name
- url
- description
- profilePicture
- followers
- following
- isBlueVerified
- protected
- unavailable
properties:
type:
type: string
const: user
id:
type: string
pattern: ^[0-9]+$
description: Numeric user id, as a string. It never changes; store this rather than the username.
example: '44196397'
userName:
type: string
description: Username without the @. Can change.
example: elonmusk
name:
type: string
url:
type: string
format: uri
description:
type: string
description: Bio; empty when none.
profilePicture:
type:
- string
- 'null'
format: uri
followers:
type: integer
minimum: 0
following:
type: integer
minimum: 0
isBlueVerified:
type: boolean
protected:
type: boolean
description: Protected accounts’ tweets, followers and following can’t be read.
unavailable:
type: boolean
Tweet:
type: object
description: A public tweet.
required:
- type
- id
- url
- text
- createdAt
- author
properties:
type:
type: string
const: tweet
id:
type: string
pattern: ^[0-9]+$
description: Tweet id, as a string (64-bit).
example: '1846987139428634858'
url:
type: string
format: uri
text:
type: string
source:
type: string
retweetCount:
type: integer
minimum: 0
replyCount:
type: integer
minimum: 0
likeCount:
type: integer
minimum: 0
quoteCount:
type: integer
minimum: 0
viewCount:
type: integer
minimum: 0
bookmarkCount:
type: integer
minimum: 0
createdAt:
type: string
description: X’s date format, e.g. "Thu Oct 17 18:30:00 +0000 2024" (UTC).
lang:
type: string
isReply:
type: boolean
inReplyToId:
type:
- string
- 'null'
conversationId:
type:
- string
- 'null'
displayTextRange:
type: array
items:
type: integer
minItems: 2
maxItems: 2
inReplyToUserId:
type:
- string
- 'null'
inReplyToUsername:
type:
- string
- 'null'
author:
$ref: '#/components/schemas/User'
entities:
type: object
description: Hashtags, urls and user_mentions as X returns them.
extendedEntities:
type: object
description: Media as X returns it; empty when none.
quoted_tweet:
oneOf:
- $ref: '#/components/schemas/Tweet'
- type: 'null'
retweeted_tweet:
oneOf:
- $ref: '#/components/schemas/Tweet'
- type: 'null'
isLimitedReply:
type: boolean
responses:
RateLimited:
description: Over this key’s per-minute limit, or X is rate limiting. Wait Retry-After seconds. Not charged.
headers:
X-Request-Id:
$ref: '#/components/headers/RequestId'
Retry-After:
$ref: '#/components/headers/RetryAfter'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
status: error
error: 429
message: Rate limit reached (60 requests a minute). Retry in 30 seconds.
request_id: req_01jc3v8k2m4n6p8q0r2s4t6v8w
Unauthorized:
description: Missing, invalid or revoked API key. Not charged.
headers:
X-Request-Id:
$ref: '#/components/headers/RequestId'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
status: error
error: 401
message: Missing or invalid API key. Send it in the X-API-Key header.
request_id: req_01jc3v8k2m4n6p8q0r2s4t6v8w
Forbidden:
description: The account can’t use the API (suspended or email not confirmed). Not charged.
headers:
X-Request-Id:
$ref: '#/components/headers/RequestId'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
status: error
error: 403
message: This account can’t use the API right now.
request_id: req_01jc3v8k2m4n6p8q0r2s4t6v8w
Unavailable:
description: Live data or this endpoint is temporarily unavailable. Retry later. Not charged.
headers:
X-Request-Id:
$ref: '#/components/headers/RequestId'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
status: error
error: 503
message: Live data is temporarily unavailable. Try again later.
request_id: req_01jc3v8k2m4n6p8q0r2s4t6v8w
UpstreamError:
description: X couldn’t be reached. Retry with backoff. Not charged.
headers:
X-Request-Id:
$ref: '#/components/headers/RequestId'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
status: error
error: 502
message: Couldn’t reach X right now. Try again in a moment.
request_id: req_01jc3v8k2m4n6p8q0r2s4t6v8w
BadRequest:
description: A missing or invalid parameter, or a cursor that can’t be used. Not charged.
headers:
X-Request-Id:
$ref: '#/components/headers/RequestId'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
status: error
error: 400
message: userName is required.
request_id: req_01jc3v8k2m4n6p8q0r2s4t6v8w
ServerError:
description: Unexpected error on our side. Quote the request id to support. Not charged.
headers:
X-Request-Id:
$ref: '#/components/headers/RequestId'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
status: error
error: 500
message: Something went wrong on our side. Quote the request ID if you contact support.
request_id: req_01jc3v8k2m4n6p8q0r2s4t6v8w
InsufficientCredits:
description: Not enough credits for this request. Not charged.
headers:
X-Request-Id:
$ref: '#/components/headers/RequestId'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
status: error
error: 402
message: Not enough credits. Top up in your panel.
request_id: req_01jc3v8k2m4n6p8q0r2s4t6v8w
NotFound:
description: The user, tweet or article doesn’t exist, or was suspended or deleted. Not charged.
headers:
X-Request-Id:
$ref: '#/components/headers/RequestId'
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
example:
status: error
error: 404
message: User not found. Check the userName, or the account may be suspended.
request_id: req_01jc3v8k2m4n6p8q0r2s4t6v8w
headers:
RetryAfter:
description: Seconds to wait before retrying.
schema:
type: integer
RateLimitRemaining:
description: Requests left in the current minute for this API key.
schema:
type: integer
RateLimitLimit:
description: Requests allowed per minute for this API key.
schema:
type: integer
RequestId:
description: Unique id of this call. Quote it when contacting support.
schema:
type: string
example: req_01jc3v8k2m4n6p8q0r2s4t6v8w
securitySchemes:
ApiKeyAuth:
type: apiKey
in: header
name: X-API-Key
description: Your API key, from https://xproapi.com/app/api/keys. Keys start with xp_.
externalDocs:
description: API documentation and guides
url: https://xproapi.com/docs/
x-refined-from:
- xproapi-openapi.json
- xproapi-openapi.json