X (TWITTER) SCRAPER API

X (Twitter) scraper API for tweets, timelines and followers

Search tweets with the operators you already use on X, read any public timeline, and list who follows, retweets or quotes. Pay per tweet, starting with free credits.

request.ts
import { Bridgly } from "@bridgly/sdk";
const client = new Bridgly({ apiKey: "bgly_YOUR_KEY" });
const res = await client.x.search({
query: "from:OpenAI filter:links",
sortOrder: "Latest",
count: 10
});
if (res.type === "success") {
console.log(res.data);
}

npm install @bridgly/sdk

[ ENDPOINTS ]

All 12 X (Twitter) endpoints

Tweet search takes a raw query, so anything that works in the X search box works here: from:, to:, exact phrases, min_faves:, filter:links and the rest. Results can be ordered newest-first or by X’s own ranking, and limited to the last N hours.

Every tweet comes back with its reply, retweet, like, quote, bookmark and view counts, the language X detected, its hashtags, mentions, expanded links and media, and enough about the author to show it without a second call.

A profile lookup returns follower and following counts, tweet, like and media totals, verification type, bio links and the pinned tweet. From a user you can list their tweets, replies, media, followers and following. From a tweet you can list its reply thread, who retweeted it and who quoted it.

Tweet API

POST/x/get-tweet-detail
Tweet scraper API: get any tweet on X (Twitter) by ID with its text, media, author and like, retweet, reply, quote and view counts, plus its replies.1 credit per requestDetails →
Request body
tweetIdstringrequired
Numeric ID of the focal tweet to expand, or the tweet link, e.g. "1234567890".
sortOrderenum
Reply ordering: "Relevance" for X's ranking (default), "Recency" for newest first, "Likes" for most liked first.
Relevance | Recency | Likes
cacheMaxAgeHoursinteger
Accept a cached result up to this many hours old, at no cost; its `cachedAt` says when it was fetched. Without one that recent, fresh data is fetched at the normal price. Leave it out to always get fresh data, e.g. 24.
cacheOnlyboolean
Return only a cached result, never fresh data. With `cacheMaxAgeHours`, only one that recent; without it, the latest of any age. Responds 404, at no cost, when there is none, e.g. true.
Response
200 OK · application/json
{
"timeMs": 1840,
"creditsCost": 1,
"cachedAt": "2026-01-15T09:30:00.000Z",
"data": {
"replies": [
{
"id": "string",
"url": "string",
"text": "string",
"author": {
"userId": "string",
"username": "string",
"profileUrl": "string",
"displayName": "string",
"bio": "string",
"avatarUrl": "string",
"bannerUrl": "string",
"location": "string",
"followerCount": 0,
"followingCount": 0,
"tweetCount": 0,
"mediaCount": 0,
"likeCount": 0,
"listedCount": 0,
"pinnedTweetId": "string",
"pinnedTweetUrl": "string",
"createdAt": "2026-01-15T09:30:00.000Z",
"createdAtEpochMs": 0,
"isVerified": true,
"isBlueVerified": true
},
"createdAt": "2026-01-15T09:30:00.000Z",
"createdAtEpochMs": 0,
"source": "string",
"conversationId": "string",
"replyCount": 0,
"retweetCount": 0,
"likeCount": 0,
"quoteCount": 0,
"bookmarkCount": 0,
"viewCount": 0,
"replyToTweetId": "string",
"replyToUserId": "string",
"replyToUsername": "string",
"replyToTweetUrl": "string",
"isQuote": true,
"quotedTweetId": "string",
"quotedTweetUrl": "string",
"quotedTweetAuthorId": "string",
"quotedTweetAuthorUsername": "string",
"retweetedTweetId": "string",
"retweetedTweetUrl": "string",
"retweetedTweetAuthorId": "string",
"retweetedTweetAuthorUsername": "string",
"lang": "string",
"isSensitive": true,
"hashtags": [
"string"
],
"mentions": [
{
"userId": "string",
"username": "string",
"displayName": "string",
"profileUrl": "string"
}
],
"urls": [
{
"shortUrl": "string",
"expandedUrl": "string",
"displayUrl": "string"
}
],
"media": [
{
"type": "photo",
"url": "string",
"mediaKey": "string",
"mediaId": "string",
"width": 0,
"height": 0,
"expandedUrl": "string",
"videoUrl": "string",
"durationMs": 0
}
]
}
],
"nextCursor": "string",
"tweet": {
"id": "string",
"url": "string",
"text": "string",
"author": {
"userId": "string",
"username": "string",
"profileUrl": "string",
"displayName": "string",
"bio": "string",
"avatarUrl": "string",
"bannerUrl": "string",
"location": "string",
"followerCount": 0,
"followingCount": 0,
"tweetCount": 0,
"mediaCount": 0,
"likeCount": 0,
"listedCount": 0,
"pinnedTweetId": "string",
"pinnedTweetUrl": "string",
"createdAt": "2026-01-15T09:30:00.000Z",
"createdAtEpochMs": 0,
"isVerified": true,
"isBlueVerified": true
},
"createdAt": "2026-01-15T09:30:00.000Z",
"createdAtEpochMs": 0,
"source": "string",
"conversationId": "string",
"replyCount": 0,
"retweetCount": 0,
"likeCount": 0,
"quoteCount": 0,
"bookmarkCount": 0,
"viewCount": 0,
"replyToTweetId": "string",
"replyToUserId": "string",
"replyToUsername": "string",
"replyToTweetUrl": "string",
"isQuote": true,
"quotedTweetId": "string",
"quotedTweetUrl": "string",
"quotedTweetAuthorId": "string",
"quotedTweetAuthorUsername": "string",
"retweetedTweetId": "string",
"retweetedTweetUrl": "string",
"retweetedTweetAuthorId": "string",
"retweetedTweetAuthorUsername": "string",
"lang": "string",
"isSensitive": true,
"hashtags": [
"string"
],
"mentions": [
{
"userId": "string",
"username": "string",
"displayName": "string",
"profileUrl": "string"
}
],
"urls": [
{
"shortUrl": "string",
"expandedUrl": "string",
"displayUrl": "string"
}
],
"media": [
{
"type": "photo",
"url": "string",
"mediaKey": "string",
"mediaId": "string",
"width": 0,
"height": 0,
"expandedUrl": "string",
"videoUrl": "string",
"durationMs": 0
}
]
}
}
}

