---
title: "X - Tools | SnowAI"
description: "X tools on SnowAI. Profiles and posts on X. 3 tools, each with its parameters, its price and a call to copy."
url: "https://trysnow.ai/docs/tools/x"
---

# 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.

| Tool | Use it when | Cost |
| --- | --- | --- |
| [`x_get_profile`](https://trysnow.ai/docs/tools/x#x_get_profile) | You need an X (Twitter) account's bio, followers or posting activity. | 1.65 credits per call |
| [`x_get_post`](https://trysnow.ai/docs/tools/x#x_get_post) | You have an X (Twitter) post URL and need its text and engagement. | 1.65 credits per call |
| [`x_get_posts`](https://trysnow.ai/docs/tools/x#x_get_posts) | You need what an X (Twitter) account has posted recently. | 1.65 credits per post |

## Get an X profile

Tool: `x_get_profile` (read-only)

- **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**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | `string` | Yes | The X profile URL, e.g. https://x.com/stripe |

**Example: MCP**

```json
{
  "name": "x_get_profile",
  "arguments": {
    "url": "https://x.com/stripe"
  }
}
```

**Example: cURL**

```sh
curl -X POST https://api.trysnow.ai/tools/x_get_profile \
  -H "Authorization: Bearer $SNOWAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://x.com/stripe"
}'
```

**Example: TypeScript**

```ts
const response = await fetch("https://api.trysnow.ai/tools/x_get_profile", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SNOWAI_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "url": "https://x.com/stripe"
  }),
});
const result = await response.json();
```

**Example: Python**

```python
import os
import requests

response = requests.post(
    "https://api.trysnow.ai/tools/x_get_profile",
    headers={"Authorization": f"Bearer {os.environ['SNOWAI_API_KEY']}"},
    json={
        "url": "https://x.com/stripe",
    },
)
print(response.json())
```

## Get an X post

Tool: `x_get_post` (read-only)

- **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**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | `string` | Yes | The X post URL, e.g. https://x.com/stripe/status/1790000000000000000 |

**Example: MCP**

```json
{
  "name": "x_get_post",
  "arguments": {
    "url": "https://x.com/stripe/status/2049529444092838116"
  }
}
```

**Example: cURL**

```sh
curl -X POST https://api.trysnow.ai/tools/x_get_post \
  -H "Authorization: Bearer $SNOWAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://x.com/stripe/status/2049529444092838116"
}'
```

**Example: TypeScript**

```ts
const response = await fetch("https://api.trysnow.ai/tools/x_get_post", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SNOWAI_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "url": "https://x.com/stripe/status/2049529444092838116"
  }),
});
const result = await response.json();
```

**Example: Python**

```python
import os
import requests

response = requests.post(
    "https://api.trysnow.ai/tools/x_get_post",
    headers={"Authorization": f"Bearer {os.environ['SNOWAI_API_KEY']}"},
    json={
        "url": "https://x.com/stripe/status/2049529444092838116",
    },
)
print(response.json())
```

## Get recent X posts

Tool: `x_get_posts` (read-only)

- **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**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `url` | `string` | Yes | The X profile URL, e.g. https://x.com/stripe |
| `limit` | `integer` | No | How many posts to return, at most 100. Default 20. |

**Example: MCP**

```json
{
  "name": "x_get_posts",
  "arguments": {
    "url": "https://x.com/stripe",
    "limit": 10
  }
}
```

**Example: cURL**

```sh
curl -X POST https://api.trysnow.ai/tools/x_get_posts \
  -H "Authorization: Bearer $SNOWAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://x.com/stripe",
  "limit": 10
}'
```

**Example: TypeScript**

```ts
const response = await fetch("https://api.trysnow.ai/tools/x_get_posts", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.SNOWAI_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "url": "https://x.com/stripe",
    "limit": 10
  }),
});
const result = await response.json();
```

**Example: Python**

```python
import os
import requests

response = requests.post(
    "https://api.trysnow.ai/tools/x_get_posts",
    headers={"Authorization": f"Bearer {os.environ['SNOWAI_API_KEY']}"},
    json={
        "url": "https://x.com/stripe",
        "limit": 10,
    },
)
print(response.json())
```

Every docs page as Markdown: https://trysnow.ai/llms.txt
