Skip to main content
Xpoz provides 13 Twitter/X tools across two categories: user tools and post tools.

Available Fields

User Fields

These fields are available on all user tools (getTwitterUser, getTwitterUsers, searchTwitterUsers, getTwitterUserConnections, getTwitterUsersByKeywords, getTwitterPostInteractingUsers). Default: id, username, name
CategoryFields
Identityid, username, name, description, location, profileImageUrl, profileBannerUrl
Verificationverified, isVerified, verifiedType, verifiedSinceDatetime
MetricsfollowersCount, followingCount, tweetCount, listedCount, likesCount, mediaCount
MetadatapinnedTweetId, source, label, labelType, accountBasedIn, locationAccurate
HistoryusernameChanges, lastUsernameChangeDatetime, createdAt
getTwitterUsersByKeywords also returns aggregation fields: aggRelevance, relevantTweetsCount, relevantTweetsImpressionsSum, relevantTweetsLikesSum, relevantTweetsQuotesSum, relevantTweetsRepliesSum, relevantTweetsRetweetsSum.

Post Fields

These fields are available on all post tools (getTwitterPostsByIds, getTwitterPostsByAuthor, getTwitterPostsByKeywords, getTwitterPostRetweets, getTwitterPostQuotes, getTwitterPostComments). Default: id, text, authorUsername, createdAtDate
CategoryFields
Coreid, text, authorId, authorUsername, createdAt, createdAtDate
EngagementretweetCount, replyCount, likeCount, quoteCount, impressionCount, bookmarkCount
Metadatalang, possiblySensitive, suspended, deleted, source, isRetweet, hasBirdwatchNotes, status
BirdwatchbirdwatchNotesId, birdwatchNotesText, birdwatchNotesUrl
RelationsconversationId, quotedTweetId, retweetedTweetId, replyToTweetId, replyToUserId, replyToUsername, originalTweetId, editedTweets
Contenthashtags, mentions, mediaUrls, urls, grokGeneratedContent
Locationcountry, region, city
Always specify only the fields you need using the fields parameter. For example, ["id", "text", "retweetCount", "likeCount", "createdAtDate"] for engagement analysis. See Field Selection for details.

User Tools

getTwitterUser

Get a single Twitter user profile by ID or username.
ParameterTypeRequiredDescription
identifierstringYesUser ID (numeric) or username.
identifierTypestringYes"id" or "username".
fieldsstring[]NoFields to return.
forceLatestbooleanNoForce fresh data from API, bypassing cache. Default: false.
For exact username lookups, use getTwitterUser. For name-based or fuzzy searches, use searchTwitterUsers instead.

getTwitterUsers

Get one or more Twitter user profiles by IDs or usernames (1-100 per request).
ParameterTypeRequiredDescription
identifiersstring[]YesArray of user IDs or usernames (1-100). All must match identifierType.
identifierTypestringYes"id" or "username".
fieldsstring[]NoFields to return.
forceLatestbooleanNoForce fresh data from API. Default: false.
Returns only found users, omitting not-found identifiers.
Batching multiple users in a single getTwitterUsers call is more efficient than calling getTwitterUser multiple times.

searchTwitterUsers

Search users by name, partial username, or fuzzy match with real-time results.
ParameterTypeRequiredDescription
namestringYesSearch query (person name, partial username, or keywords).
limitnumberNoMax results. Default: 10, max: 10.
fieldsstring[]NoFields to return.
This tool performs a real-time search. For exact username lookups, use getTwitterUser instead.

getTwitterUserConnections