Tweet Replies API

POST/x/get-tweet-replies
Tweet replies API: list the replies to any tweet on X (Twitter), with the threads beneath them and each reply’s text, author and engagement, as JSON.1 credit per requestDetails →
Request body
tweetIdstringrequired
Numeric ID of the tweet whose replies to list, or the tweet link, e.g. "1234567890".
cursorstring
The previous response's `nextCursor`, to fetch the next page. Omit it for the first page.
sortOrderenum
Reply ordering: "Relevance" for X's ranking (default), "Recency" for newest first, "Likes" for most liked first.
Relevance | Recency | Likes
countinteger · 1–20 · default 20
Number of results to return (1–20). Defaults to 20.
cacheMaxAgeHoursinteger
Accept a cached result up to this many hours old, at no cost; its `cachedAt` says when it was fetched. Without one that recent, fresh data is fetched at the normal price. Leave it out to always get fresh data, e.g. 24.
cacheOnlyboolean
Return only a cached result, never fresh data. With `cacheMaxAgeHours`, only one that recent; without it, the latest of any age. Responds 404, at no cost, when there is none, e.g. true.
Response
200 OK · application/json
{
"timeMs": 1840,
"creditsCost": 1,
"cachedAt": "2026-01-15T09:30:00.000Z",
"data": {
"replies": [
{
"id": "string",
"url": "string",
"text": "string",
"author": {
"userId": "string",
"username": "string",
"profileUrl": "string",
"displayName": "string",
"bio": "string",
"avatarUrl": "string",
"bannerUrl": "string",
"location": "string",
"followerCount": 0,
"followingCount": 0,
"tweetCount": 0,
"mediaCount": 0,
"likeCount": 0,
"listedCount": 0,
"pinnedTweetId": "string",
"pinnedTweetUrl": "string",
"createdAt": "2026-01-15T09:30:00.000Z",
"createdAtEpochMs": 0,
"isVerified": true,
"isBlueVerified": true
},
"createdAt": "2026-01-15T09:30:00.000Z",
"createdAtEpochMs": 0,
"source": "string",
"conversationId": "string",
"replyCount": 0,
"retweetCount": 0,
"likeCount": 0,
"quoteCount": 0,
"bookmarkCount": 0,
"viewCount": 0,
"replyToTweetId": "string",
"replyToUserId": "string",
"replyToUsername": "string",
"replyToTweetUrl": "string",
"isQuote": true,
"quotedTweetId": "string",
"quotedTweetUrl": "string",
"quotedTweetAuthorId": "string",
"quotedTweetAuthorUsername": "string",
"retweetedTweetId": "string",
"retweetedTweetUrl": "string",
"retweetedTweetAuthorId": "string",
"retweetedTweetAuthorUsername": "string",
"lang": "string",
"isSensitive": true,
"hashtags": [
"string"
],
"mentions": [
{
"userId": "string",
"username": "string",
"displayName": "string",
"profileUrl": "string"
}
],
"urls": [
{
"shortUrl": "string",
"expandedUrl": "string",
"displayUrl": "string"
}
],
"media": [
{
"type": "photo",
"url": "string",
"mediaKey": "string",
"mediaId": "string",
"width": 0,
"height": 0,
"expandedUrl": "string",
"videoUrl": "string",
"durationMs": 0
}
]
}
],
"nextCursor": "string"
}
}

