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.

  • Retrieve posts that quote a post

    Retrieves Tweets that quote a specified Tweet, requiring a valid Tweet ID.

  • Retrieve liked tweets by user ID

    Retrieves Tweets liked by a specified Twitter user, provided their liked tweets are public or accessible.

  • Retweet post

    Retweets a Tweet for the authenticated user. The user ID is automatically fetched from the authenticated session - you only need to provide the tweet_id to retweet.

  • Get full archive search counts

    Returns a count of Tweets from the full archive that match a specified query, aggregated by day, hour, or minute; `start_time` must be before `end_time` if both are provided, and `since_id`/`until_id` cannot be used with `start_time`/`end_time`.

  • Search X news

    Searches X for AI-generated news stories matching text.

  • Fetch recent tweet counts

    Retrieves the count of Tweets matching a specified search query within the last 7 days, aggregated by 'minute', 'hour', or 'day'.

  • Search for spaces

    Searches for Twitter Spaces by a textual query, optionally filtering by state (live, scheduled, all) to discover audio conversations.

  • Search users

    Searches X accounts by name or @username and returns one page of profiles.

  • Send a new message to a user

    Sends a new Direct Message with text and/or media (media_id for attachments must be pre-uploaded) to a specified Twitter user; this creates a new DM and does not modify existing messages.

  • Send a new message to a DM conversation

    Sends a message, with optional text and/or media attachments (using pre-uploaded `media_id`s), to a specified Twitter Direct Message conversation.

  • Get tweets label stream

    Stream real-time Tweet label events (apply/remove). Requires Enterprise access and App-Only OAuth 2.0 auth. Returns PublicTweetNotice or PublicTweetUnviewable events. 403 errors indicate missing Enterprise access or wrong auth type.

  • Unfollow a list

    Enables a user (via `id`) to unfollow a specific Twitter List (via `list_id`), which removes its tweets from their timeline and stops related notifications; the action reports `following: false` on success, even if the user was not initially following the list.

  • Unfollow user

    Allows the authenticated user to unfollow an existing Twitter user (`target_user_id`), which removes the follow relationship. The source user ID is automatically determined from the authenticated session.

  • Unlike post

    Allows an authenticated user (`id`) to remove their like from a specific post (`tweet_id`); the action is idempotent and completes successfully even if the post was not liked.

  • Unmute a user by user ID

    Unmutes a target user for the authenticated user, allowing them to see Tweets and notifications from the target user again. The source_user_id is automatically populated from the authenticated user's credentials.

  • Unpin a list

    Unpins a List (specified by list_id) from the authenticated user's profile. The user ID is automatically retrieved if not provided.

  • Unretweet post

    Removes a user's retweet of a specified Post, if the user had previously retweeted it.

  • Update list attributes

    Updates an existing Twitter List's name, description, or privacy status, requiring the List ID and at least one mutable property.

  • Upload Large Media

    Uploads a single media file to X/Twitter using simple or chunked upload based on its category and size. For chunked uploads, it polls pending processing and raises an error if processing fails or polling times out.

  • Upload Media

    Uploads one image or subtitle file under 5 MiB to X/Twitter using the v2 API, with tweet_image, dm_image, or subtitles categories. The returned media identifier expires; the response includes its expiry interval.

PreviousPage 4 / 5Next