Get followers or following for a Twitter user.
ParameterTypeRequiredDescription
usernamestringYesTwitter username (without @).
connectionTypestringYes"followers" or "following".
responseTypestringNo"fast" (default), "paging", or "csv". See Response Modes.
limitnumberNoMax results. Fast: capped at 300. Paging/CSV: max 500,000.
fieldsstring[]NoUser fields to return.
pageNumberintegerNoPage to fetch (1-indexed). Requires tableName for pages > 1.
pageNumberEndintegerNoEnd page for bulk fetching. Must be >= pageNumber.
tableNamestringNoCached table name from a previous pagination response.
forceLatestbooleanNoForce fresh data from API. Default: false.
Supports server-side pagination with 1,000 users per page (with default fields) or 100 per page (with extra fields). See Pagination for details.

getTwitterUsersByKeywords

Search for users who authored tweets matching keywords. Returns unique, deduplicated user profiles.
ParameterTypeRequiredDescription
querystringYesFull-text search of tweet content. Max 250 characters. Supports exact phrases, boolean operators (AND, OR), and parentheses.
responseTypestringNo"fast" (default), "paging", or "csv". See Response Modes.
limitnumberNoMax results. Fast: capped at 300. Paging/CSV: max 500,000.
startDatestringNoStart date filter (YYYY-MM-DD).
endDatestringNoEnd date filter (YYYY-MM-DD).
languagestringNoFilter by language.
fieldsstring[]NoFields to return. Includes user fields plus aggregation fields.
pageNumberintegerNoPage to fetch (1-indexed). Requires tableName for pages > 1.
pageNumberEndintegerNoEnd page for bulk fetching. Must be >= pageNumber.
tableNamestringNoCached table name from a previous pagination response.
forceLatestbooleanNoForce fresh data from API. Default: false.
Supports server-side pagination with 100 users per page. See Pagination and Query Syntax for details.

Post Tools

getTwitterPostsByIds

Get one or more Twitter posts by numeric IDs (1-100 per request).
ParameterTypeRequiredDescription
postIdsstring[]YesArray of numeric post IDs (1-100). Each must be digits only.
fieldsstring[]NoFields to return.
forceLatestbooleanNoForce fresh data from API. Default: false.
Returns only found posts, omitting not-found IDs. Returns the most up-to-date data available.

getTwitterPostsByAuthor

Get posts from a Twitter user by username.
ParameterTypeRequiredDescription
usernamestringYesTwitter username (without @).
responseTypestringNo"fast" (default), "paging", or "csv". See Response Modes.
limitnumberNoMax results. Fast: capped at 300. Paging/CSV: max 500,000.
startDatestringNoStart date filter (YYYY-MM-DD).
endDatestringNoEnd date filter (YYYY-MM-DD).
fieldsstring[]NoFields to return.
pageNumberintegerNoPage to fetch (1-indexed).
pageNumberEndintegerNoEnd page for bulk fetching.
tableNamestringNoCached table name from a previous pagination response.
forceLatestbooleanNoForce fresh data from API. Default: false.
Supports server-side pagination with 100 posts per page. Returns the most up-to-date data available.

getTwitterPostsByKeywords

Search Twitter posts by keywords.
ParameterTypeRequiredDescription
querystringYesFull-text search of post content. Max 250 characters. Supports exact phrases, boolean operators (AND, OR), and parentheses. Do not use from:, lang:, or other filter operators in the query — use dedicated parameters.
responseTypestringNo"fast" (default), "paging", or "csv". See Response Modes.
limitnumberNoMax results. Fast: capped at 300. Paging/CSV: max 500,000.
authorUsernamestringNoFilter posts by author username.
authorIdstringNoFilter posts by author ID (numeric). Alternative to authorUsername.
languagestringNoFilter by language.
filterOutRetweetsbooleanNoExclude retweets from results. Default: false.
startDatestringNoStart date filter (YYYY-MM-DD).
endDatestringNoEnd date filter (YYYY-MM-DD).
fieldsstring[]NoFields to return.
pageNumberintegerNoPage to fetch (1-indexed).
pageNumberEndintegerNoEnd page for bulk fetching.
tableNamestringNoCached table name from a previous pagination response.
forceLatestbooleanNoForce fresh data from API. Default: false.
Supports server-side pagination with 100 posts per page. See Query Syntax for details on search operators.

