Skip to content

ToolsX

Docs

Tools

X

Profiles and posts on X.

Things to ask#

Ask your agent in plain words. It picks the tool.

  • Summarize what @stripe posted on X this week and which posts got the most engagement.
  • How many followers does this X account have, and how often does it post?
  • Read this post and tell me how many views, reposts and replies it got.

Tools in X#

3 tools. Prices are in credits; 1,000 credits are $1.

ToolUse it whenCost
x_get_profileYou need an X (Twitter) account's bio, followers or posting activity.1.65 credits per call
x_get_postYou have an X (Twitter) post URL and need its text and engagement.1.65 credits per call
x_get_postsYou need what an X (Twitter) account has posted recently.1.65 credits per post

Get an X profile#

Toolx_get_profile
Reads
Good for
You need an X (Twitter) account's bio, followers or posting activity.
Not the tool for
The account's posts (use x_get_posts).
What you get
The profile: name, bio, followers, following, post count, verified status and location.
Cost
1.65 credits per call. Cached 24 hours: a cache hit costs 0.825 credits. Cached for your organization only.

Parameters

NameTypeRequiredDescription
urlstringYesThe X profile URL, e.g. https://x.com/stripe
Example
{
  "name": "x_get_profile",
  "arguments": {
    "url": "https://x.com/stripe"
  }
}

Get an X post#

Toolx_get_post
Reads
Good for
You have an X (Twitter) post URL and need its text and engagement.
Not the tool for
An account's recent posts (use x_get_posts).
What you get
The post: text, author, date, likes, reposts, replies, views and bookmarks.
Cost
1.65 credits per call. Cached 1 hour: a cache hit costs 0.825 credits.

Parameters

NameTypeRequiredDescription
urlstringYesThe X post URL, e.g. https://x.com/stripe/status/1790000000000000000
Example
{
  "name": "x_get_post",
  "arguments": {
    "url": "https://x.com/stripe/status/2049529444092838116"
  }
}

Get recent X posts#

Toolx_get_posts
Reads
Good for
You need what an X (Twitter) account has posted recently.
Not the tool for
One post you have the URL of (use x_get_post).
What you get
The newest posts with text, date and engagement. Can take longer than a call allows: then it answers status "working" and the same call returns the posts shortly after.
Cost
1.65 credits per post. Cached 1 hour: a cache hit costs 50% of the live price.

Parameters

NameTypeRequiredDescription
urlstringYesThe X profile URL, e.g. https://x.com/stripe
limitintegerNoHow many posts to return, at most 100. Default 20.
Example
{
  "name": "x_get_posts",
  "arguments": {
    "url": "https://x.com/stripe",
    "limit": 10
  }
}