Twitter User Search API

POST/x/search/users
Twitter user search API: find X (Twitter) accounts by name or keyword, with handle, name, bio, location, website and follower, following and tweet counts.1 credit per requestDetails →
Request body
querystringrequired
Raw search query — supports all X advanced-search operators, e.g. "openai lang:en". At most 512 characters, the longest search X accepts; withinHours and lang are added to the query and count toward it.
cursorstring
The previous response's `nextCursor`, to fetch the next page. Omit it for the first page.
countinteger · 1–20 · default 20
Number of results to return (1–20). Defaults to 20.
cacheMaxAgeHoursinteger
Accept a cached result up to this many hours old, at no cost; its `cachedAt` says when it was fetched. Without one that recent, fresh data is fetched at the normal price. Leave it out to always get fresh data, e.g. 24.
cacheOnlyboolean
Return only a cached result, never fresh data. With `cacheMaxAgeHours`, only one that recent; without it, the latest of any age. Responds 404, at no cost, when there is none, e.g. true.
Response
200 OK · application/json
{
"timeMs": 1840,
"creditsCost": 1,
"cachedAt": "2026-01-15T09:30:00.000Z",
"data": {
"nextCursor": "string",
"users": [
{
"userId": "string",
"username": "string",
"profileUrl": "string",
"displayName": "string",
"bio": "string",
"avatarUrl": "string",
"bannerUrl": "string",
"location": "string",
"websiteUrl": "string",
"bioUrls": [
{
"url": "string",
"displayUrl": "string"
}
],
"followerCount": 0,
"followingCount": 0,
"fastFollowersCount": 0,
"normalFollowersCount": 0,
"tweetCount": 0,
"likeCount": 0,
"mediaCount": 0,
"listedCount": 0,
"creatorSubscriptionsCount": 0,
"highlightedTweetsCount": 0,
"pinnedTweetId": "string",
"pinnedTweetUrl": "string",
"isVerified": true,
"isBlueVerified": true,
"verifiedType": "string",
"isIdentityVerified": true,
"isProtected": true,
"canDm": true,
"professionalType": "string",
"professionalId": "string",
"professionalCategoryId": 0,
"professionalCategoryName": "string",
"affiliate": {
"label": "string",
"username": "string",
"profileUrl": "string",
"badgeUrl": "string"
},
"tipJar": {
"isEnabled": true,
"bitcoinHandle": "string",
"ethereumHandle": "string",
"venmoHandle": "string",
"venmoUrl": "string",
"cashAppHandle": "string",
"cashAppUrl": "string",
"patreonHandle": "string",
"patreonUrl": "string"
},
"createdAt": "2026-01-15T09:30:00.000Z"
}
]
}
}

Twitter User API

POST/x/get-user
Twitter profile API: get any X (Twitter) profile by handle with bio, location, website, follower and following counts, verification, join date and user ID.1 credit per requestDetails →
Request body
handlestringrequired
X handle / screen name, with or without the @, or the profile link, e.g. "elonmusk" or "https://x.com/elonmusk".
cacheMaxAgeHoursinteger
Accept a cached result up to this many hours old, at no cost; its `cachedAt` says when it was fetched. Without one that recent, fresh data is fetched at the normal price. Leave it out to always get fresh data, e.g. 24.
cacheOnlyboolean
Return only a cached result, never fresh data. With `cacheMaxAgeHours`, only one that recent; without it, the latest of any age. Responds 404, at no cost, when there is none, e.g. true.
Response
200 OK · application/json
{
"timeMs": 1840,
"creditsCost": 1,
"cachedAt": "2026-01-15T09:30:00.000Z",
"data": {
"userId": "string",
"username": "string",
"profileUrl": "string",
"displayName": "string",
"bio": "string",
"avatarUrl": "string",
"bannerUrl": "string",
"location": "string",
"websiteUrl": "string",
"bioUrls": [
{
"url": "string",
"displayUrl": "string"
}
],
"followerCount": 0,
"followingCount": 0,
"fastFollowersCount": 0,
"normalFollowersCount": 0,
"tweetCount": 0,
"likeCount": 0,
"mediaCount": 0,
"listedCount": 0,
"creatorSubscriptionsCount": 0,
"highlightedTweetsCount": 0,
"pinnedTweetId": "string",
"pinnedTweetUrl": "string",
"isVerified": true,
"isBlueVerified": true,
"verifiedType": "string",
"isIdentityVerified": true,
"isProtected": true,
"canDm": true,
"professionalType": "string",
"professionalId": "string",
"professionalCategoryId": 0,
"professionalCategoryName": "string",
"affiliate": {
"label": "string",
"username": "string",
"profileUrl": "string",
"badgeUrl": "string"
},
"tipJar": {
"isEnabled": true,
"bitcoinHandle": "string",
"ethereumHandle": "string",
"venmoHandle": "string",
"venmoUrl": "string",
"cashAppHandle": "string",
"cashAppUrl": "string",
"patreonHandle": "string",
"patreonUrl": "string"
},
"createdAt": "2026-01-15T09:30:00.000Z"
}
}

