# X (formerly Twitter)

This provider exposes tools and data accessible through its parent verticals. Use the example prompts as inspiration for your queries.

**Slug:** `x`

**Description:** Access X platform data including posts, user profiles, trends, and search.

## Verticals

This provider is available in the following verticals:

- [News](https://kirha.com/verticals/news.md)
- [Adtech](https://kirha.com/verticals/adtech.md)
- [Crypto](https://kirha.com/verticals/crypto.md)
- [Company](https://kirha.com/verticals/company.md)

## Example prompts (non-exhaustive)

- `Get the profile of @elonmusk on X`
- `Search recent posts about AI on X`
- `What's trending on X worldwide?`
- `Get the latest posts from user @kirha_ai`

## Available tools in this provider

Open a tool to see its input and output schemas.

### [`getUserPosts`](https://kirha.com/providers/x/getUserPosts.md)

Get 10 recent posts from a user's timeline. Use getUserByUsername first to get the userId.

### [`getPostById`](https://kirha.com/providers/x/getPostById.md)

Get a single X post by its ID.

### [`searchRecentPosts`](https://kirha.com/providers/x/searchRecentPosts.md)

Search X posts from the last 7 days. Returns 10 results. Supports operators: from:user, to:user, #hashtag, @mention, has:images, has:links, -is:retweet, lang:en, url:domain, etc.

### [`getUserByUsername`](https://kirha.com/providers/x/getUserByUsername.md)

Get X user profile by username/handle. Returns userId for use with getUserPosts.

### [`getTrends`](https://kirha.com/providers/x/getTrends.md)

Get trending topics on X for a specific location.

-----

**Tags:** social, x, twitter, posts, trends

[< Back to providers list](https://kirha.com/providers.md)