---
title: "Search Communities"
method: POST
path: "/search-communities"
tags: ["Community"]
---

# Search Communities

`POST /search-communities`

## Request

- Base URL: `https://api.sorsa.io/v3`
- URL: `https://api.sorsa.io/v3/search-communities`
- Auth: API key in header `ApiKey`
- TypeScript: <https://skmtc.dev/sorsa/apis/api-sorsa-io/docs/search-communities/post.ts> (a function with typed inputs; its response is checked against the schema)

Searches for Twitter/X communities by query. Returns id, name, banner_url and member_count for each result, plus next_cursor for pagination. banner_url uses the default banner when no custom banner exists. Empty results are returned as an empty communities array.

## Request body

- CommunitySearchCommunitiesReq
  - `next_cursor` string: Optional pagination cursor from the previous response.
  - `query` string, required: Search query. Required.

## Response `200`

OK

- CommonCommunitiesResponse
  - `communities` CommonCommunity[]: Matching communities. Empty array when there are no results.
    - `banner_url` string: Custom banner URL, or the default banner if no custom banner exists.
    - `id` string: Numeric community ID.
    - `member_count` integer
    - `name` string
  - `next_cursor` string: Cursor for the next page. Empty when no further page is available.

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `402`: Payment Required
- `403`: Forbidden
- `429`: Too Many Requests
- `500`: Internal Server Error

## Changes

- **2026-09-18** `c52ef80b2cb3`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/sorsa/apis/api-sorsa-io/changes/search-communities/post.md)

---

[API](https://skmtc.dev/sorsa/apis/api-sorsa-io.md) - [All operations](https://skmtc.dev/sorsa/apis/api-sorsa-io/llms.txt) - [OpenAPI document](https://skmtc.dev/sorsa/apis/api-sorsa-io/revisions/0c8d4b42892e?raw)