Twitter User Tweets API

POST/x/get-user-tweets
Twitter timeline API: list any X (Twitter) account’s tweets, newest first, with text, media, links and like, retweet, reply and view counts, as JSON.1 credit per requestDetails →
Request body
userIdstringrequired
Numeric user ID (rest_id) whose tweets to list, e.g. "44196397". Look it up from a handle with get-user.
cursorstring
The previous response's `nextCursor`, to fetch the next page. Omit it for the first page.
countinteger · 1–20 · default 20
Number of results to return (1–20). Defaults to 20.
cacheMaxAgeHoursinteger
Accept a cached result up to this many hours old, at no cost; its `cachedAt` says when it was fetched. Without one that recent, fresh data is fetched at the normal price. Leave it out to always get fresh data, e.g. 24.
cacheOnlyboolean
Return only a cached result, never fresh data. With `cacheMaxAgeHours`, only one that recent; without it, the latest of any age. Responds 404, at no cost, when there is none, e.g. true.
Response
200 OK · application/json
{
"timeMs": 1840,
"creditsCost": 1,
"cachedAt": "2026-01-15T09:30:00.000Z",
"data": {
"nextCursor": "string",
"tweets": [
{
"id": "string",
"url": "string",
"text": "string",
"author": {
"userId": "string",
"username": "string",
"profileUrl": "string",
"displayName": "string",
"bio": "string",
"avatarUrl": "string",
"bannerUrl": "string",
"location": "string",
"followerCount": 0,
"followingCount": 0,
"tweetCount": 0,
"mediaCount": 0,
"likeCount": 0,
"listedCount": 0,
"pinnedTweetId": "string",
"pinnedTweetUrl": "string",
"createdAt": "2026-01-15T09:30:00.000Z",
"createdAtEpochMs": 0,
"isVerified": true,
"isBlueVerified": true
},
"createdAt": "2026-01-15T09:30:00.000Z",
"createdAtEpochMs": 0,
"source": "string",
"conversationId": "string",
"replyCount": 0,
"retweetCount": 0,
"likeCount": 0,
"quoteCount": 0,
"bookmarkCount": 0,
"viewCount": 0,
"replyToTweetId": "string",
"replyToUserId": "string",
"replyToUsername": "string",
"replyToTweetUrl": "string",
"isQuote": true,
"quotedTweetId": "string",
"quotedTweetUrl": "string",
"quotedTweetAuthorId": "string",
"quotedTweetAuthorUsername": "string",
"retweetedTweetId": "string",
"retweetedTweetUrl": "string",
"retweetedTweetAuthorId": "string",
"retweetedTweetAuthorUsername": "string",
"lang": "string",
"isSensitive": true,
"hashtags": [
"string"
],
"mentions": [
{
"userId": "string",
"username": "string",
"displayName": "string",
"profileUrl": "string"
}
],
"urls": [
{
"shortUrl": "string",
"expandedUrl": "string",
"displayUrl": "string"
}
],
"media": [
{
"type": "photo",
"url": "string",
"mediaKey": "string",
"mediaId": "string",
"width": 0,
"height": 0,
"expandedUrl": "string",
"videoUrl": "string",
"durationMs": 0
}
]
}
]
}
}

Twitter Replies API

