Sand AISand AI MAGI-2MAGI-2 теперь на SandBase: видео 1080p с нативным звукомПопробовать сейчас

X (Twitter) Twitter Community

Документация API
https://api.sandbase.ai/v1/api/twitter/community

Fetch a Twitter/X community's public details (name, description, member count, join policy) by URL.

Цена
От $0.0001USD / вызов
Метод
POST
Ответ
JSON
Параметры
1 обязательных · 0 необязательных

Песочница

Ввод
Community URL (e.g. https://x.com/i/communities/1926186499399139650).
ВыходГотово

Ваш результат появится здесь

Заполните входные данные, затем нажмите «Запустить».

README по API

X (Twitter) Twitter Community API

Returns the public details of one X (Twitter) community: name, description, member count, join policy, creator handle and rules. It needs the community URL as the url parameter.

Use cases

  • Check the size and join policy of a community before you decide to join or promote in it.
  • Track memberCount for a list of communities to see which ones grow.
  • Read the rules of a community before you plan posts for it.
  • Find the creator of a community and start outreach from their handle.

Request

curl -X POST "https://api.sandbase.ai/v1/api/twitter/community" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://x.com/i/communities/1926186499399139650"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
urlstringYesCommunity URL (e.g. https://x.com/i/communities/1926186499399139650).

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "createdUtc": 1748073622,
    "creatorHandle": "carsonrmccann",
    "description": "This community is for creators and builders who are growing to their first 1,000…",
    "id": "1926186499399139650",
    "joinPolicy": "Open",
    "memberCount": 5626,
    "name": "The First Thousand",
    "nsfw": false,
    "rules": [
      {
        "name": "No Empty Platitudes"
      }
    ]
  },
  "found": true
}

Response fields

FieldMeaning
data.nameDisplay name of the community.
data.descriptionText the community uses to describe its purpose.
data.memberCountNumber of members in the community.
data.joinPolicyHow people can join. The sample value is Open.
data.creatorHandleX handle of the user who created the community.
data.createdUtcCreation time as a Unix timestamp in seconds (UTC).
data.rules[].nameTitle of each community rule, in the order returned.
data.nsfwtrue if the community is marked as adult content, otherwise false.
data.idNumeric community ID as a string. It matches the ID at the end of the input URL.
foundtrue when the community was found. A lookup that finds nothing returns false.

Notes

Pricing

Billed at the actual cost of each call, about $0.0001 for the request above. Failed calls are not charged.

Посмотреть больше

Связанные APIs

Все APIs
APIЦенаОтвет
X (Twitter)От $0.0001 за запросJSON
X (Twitter)От $0.00054 за запросJSON
TwitterОт $0.0006 за запросАсинхронный JSON
X (Twitter)От $0.0036 за запросJSON
X (Twitter)От $0.00045 за запросJSON
X (Twitter)От $0.00045 за запросJSON

Руководства:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared

Вопросы

FAQ

Как использовать API X (Twitter) Twitter Community?

Отправьте POST-запрос на https://api.sandbase.ai/v1/api/twitter/community, указав ключ SandBase API в заголовке Authorization (Bearer), а параметры — в теле JSON. Вы также можете попробовать это в Playground на этой странице без написания кода.

Сколько стоит API X (Twitter) Twitter Community?

От $0.0001 за вызов, списывается с баланса SandBase. Оплата взимается только за сделанные вызовы; подписка не требуется.

Какие параметры принимает API X (Twitter) Twitter Community?

Обязательные: url (string). В таблице Parameters и в Playground на этой странице перечислены все поля.

Что возвращает API X (Twitter) Twitter Community?

JSON-ответ, возвращаемый в том же HTTP-запросе (синхронно). В README на этой странице приведен пример ответа.

Нужен ли мне аккаунт разработчика X (Twitter) или API key?

Нет. X (Twitter) Twitter Community работает через SandBase, поэтому один API key SandBase покрывает этот endpoint и все остальные API и модели в каталоге. Вам не нужно отдельно запрашивать доступ к API X (Twitter).