# Hermoso: search_x: Search X (Twitter) · Hermoso developer docs

> Machine-readable twin of https://hermoso.ai/docs/reference/publish/search_x/. Generated from the shipped page. Do not edit by hand.
> Full agent guide: https://hermoso.ai/llms.txt · MCP: https://app.hermoso.ai/mcp

[Docs](https://hermoso.ai/docs/) / [Tool reference](https://hermoso.ai/docs/reference/) / [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/) / search_x

# `search_x`

Search X (Twitter) read-only

Area: YOUTUBE CHANNEL SECTIONS + PLAYLIST IMAGES · [Publishing & scheduling](https://hermoso.ai/docs/reference/publish/). Generated from the running MCP server, like the rest of the [tool reference](https://hermoso.ai/docs/reference/).

## Description

Keyword search across the PUBLIC X index — the last 7 days. This is the X half of ad-spy research, alongside search_tiktok / search_instagram / search_reddit / search_threads / search_youtube. X’s own search OPERATORS work and are the point: `from:nike`, `-is:retweet`, `has:media`, `has:links`, `lang:en`, `"exact phrase"`, `(a OR b)`. Every post comes back with impressions, likes, reposts, replies, quotes and bookmarks, so you can rank what actually landed rather than what merely exists. ONLY THE LAST 7 DAYS: the full archive needs a tier we do not hold, and an older window is refused by name rather than silently truncated. Costs a small number of credits (X bills per post read and per distinct author returned with them, and this bills the ACTUAL count returned, never the number asked for). Needs X connected.

## Parameters

Parameter Type Description

`query` required `string` the search, X operators included — e.g. `(protein OR creatine) -is:retweet has:media lang:en`

`maxResults` `number` 10–100, default 25

`sortOrder` `"recency" | "relevancy"` default relevancy

`startTime` `string` ISO 8601, no earlier than 7 days ago

`endTime` `string` ISO 8601 end of the search window; within the last 7 days

`nextToken` `string` from a previous page

`account` `string` which connected account: its @handle or id from list_connector_accounts; needed only when several are connected

## Example call

Every required parameter is shown, filled from the schema where it gives a value and otherwise with a placeholder naming the type. Replace the placeholders with real values. The same call works on the MCP server, the CLI and `POST https://app.hermoso.ai/v1/tools/search_x`.

**MCP** (`tools/call`)

`{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_x","arguments":{"query":"<string>"}}}`
**CLI**

`hermoso call search_x --json '{"query":"<string>"}'`

## Credits

Credits are spent only on two things: running an AI model (image, video, voice, text, planning, post-production) and Ad Spy research. See [Credits & costs](https://hermoso.ai/docs/credits/).

## Related tools

- [search_tiktok](https://hermoso.ai/docs/reference/research/search_tiktok/) Search TikTok
- [search_instagram](https://hermoso.ai/docs/reference/research/search_instagram/) Search Instagram
- [search_reddit](https://hermoso.ai/docs/reference/research/search_reddit/) Search Reddit
- [search_threads](https://hermoso.ai/docs/reference/research/search_threads/) Search Threads
- [search_youtube](https://hermoso.ai/docs/reference/research/search_youtube/) Search YouTube
- [list_bluesky_posts](https://hermoso.ai/docs/reference/publish/list_bluesky_posts/) List the brand's own Bluesky posts
- [x_search_counts](https://hermoso.ai/docs/reference/publish/x_search_counts/) How often a query is posted on X
- [google_business_search_keywords](https://hermoso.ai/docs/reference/publish/google_business_search_keywords/) What people searched to find this business
- [x_trends](https://hermoso.ai/docs/reference/publish/x_trends/) What is trending on X
- [list_youtube_categories](https://hermoso.ai/docs/reference/publish/list_youtube_categories/) List the video categories you can publish under

[All 728 Publishing & scheduling tools](https://hermoso.ai/docs/reference/publish/) · [tools.json](https://hermoso.ai/docs/reference/tools.json)