getTwitterPostRetweets

Get retweets of a specific post. Database-only — searches historical retweet data.
ParameterTypeRequiredDescription
postIdstringYesNumeric post ID (digits only).
responseTypestringNo"fast" (default) or "paging". CSV is not supported.
limitnumberNoMax results. Fast: capped at 300. Paging: max 500,000.
startDatestringNoStart date filter (YYYY-MM-DD).
endDatestringNoEnd date filter (YYYY-MM-DD).
fieldsstring[]NoPost fields to return.
pageNumberintegerNoPage to fetch (1-indexed).
pageNumberEndintegerNoEnd page for bulk fetching.
tableNamestringNoCached table name from a previous pagination response.
Supports server-side pagination with 100 posts per page.
This tool searches historical retweet data only. For quote posts, use getTwitterPostQuotes instead.

getTwitterPostQuotes

Get quote posts of a specific post.
ParameterTypeRequiredDescription
postIdstringYesNumeric post ID (digits only).
responseTypestringNo"fast" (default), "paging", or "csv". See Response Modes.
limitnumberNoMax results. Fast: capped at 300. Paging/CSV: max 500,000.
startDatestringNoStart date filter (YYYY-MM-DD).
fieldsstring[]NoPost fields to return.
pageNumberintegerNoPage to fetch (1-indexed).
pageNumberEndintegerNoEnd page for bulk fetching.
tableNamestringNoCached table name from a previous pagination response.
forceLatestbooleanNoForce fresh data from API. Default: false.
Data older than 10 days is automatically refreshed.
Supports server-side pagination with 100 posts per page.

getTwitterPostComments

Get comments (replies) to a specific post.
ParameterTypeRequiredDescription
postIdstringYesNumeric post ID (digits only).
responseTypestringNo"fast" (default), "paging", or "csv". See Response Modes.
limitnumberNoMax results. Fast: capped at 300. Paging/CSV: max 500,000.
startDatestringNoStart date filter (YYYY-MM-DD).
fieldsstring[]NoPost fields to return.
pageNumberintegerNoPage to fetch (1-indexed).
pageNumberEndintegerNoEnd page for bulk fetching.
tableNamestringNoCached table name from a previous pagination response.
forceLatestbooleanNoForce fresh data from API. Default: false.
Data older than 10 days is automatically refreshed.
Supports server-side pagination with 100 posts per page.

getTwitterPostInteractingUsers

Get user profiles of people who interacted with a specific post.
ParameterTypeRequiredDescription
postIdstringYesNumeric post ID (digits only).
interactionTypestringYes"commenters", "quoters", or "retweeters".
responseTypestringNo"fast" (default), "paging", or "csv". See Response Modes.
limitnumberNoMax results. Fast: capped at 300. Paging/CSV: max 500,000.
startDatestringNoStart date filter (YYYY-MM-DD).
endDatestringNoEnd date filter (YYYY-MM-DD).
fieldsstring[]NoUser fields to return (not post fields).
pageNumberintegerNoPage to fetch (1-indexed).
pageNumberEndintegerNoEnd page for bulk fetching.
tableNamestringNoCached table name from a previous pagination response.
forceLatestbooleanNoForce fresh data from API. Default: false.
This tool returns user profiles, not post data. The fields parameter accepts user fields (see User Fields above).
Supports server-side pagination with 1,000 users per page (with default fields) or 100 per page (with extra fields).

countTweets

Count tweets containing a specific phrase within a date range. Returns an integer count without retrieving full tweet data.
ParameterTypeRequiredDescription
phrasestringYesPhrase to count in tweets.
startDatestringNoStart date (YYYY-MM-DD). Default: 6 months ago.
endDatestringNoEnd date (YYYY-MM-DD). Default: current date.
Use countTweets for analytics and trend analysis when you only need volume data, not individual posts.