POST/x/get-user-replies
Twitter replies API: list the replies any X (Twitter) account posted to other tweets, with the tweet each one answers, text, time and engagement counts.1 credit per requestDetails →
Request body
userIdstringrequired
Numeric user ID (rest_id) whose tweets to list, e.g. "44196397". Look it up from a handle with get-user.
cursorstring
The previous response's `nextCursor`, to fetch the next page. Omit it for the first page.
countinteger · 1–20 · default 20
Number of results to return (1–20). Defaults to 20.
cacheMaxAgeHoursinteger
Accept a cached result up to this many hours old, at no cost; its `cachedAt` says when it was fetched. Without one that recent, fresh data is fetched at the normal price. Leave it out to always get fresh data, e.g. 24.
cacheOnlyboolean
Return only a cached result, never fresh data. With `cacheMaxAgeHours`, only one that recent; without it, the latest of any age. Responds 404, at no cost, when there is none, e.g. true.
Response
200 OK · application/json
{
"timeMs": 1840,
"creditsCost": 1,
"cachedAt": "2026-01-15T09:30:00.000Z",
"data": {
"nextCursor": "string",
"tweets": [
{
"id": "string",
"url": "string",
"text": "string",
"author": {
"userId": "string",
"username": "string",
"profileUrl": "string",
"displayName": "string",
"bio": "string",
"avatarUrl": "string",
"bannerUrl": "string",
"location": "string",
"followerCount": 0,
"followingCount": 0,
"tweetCount": 0,
"mediaCount": 0,
"likeCount": 0,
"listedCount": 0,
"pinnedTweetId": "string",
"pinnedTweetUrl": "string",
"createdAt": "2026-01-15T09:30:00.000Z",
"createdAtEpochMs": 0,
"isVerified": true,
"isBlueVerified": true
},
"createdAt": "2026-01-15T09:30:00.000Z",
"createdAtEpochMs": 0,
"source": "string",
"conversationId": "string",
"replyCount": 0,
"retweetCount": 0,
"likeCount": 0,
"quoteCount": 0,
"bookmarkCount": 0,
"viewCount": 0,
"replyToTweetId": "string",
"replyToUserId": "string",
"replyToUsername": "string",
"replyToTweetUrl": "string",
"isQuote": true,
"quotedTweetId": "string",
"quotedTweetUrl": "string",
"quotedTweetAuthorId": "string",
"quotedTweetAuthorUsername": "string",
"retweetedTweetId": "string",
"retweetedTweetUrl": "string",
"retweetedTweetAuthorId": "string",
"retweetedTweetAuthorUsername": "string",
"lang": "string",
"isSensitive": true,
"hashtags": [
"string"
],
"mentions": [
{
"userId": "string",
"username": "string",
"displayName": "string",
"profileUrl": "string"
}
],
"urls": [
{
"shortUrl": "string",
"expandedUrl": "string",
"displayUrl": "string"
}
],
"media": [
{
"type": "photo",
"url": "string",
"mediaKey": "string",
"mediaId": "string",
"width": 0,
"height": 0,
"expandedUrl": "string",
"videoUrl": "string",
"durationMs": 0
}
]
}
]
}
}

Twitter Media API

POST/x/get-user-media
Twitter media API: list an X (Twitter) account’s tweets with photos or videos, with direct media URLs, text, time and engagement counts, as JSON.1 credit per requestDetails →
Request body
userIdstringrequired
Numeric user ID (rest_id) whose tweets to list, e.g. "44196397". Look it up from a handle with get-user.
cursorstring
The previous response's `nextCursor`, to fetch the next page. Omit it for the first page.
countinteger · 1–100 · default 100
Number of results to return (1–100). Defaults to 100.
cacheMaxAgeHoursinteger
Accept a cached result up to this many hours old, at no cost; its `cachedAt` says when it was fetched. Without one that recent, fresh data is fetched at the normal price. Leave it out to always get fresh data, e.g. 24.
cacheOnlyboolean
Return only a cached result, never fresh data. With `cacheMaxAgeHours`, only one that recent; without it, the latest of any age. Responds 404, at no cost, when there is none, e.g. true.
Response
200 OK · application/json
{
"timeMs": 1840,
"creditsCost": 1,
"cachedAt": "2026-01-15T09:30:00.000Z",
"data": {
"nextCursor": "string",
"tweets": [
{
"id": "string",
"url": "string",
"text": "string",
"author": {
"userId": "string",
"username": "string",
"profileUrl": "string",
"displayName": "string",
"bio": "string",
"avatarUrl": "string",
"bannerUrl": "string",
"location": "string",
"followerCount": 0,
"followingCount": 0,
"tweetCount": 0,
"mediaCount": 0,
"likeCount": 0,
"listedCount": 0,
"pinnedTweetId": "string",
"pinnedTweetUrl": "string",
"createdAt": "2026-01-15T09:30:00.000Z",
"createdAtEpochMs": 0,
"isVerified": true,
"isBlueVerified": true
},
"createdAt": "2026-01-15T09:30:00.000Z",
"createdAtEpochMs": 0,
"source": "string",
"conversationId": "string",
"replyCount": 0,
"retweetCount": 0,
"likeCount": 0,
"quoteCount": 0,
"bookmarkCount": 0,
"viewCount": 0,
"replyToTweetId": "string",
"replyToUserId": "string",
"replyToUsername": "string",
"replyToTweetUrl": "string",
"isQuote": true,
"quotedTweetId": "string",
"quotedTweetUrl": "string",
"quotedTweetAuthorId": "string",
"quotedTweetAuthorUsername": "string",
"retweetedTweetId": "string",
"retweetedTweetUrl": "string",
"retweetedTweetAuthorId": "string",
"retweetedTweetAuthorUsername": "string",
"lang": "string",
"isSensitive": true,
"hashtags": [
"string"
],
"mentions": [
{
"userId": "string",
"username": "string",
"displayName": "string",
"profileUrl": "string"
}
],
"urls": [
{
"shortUrl": "string",
"expandedUrl": "string",
"displayUrl": "string"
}
],
"media": [
{
"type": "photo",
"url": "string",
"mediaKey": "string",
"mediaId": "string",
"width": 0,
"height": 0,
"expandedUrl": "string",
"videoUrl": "string",
"durationMs": 0
}
]
}
]
}
}

