# X / Twitter Community Search

Search X (Twitter) communities by keyword and get their id, name, topic, and member count with cursor pagination. This is how you find a community URL to pass to twitter.community or twitter.community_tweets.

|  |  |
| --- | --- |
| Tool id | `anyapi.twitter-search-communities` |
| Platform | [X (Twitter)](https://www.orcarouter.ai/tools/x.md) |
| Capability | [Search posts](https://www.orcarouter.ai/tools/x/search-posts.md) |
| Price | $0.00121 per call |
| Health | OK |
| p50 latency | — |
| Success (7 days) | — |
| Runs (30 days) | — |
| Idempotent | no |
| Data class | scraped |

## Input

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `query` | string | yes | Keyword to match against X (Twitter) community names and topics (e.g. artificial intelligence). |
| `cursor` | string | no | Opaque pagination cursor from a previous response's nextCursor. Omit for the first page; pass it to fetch the next page of communities. |

## Call it

```bash
curl -sS https://api.orcarouter.ai/v1/tools/anyapi.twitter-search-communities/run \
  -H "Authorization: Bearer $ORCAROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"query":"<query>"}}'
```

```python
import os, requests

resp = requests.post(
    "https://api.orcarouter.ai/v1/tools/anyapi.twitter-search-communities/run",
    headers={"Authorization": f"Bearer {os.environ['ORCAROUTER_API_KEY']}"},
    json={"input":{"query":"<query>"}},
)
print(resp.json())
```

## Alternatives

| Tool | Source | Price | Health |
| --- | --- | --- | --- |
| [X / Twitter Search](https://www.orcarouter.ai/tools/x/search-posts/x-search-posts.md) | — | $0.00066 per call | OK |
| [Search X (Twitter) posts by keyword](https://www.orcarouter.ai/tools/x/search-posts/x-twitter-web-fetch-search-timeline.md) | — | $0.0011 per call | OK |

## FAQ

### How much does X / Twitter Community Search cost?

X / Twitter Community Search costs $0.00121 per call: 1,000 calls cost $1.21.

### What does a $10 budget buy with X / Twitter Community Search?

About 8264 calls at $0.00121 per call.

### What inputs does X / Twitter Community Search need?

Required inputs: query.

### How do I call X / Twitter Community Search?

Send POST /v1/tools/{id}/run with your OrcaRouter API key and a JSON body {"input": {…}}, where {id} is the tool id POST /v1/tools/discover returns for it.

---

Markdown version of https://www.orcarouter.ai/tools/x/search-posts/twitter-search-communities
