# Twitter API on SandBase

> Read public X/Twitter surfaces for social monitoring and audience research: tweet search, profile timelines, followers, following, lists, and rich profile metadata.

Source: https://www.sandbase.ai/apis/twitter

- Endpoints: 47
- Call: `POST https://api.sandbase.ai/v1/api/{vendor}/{endpoint}` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body
- Billing: pay per call from one SandBase balance; no provider account or subscription needed

## Guides

- [X API alternative: pay per call, not per post](https://www.sandbase.ai/alternatives/twitter-api.md)
- [Best Twitter API in 2026: X API Pricing Compared](https://blog.sandbase.ai/best-twitter-api-2026/)

## Endpoints

- [Twitter (X) Latest Tweet Comments](https://www.sandbase.ai/apis/twitter/web/latest-post-comments.md): $0.001 per call
  Returns recent replies and comment timelines for a specific post using its tweet ID, with cursor support for multi-page results.
- [Twitter (X) Retweet User List](https://www.sandbase.ai/apis/twitter/web/retweet-user-list.md): $0.001 per call
  Returns a list of users who reposted a specific post using its tweet ID, including follower counts, media counts, and user identifiers.
- [Twitter (X) Search](https://www.sandbase.ai/apis/twitter/web/search-timeline.md): $0.001 per call
  Search Twitter / X posts by keyword and get tweets with text, author, time and engagement counts (likes, retweets, replies, views). Supports Top, Latest, Media, People and Lists results.
- [Twitter (X) Trending Topics](https://www.sandbase.ai/apis/twitter/web/trending.md): $0.001 per call
  Get trending topics on Twitter / X by country: trend names with their category context, for the United States, Japan, India, the UK and other markets.
- [Twitter (X) Tweet Comments](https://www.sandbase.ai/apis/twitter/web/post-comments.md): $0.001 per call
  Returns comment threads and replies under a specified tweet. Provide a tweet ID and paginate through conversations using cursor values.
- [Twitter (X) User Followers](https://www.sandbase.ai/apis/twitter/web/user-followers.md): $0.001 per call
  Retrieves follower profiles for a specified Twitter (X) account, including follower counts and verification statuses. Supports pagination.
- [Twitter (X) User Followings](https://www.sandbase.ai/apis/twitter/web/user-followings.md): $0.001 per call
  Returns a list of accounts followed by a specified Twitter (X) user. Results provide follower counts, friend counts, media statistics, and profile details.
- [Twitter (X) User Media](https://www.sandbase.ai/apis/twitter/web/user-media.md): $0.001 per call
  Returns media posts and timeline items for a specified user profile, queried by screen name or user ID. Supports cursor-based pagination for browsing past media posts.
- [Twitter (X) User Posts](https://www.sandbase.ai/apis/twitter/web/user-post-tweet.md): $0.001 per call
  Returns posts and tweets from a specified Twitter (X) user timeline. Users can be identified by either their screen name or numeric user ID, with cursor pagination supported.
- [Twitter (X) User Profile](https://www.sandbase.ai/apis/twitter/web/user-profile.md): $0.001 per call
  Get a Twitter / X user profile by screen name or user ID: name, bio, follower and following counts, post and media counts, verification and creation date.
- [Twitter (X) User Tweet Replies](https://www.sandbase.ai/apis/twitter/web/user-tweet-replies.md): $0.001 per call
  Returns a timeline of replies posted by a specific Twitter user. Filter by username and paginate through responses using cursor tokens.
- [Twitter Check follow](https://www.sandbase.ai/apis/twitter/web/check-follow.md): $0.001 per call
  Check follow on Twitter. Returns the platform data as structured JSON.
- [Twitter Check retweet](https://www.sandbase.ai/apis/twitter/web/check-retweet.md): $0.001 per call
  Check retweet on Twitter. Returns the platform data as structured JSON.
- [Twitter Check user live status](https://www.sandbase.ai/apis/twitter/web/user-live-status.md): $0.001 per call
  Check user live status on Twitter. Returns the platform data as structured JSON.
- [Twitter Community info](https://www.sandbase.ai/apis/twitter/web/community-info.md): $0.001 per call
  Get community info on Twitter. Returns the platform data as structured JSON.
- [Twitter Community members (no pagination)](https://www.sandbase.ai/apis/twitter/web/community-members.md): $0.001 per call
  Get community members (no pagination) on Twitter. Returns the platform data as structured JSON.
- [Twitter Community timeline](https://www.sandbase.ai/apis/twitter/web/community-timeline.md): $0.001 per call
  Get community timeline on Twitter. Returns the platform data as structured JSON.
- [Twitter List followers](https://www.sandbase.ai/apis/twitter/web/list-followers.md): $0.001 per call
  Get list followers on Twitter. Returns the platform data as structured JSON.
- [Twitter List members](https://www.sandbase.ai/apis/twitter/web/list-members.md): $0.001 per call
  Get list members on Twitter. Returns the platform data as structured JSON.
- [Twitter List timeline](https://www.sandbase.ai/apis/twitter/web/list-timeline.md): $0.001 per call
  Get list timeline on Twitter. Returns the platform data as structured JSON.
- [Twitter Post Comments](https://www.sandbase.ai/apis/twitter/post-comments.md): $0.014286 per call
  Get the latest comments for an X (Twitter) post identified by tweet ID, with cursor pagination. Use it to review recent discussion on a known post and continue through additional comment pages.
- [Twitter Post Detail](https://www.sandbase.ai/apis/twitter/post-detail.md): $0.014286 per call
  Get the full detail of an X (Twitter) post identified by its tweet ID. Use it to inspect a known post after finding it through search, a user timeline, or an existing post URL.
- [Twitter Profiles by rest ids](https://www.sandbase.ai/apis/twitter/web/user-profiles-by-rest-ids.md): $0.001 per call
  Get profiles by rest ids on Twitter. Returns the platform data as structured JSON.
- [Twitter Search communities](https://www.sandbase.ai/apis/twitter/web/search-communities.md): $0.001 per call
  Search communities on Twitter. Returns the platform data as structured JSON.
- [Twitter Search Timeline](https://www.sandbase.ai/apis/twitter/search.md): $0.014286 per call
  Search X (Twitter) by keyword across top, latest, media, people, or list result modes with cursor pagination. Use it to find public conversations, accounts, media, or lists related to a topic.
- [Twitter Tweet Detail](https://www.sandbase.ai/apis/twitter/web/tweet-detail.md): $0.001 per call
  Get a single tweet (X post) by ID: full text, author, media, and like, retweet, reply, quote, bookmark and view counts.
- [Twitter Tweet Search](https://www.sandbase.ai/apis/twitter/bulk/tweet-search.md): From $0.0006 per call
  Scrape X (Twitter) tweets from search queries, profiles, lists, and tweet URLs at scale.
- [Twitter User about profile](https://www.sandbase.ai/apis/twitter/web/user-about.md): $0.001 per call
  Get user about profile on Twitter. Returns the platform data as structured JSON.
- [Twitter User affiliates](https://www.sandbase.ai/apis/twitter/web/user-affiliates.md): $0.001 per call
  Get user affiliates on Twitter. Returns the platform data as structured JSON.
- [Twitter User Profile](https://www.sandbase.ai/apis/twitter/user-detail.md): $0.014286 per call
  Get an X (Twitter) user profile identified by its numeric Rest ID. Use it to review a known account before monitoring its posts or conducting creator and account research.
- [Twitter User Published Posts](https://www.sandbase.ai/apis/twitter/user-posts.md): $0.014286 per call
  Get posts published by an X (Twitter) user identified by Rest ID, with cursor pagination. Use it to browse a known account's timeline or continue through its public post history.
- [Twitter X (Twitter) Community Moderators](https://www.sandbase.ai/apis/twitter/community-moderators.md): From $0.0036 per call
  Moderators of an X Community by community ID, with profile details and cursor pagination.
- [Twitter X (Twitter) Tweet Quotes](https://www.sandbase.ai/apis/twitter/tweet-quotes.md): From $0.003 per call
  Quote tweets of a post by tweet ID, newest first, with optional time range and cursor pagination.
- [Twitter X (Twitter) Tweets by IDs](https://www.sandbase.ai/apis/twitter/tweets-by-ids.md): From $0.0075 per call
  Look up several tweets at once by a comma-separated list of tweet IDs, with text, author and engagement counts.
- [Twitter X (Twitter) Twitter Community](https://www.sandbase.ai/apis/twitter/community.md): From $0.0001 per call
  Fetch a Twitter/X community's public details (name, description, member count, join policy) by URL.
- [Twitter X (Twitter) Twitter Community Tweets](https://www.sandbase.ai/apis/twitter/community-tweets.md): From $0.00045 per call
  List recent tweets posted in a Twitter/X community by URL.
- [Twitter X (Twitter) Twitter Tweet](https://www.sandbase.ai/apis/twitter/tweet.md): From $0.00022 per call
  Fetch a single Twitter/X tweet by URL with its full text and engagement counts (likes, retweets, replies, quotes, bookmarks, views).
- [Twitter X (Twitter) Twitter Tweet Transcript](https://www.sandbase.ai/apis/twitter/tweet-transcript.md): From $0.0012 per call
  Extract the spoken transcript from a Twitter/X video tweet by URL.
- [Twitter X (Twitter) User Mentions](https://www.sandbase.ai/apis/twitter/user-mentions.md): From $0.003 per call
  Recent tweets that mention a user by username, with optional time range and cursor pagination.
- [Twitter X (Twitter) Verified Followers](https://www.sandbase.ai/apis/twitter/verified-followers.md): From $0.006 per call
  Verified (blue check) followers of a user by numeric user ID, with profile details and cursor pagination.
- [Twitter X / Twitter Article](https://www.sandbase.ai/apis/twitter/article.md): From $0.00054 per call
  Get a public X long-form article from its wrapper post URL, including its author, engagement, cover image, and structured content blocks.
- [Twitter X / Twitter Community Search](https://www.sandbase.ai/apis/twitter/search-communities.md): From $0.0011 per call
  Search X (Twitter) communities by keyword and get their id, name, topic, and member count with cursor pagination. This is how you find a community URL to pass to twitter.community or twitter.community...
- [Twitter X / Twitter Followers](https://www.sandbase.ai/apis/twitter/followers.md): From $0.00045 per call
  Fetch the follower list of any public X (Twitter) account by username with cursor pagination. Limit is a per-page maximum and a native page holds up to 200 accounts; follow the response's nextCursor f...
- [Twitter X / Twitter Following](https://www.sandbase.ai/apis/twitter/following.md): From $0.00045 per call
  List the accounts a public X (Twitter) account follows by username with cursor pagination. Limit is a per-page maximum; follow the response's nextCursor for more.
- [Twitter X / Twitter Trends](https://www.sandbase.ai/apis/twitter/trends.md): From $0.0001 per call
  Get current X (Twitter) trends for worldwide, a country, or a city in X ranking order, including the resolved location.
- [Twitter X / Twitter Tweet Thread](https://www.sandbase.ai/apis/twitter/thread.md): From $0.00269 per call
  Resolve the linear self-thread containing an X (Twitter) post, from its root through the author's linked continuations. This excludes replies from other users.
- [Twitter X / Twitter User Search](https://www.sandbase.ai/apis/twitter/search-users.md): From $0.00054 per call
  Search X (Twitter) accounts by keyword - the People tab of X search. Matches handles, display names, and profile bios, and returns normalized profile records with follower, following, and post counts ...

## Use it through SandBase

- Base URL: `https://api.sandbase.ai/v1`, with `Authorization: Bearer $SANDBASE_API_KEY`.
- Language models use the OpenAI-compatible `POST /v1/chat/completions`; media models use `POST /v1/run`; data APIs use `POST /v1/api/{vendor}/{endpoint}`.
- AI agents can connect through the SandBase MCP server or CLI: https://www.sandbase.ai/skill.md
- Every model and API page has a Markdown twin at the same URL plus `.md`. Full index: https://www.sandbase.ai/llms.txt