Twitter Followers API

POST/x/get-followers
Twitter followers API: export the followers of any X (Twitter) account, each with handle, name, bio, location and follower and following counts, as JSON.1 credit per requestDetails →
Request body
userIdstringrequired
Numeric user ID (rest_id) whose tweets to list, e.g. "44196397". Look it up from a handle with get-user.
cursorstring
The previous response's `nextCursor`, to fetch the next page. Omit it for the first page.
countinteger · 1–50 · default 50
Number of results to return (1–50). Defaults to 50.
cacheMaxAgeHoursinteger
Accept a cached result up to this many hours old, at no cost; its `cachedAt` says when it was fetched. Without one that recent, fresh data is fetched at the normal price. Leave it out to always get fresh data, e.g. 24.
cacheOnlyboolean
Return only a cached result, never fresh data. With `cacheMaxAgeHours`, only one that recent; without it, the latest of any age. Responds 404, at no cost, when there is none, e.g. true.
Response
200 OK · application/json
{
"timeMs": 1840,
"creditsCost": 1,
"cachedAt": "2026-01-15T09:30:00.000Z",
"data": {
"nextCursor": "string",
"users": [
{
"userId": "string",
"username": "string",
"profileUrl": "string",
"displayName": "string",
"bio": "string",
"avatarUrl": "string",
"bannerUrl": "string",
"location": "string",
"websiteUrl": "string",
"bioUrls": [
{
"url": "string",
"displayUrl": "string"
}
],
"followerCount": 0,
"followingCount": 0,
"fastFollowersCount": 0,
"normalFollowersCount": 0,
"tweetCount": 0,
"likeCount": 0,
"mediaCount": 0,
"listedCount": 0,
"creatorSubscriptionsCount": 0,
"highlightedTweetsCount": 0,
"pinnedTweetId": "string",
"pinnedTweetUrl": "string",
"isVerified": true,
"isBlueVerified": true,
"verifiedType": "string",
"isIdentityVerified": true,
"isProtected": true,
"canDm": true,
"professionalType": "string",
"professionalId": "string",
"professionalCategoryId": 0,
"professionalCategoryName": "string",
"affiliate": {
"label": "string",
"username": "string",
"profileUrl": "string",
"badgeUrl": "string"
},
"tipJar": {
"isEnabled": true,
"bitcoinHandle": "string",
"ethereumHandle": "string",
"venmoHandle": "string",
"venmoUrl": "string",
"cashAppHandle": "string",
"cashAppUrl": "string",
"patreonHandle": "string",
"patreonUrl": "string"
},
"createdAt": "2026-01-15T09:30:00.000Z"
}
]
}
}

Twitter Following API

POST/x/get-following
Twitter following API: list the accounts any X (Twitter) user follows, each with handle, name, bio, location and follower and following counts, as JSON.1 credit per requestDetails →
Request body
userIdstringrequired
Numeric user ID (rest_id) whose tweets to list, e.g. "44196397". Look it up from a handle with get-user.
cursorstring
The previous response's `nextCursor`, to fetch the next page. Omit it for the first page.
countinteger · 1–50 · default 50
Number of results to return (1–50). Defaults to 50.
cacheMaxAgeHoursinteger
Accept a cached result up to this many hours old, at no cost; its `cachedAt` says when it was fetched. Without one that recent, fresh data is fetched at the normal price. Leave it out to always get fresh data, e.g. 24.
cacheOnlyboolean
Return only a cached result, never fresh data. With `cacheMaxAgeHours`, only one that recent; without it, the latest of any age. Responds 404, at no cost, when there is none, e.g. true.
Response
200 OK · application/json
{
"timeMs": 1840,
"creditsCost": 1,
"cachedAt": "2026-01-15T09:30:00.000Z",
"data": {
"nextCursor": "string",
"users": [
{
"userId": "string",
"username": "string",
"profileUrl": "string",
"displayName": "string",
"bio": "string",
"avatarUrl": "string",
"bannerUrl": "string",
"location": "string",
"websiteUrl": "string",
"bioUrls": [
{
"url": "string",
"displayUrl": "string"
}
],
"followerCount": 0,
"followingCount": 0,
"fastFollowersCount": 0,
"normalFollowersCount": 0,
"tweetCount": 0,
"likeCount": 0,
"mediaCount": 0,
"listedCount": 0,
"creatorSubscriptionsCount": 0,
"highlightedTweetsCount": 0,
"pinnedTweetId": "string",
"pinnedTweetUrl": "string",
"isVerified": true,
"isBlueVerified": true,
"verifiedType": "string",
"isIdentityVerified": true,
"isProtected": true,
"canDm": true,
"professionalType": "string",
"professionalId": "string",
"professionalCategoryId": 0,
"professionalCategoryName": "string",
"affiliate": {
"label": "string",
"username": "string",
"profileUrl": "string",
"badgeUrl": "string"
},
"tipJar": {
"isEnabled": true,
"bitcoinHandle": "string",
"ethereumHandle": "string",
"venmoHandle": "string",
"venmoUrl": "string",
"cashAppHandle": "string",
"cashAppUrl": "string",
"patreonHandle": "string",
"patreonUrl": "string"
},
"createdAt": "2026-01-15T09:30:00.000Z"
}
]
}
}

