Twitter

Twitter, Inc. was an American social media company based in San Francisco, California, which operated and was named for named for its flagship social media network prior to its rebrand as X.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Get DM events for a DM conversation

    Fetches Direct Message (DM) events for a one-on-one conversation with a specified participant ID, ordered chronologically newest to oldest; does not support group DMs.

  • Get DM events by ID

    Fetches a specific Direct Message event by ID, with optional related-data expansions. The response model retains expanded tweets but not expanded users.

  • Lookup list by ID

    Returns metadata for a specific Twitter List, identified by its ID; does not return list members but can expand the owner's User object via the `expansions` parameter.

  • Get list followers

    Fetches a list of users who follow a specific Twitter List, identified by its ID; ensure the authenticated user has access if the list is private.

  • Fetch list members by id

    Fetches members of a specific Twitter List, identified by its unique ID.

  • Get Media Upload Status

    Get the processing status of uploaded media (videos/GIFs) on X/Twitter. Only call this when the FINALIZE command returned a processing_info field. Poll every 3–5 seconds with a 60–120 second maximum timeout to avoid HTTP 429 errors. Response state cycles through 'pending', 'in_progress', 'succeeded', and 'failed'. Only attach media_id to a tweet when state is 'succeeded'. State 'failed' is terminal — requires a completely new upload via TWITTER_UPLOAD_MEDIA or TWITTER_UPLOAD_LARGE_MEDIA. Video/GIF processing takes 30–120 seconds; posting before 'succeeded' results in non-playable media.

  • Get muted users

    Returns user objects muted by the X user identified by the `id` path parameter.

  • Fetch OpenAPI specification

    Fetches the OpenAPI specification (JSON) for Twitter's API v2, used to programmatically understand the API's structure for developing client libraries or tools.

  • Get Post analytics

    Tool to retrieve analytics data for specified Posts within a defined time range. Use when you need engagement metrics, impressions, or other analytics for one or more Posts. Requires OAuth 2.0 with tweet.read and users.read scopes. Requires an X Enterprise API plan. Accounts on Free, Basic, Pro, or Pay-Per-Use tiers will receive a 403 Forbidden on every call, regardless of scopes or request correctness - this is not something a connected account's OAuth grant can unlock.

  • Get post retweeters

    Retrieves users who publicly retweeted a specified public Post ID, excluding Quote Tweets and retweets from private accounts.

  • Retrieve retweets of a post

    Retrieves Tweets that Retweeted a specified public or authenticated-user-accessible Tweet ID, optionally customizing the response with fields and expansions.

  • Fetch tweet usage data

    Fetches Tweet usage statistics for a Project (e.g., consumption, caps, daily breakdowns for Project & Client Apps) to monitor API limits; data can be retrieved for 1 to 90 days.

  • Get recent direct message events

    Returns recent Direct Message events for the authenticated user, such as new messages or changes in conversation participants.

  • Look up space by ID

    Retrieves details for a Twitter Space by its ID, allowing for customization and expansion of related data, provided the Space ID is valid and accessible.

  • Retrieve posts from a space

    Retrieves Tweets that were shared/posted during a Twitter Space broadcast. IMPORTANT: This endpoint returns Tweets that participants explicitly shared during the Space session, NOT audio transcripts, comments, or reactions. Most Spaces have zero associated Tweets, so empty results (result_count=0) are normal and expected. Twitter Spaces are primarily audio conversations - this endpoint only returns text Tweets that were shared alongside the audio.

  • Get spaces by creator IDs

    Retrieves Twitter Spaces created by a list of specified User IDs, with options to customize returned data fields.

  • Get space information by IDs

    Fetches detailed information for one or more Twitter Spaces (live, scheduled, or ended) by their unique IDs; at least one Space ID must be provided.

  • Fetch space ticket buyers list

    Retrieves a list of users who purchased tickets for a specific, valid, and ticketed Twitter Space.

  • Get trends by WOEID

    Returns current X trends for a location identified by WOEID.

  • Look up user by ID

    Retrieves detailed public information for a Twitter user by their ID, optionally expanding related data (e.g., pinned tweets) and specifying particular user or tweet fields to return.

PreviousPage 2 / 5Next