Twitter Retweeters API

POST/x/get-tweet-retweeters
Twitter retweeters API: list who retweeted any tweet on X (Twitter), with each account’s handle, name, bio and follower and following counts, as JSON.1 credit per requestDetails →
Request body
cursorstring
The previous response's `nextCursor`, to fetch the next page. Omit it for the first page.
countinteger · 1–100 · default 100
Number of results to return (1–100). Defaults to 100.
tweetIdstringrequired
Numeric ID of the tweet whose retweeters to list, or the tweet link, e.g. "1234567890".
cacheMaxAgeHoursinteger
Accept a cached result up to this many hours old, at no cost; its `cachedAt` says when it was fetched. Without one that recent, fresh data is fetched at the normal price. Leave it out to always get fresh data, e.g. 24.
cacheOnlyboolean
Return only a cached result, never fresh data. With `cacheMaxAgeHours`, only one that recent; without it, the latest of any age. Responds 404, at no cost, when there is none, e.g. true.
Response
200 OK · application/json
{
"timeMs": 1840,
"creditsCost": 1,
"cachedAt": "2026-01-15T09:30:00.000Z",
"data": {
"nextCursor": "string",
"users": [
{
"userId": "string",
"username": "string",
"profileUrl": "string",
"displayName": "string",
"bio": "string",
"avatarUrl": "string",
"bannerUrl": "string",
"location": "string",
"websiteUrl": "string",
"bioUrls": [
{
"url": "string",
"displayUrl": "string"
}
],
"followerCount": 0,
"followingCount": 0,
"fastFollowersCount": 0,
"normalFollowersCount": 0,
"tweetCount": 0,
"likeCount": 0,
"mediaCount": 0,
"listedCount": 0,
"creatorSubscriptionsCount": 0,
"highlightedTweetsCount": 0,
"pinnedTweetId": "string",
"pinnedTweetUrl": "string",
"isVerified": true,
"isBlueVerified": true,
"verifiedType": "string",
"isIdentityVerified": true,
"isProtected": true,
"canDm": true,
"professionalType": "string",
"professionalId": "string",
"professionalCategoryId": 0,
"professionalCategoryName": "string",
"affiliate": {
"label": "string",
"username": "string",
"profileUrl": "string",
"badgeUrl": "string"
},
"tipJar": {
"isEnabled": true,
"bitcoinHandle": "string",
"ethereumHandle": "string",
"venmoHandle": "string",
"venmoUrl": "string",
"cashAppHandle": "string",
"cashAppUrl": "string",
"patreonHandle": "string",
"patreonUrl": "string"
},
"createdAt": "2026-01-15T09:30:00.000Z"
}
]
}
}

Twitter Quote Tweets API

POST/x/get-tweet-quotes
Twitter quote tweets API: list the quote tweets of any tweet on X (Twitter), latest or top first, with each quote’s text, author, media and engagement.1 credit per requestDetails →
Request body
tweetIdstringrequired
Numeric ID of the tweet whose quote tweets to list, or the tweet link, e.g. "1234567890".
countinteger · 1–20 · default 20
Number of results to return (1–20). Defaults to 20.
cursorstring
The previous response's `nextCursor`, to fetch the next page. Omit it for the first page.
sortOrderenum
Result ordering: "Latest" = chronological newest-first (default), "Top" = X's engagement ranking.
Latest | Top
cacheMaxAgeHoursinteger
Accept a cached result up to this many hours old, at no cost; its `cachedAt` says when it was fetched. Without one that recent, fresh data is fetched at the normal price. Leave it out to always get fresh data, e.g. 24.
cacheOnlyboolean
Return only a cached result, never fresh data. With `cacheMaxAgeHours`, only one that recent; without it, the latest of any age. Responds 404, at no cost, when there is none, e.g. true.
Response
200 OK · application/json
{
"timeMs": 1840,
"creditsCost": 1,
"cachedAt": "2026-01-15T09:30:00.000Z",
"data": {
"nextCursor": "string",
"tweets": [
{
"id": "string",
"url": "string",
"text": "string",
"createdAt": "2026-01-15T09:30:00.000Z",
"createdAtEpochMs": 0,
"source": "string",
"conversationId": "string",
"replyCount": 0,
"retweetCount": 0,
"likeCount": 0,
"quoteCount": 0,
"bookmarkCount": 0,
"viewCount": 0,
"replyToTweetId": "string",
"replyToUserId": "string",
"replyToUsername": "string",
"replyToTweetUrl": "string",
"isQuote": true,
"quotedTweetId": "string",
"quotedTweetUrl": "string",
"quotedTweetAuthorId": "string",
"quotedTweetAuthorUsername": "string",
"lang": "string",
"isSensitive": true,
"hashtags": [
"string"
],
"mentions": [
{
"userId": "string",
"username": "string",
"displayName": "string",
"profileUrl": "string"
}
],
"urls": [
{
"shortUrl": "string",
"expandedUrl": "string",
"displayUrl": "string"
}
],
"media": [
{
"type": "photo",
"url": "string",
"mediaKey": "string",
"mediaId": "string",
"width": 0,
"height": 0,
"expandedUrl": "string",
"videoUrl": "string",
"durationMs": 0
}
],
"authorId": "string",
"authorHandle": "string",
"authorName": "string",
"authorUrl": "string",
"authorIsVerified": true,
"authorIsBlueVerified": true
}
]
}
}
[ WHY NOT THE OFFICIAL API? ]

Why not the official X (Twitter) API?

The official X API now bills per read: X’s pay-per-use pricing lists reading a post at $0.005. On Bridgly a tweet costs 1 credit, which is $0.002 on pay-as-you-go and as low as $0.0017 with a volume package.

Less per tweet

At $0.005 per post read, 100,000 tweets cost $500 on the official API. The same 100,000 tweets cost 100,000 credits on Bridgly: $200, or $100 at volume.

No developer app setup

The official API needs a developer account, a project, an app and OAuth tokens before the first request. Bridgly needs one API key.

Search as you type it on X

Send the same query you would type in X’s search box, operators included. Results come back with author, media and engagement counts already attached.

[ HOW TO USE IT ]

Your first X (Twitter) call

Terminal
curl -X POST "https://api.bridgly.app/x/search" \
-H "Authorization: Bearer $BRIDGLY_KEY" \
-H "Content-Type: application/json" \
-d '{
"query": "from:OpenAI filter:links",
"sortOrder": "Latest",
"count": 10
}'
[ USE CASES ]

What people build with X (Twitter) data

Listen for mentions as they happen

Run a search for your product name with withinHours set to your polling interval, newest first, and you get only what was posted since the last run.

Feed an agent the current conversation

Search is a single call that returns text plus engagement counts, which makes it a clean tool for a model that needs to know what people are saying right now.

Vet creators and accounts

Compare an account’s follower count with the view and like counts on its recent tweets to see whether the audience is real.

Map who amplifies a post

List the retweeters and quote tweets of a launch announcement to find the accounts that carried it furthest.

[ LIMITS ]

What the X (Twitter) API does not do

  • Protected accounts: the profile is returned with isProtected set, but their tweets and follower lists are not.
  • Read-only. There are no endpoints to post, like, retweet, follow or send DMs.
  • Tweet search and quote tweets return up to 20 results per call; send the cursor back for the next page.
  • Lists, Spaces, Communities and DMs are not covered.
[ FAQ ]

X (Twitter) API questions

Is this the official X API?

No. Bridgly is an independent service and is not affiliated with X Corp. It is an alternative for teams that want to read X data without setting up a developer app: you pay per tweet and can start with free credits.

Which search operators are supported?

The query is passed through as written, so the operators from X’s advanced search work: from:, to:, @mentions, #hashtags, exact phrases in quotes, OR, exclusions with a minus sign, min_faves:, min_retweets:, filter: and since:/until: dates. There is also a lang field as a shortcut for the language filter.

Do I need an X account or developer app?

No. You send a handle, a user ID, a tweet ID or a search query along with your Bridgly API key. There are no X credentials involved on your side.

How do I get a user ID from a handle?

Call the profile endpoint with the handle, with or without the @. The userId in the response is stable even if the account later changes its handle.

How much does it cost to pull 1,000 tweets?

Search and timelines cost 1 credit per tweet returned, so 1,000 tweets is 1,000 credits. What a credit costs in dollars depends on your pricing package, and goes as low as $1.67 per 1,000 credits at volume.

How do I page through followers or a timeline?

Timelines, follower lists, tweet and user search, retweeters, quote tweets and tweet replies return nextCursor. Send it back as cursor to get the next page; it is null at the end of the list.

Start pulling X (Twitter) data

100 free credits on business email, no card. Your first call takes a minute.

APIMCPSDKCLI
free credits

On business email signup. No credit card required.

Start free with 100 credits