Platforms · X (Twitter)

X (Twitter) Community Scraper API

Returns information about a X community: the name, description, member count (as author.followers), creation date, and the community rules under author.ext.rules, each with its name and description. author.ext.creator_username, author.ext.join_policy and author.ext.is_nsfw carry the rest. A community is not a user account, so the leaves that only make sense for one stay null: verified, private, following, posts_count and likes_count.

GET /api/v1/data/x/community · 1 credit per call · The same call repeated within 15 minutes may get the same answer, so data can be up to 15 minutes old.

Inputs

  • url (required): Full URL of the X community, in the form https://x.com/i/communities/{id}

What comes back

  • result_status (string): success, or not_available when the item does not exist, was removed or is not public.
  • source_data.author.avatar_url (string): URL to profile picture
  • source_data.author.bio (string): Profile biography or description
  • source_data.author.display_name (string): Display name or full name
  • source_data.author.ext.business_hours (array)
  • source_data.author.ext.creator_username (string): Handle of the person who created the community. X communities only.
  • source_data.author.ext.is_nsfw (boolean): Whether the community is marked as adult. X communities only.
  • source_data.author.ext.join_policy (string): How people join the community, as the platform labels it. X communities only.
  • source_data.author.ext.products (array): Null when it lists none.
  • source_data.author.ext.rules (array): The community's rules.
  • source_data.author.followers (number): Follower or subscriber count as an integer. YouTube above 1,000 subscribers is YouTube's published three-significant-figure figure. When the integer is a published/rounded value, `author.ext.followers_approximate` is true.
  • source_data.author.id (string): Platform-specific user ID (always a string; platform-specific prefixes like `did:`, `spotify:artist:`, `t2_` are stripped)
  • source_data.author.joined_at (string): When the account was created, as an ISO 8601 date (YYYY-MM-DD).
  • source_data.author.location (string): ISO region code (e.g. `US`) or freeform location string when surfaced
  • source_data.author.url (string): Direct URL to the profile page
  • source_data.author.username (string): User handle or username
  • source_data.computed.content_category (string): Keyword-classified content category (e.g. tech, food, gaming). Null when undetectable.
  • source_data.computed.engagement_rate (number): Computed engagement rate (0..1).
  • source_data.computed.estimated_reach (number): Estimated reach based on views or follower count. Null when uncomputable.
  • source_data.computed.language (string)
  • source_data.computed.save_rate (number)
  • source_data (object): Everything the platform sent for this call, as it came.

Good to know

  • Each call costs 1 credit. A call that finds nothing, or fails, is free.
  • The same call repeated within 15 minutes may get the same answer, so data can be up to 15 minutes old.

Example call

GET /api/v1/data/x/community?url=https%3A%2F%2Fx.com%2Fi%2Fcommunities%2F1926186499399139650

Questions

How much does the X (Twitter) Community API cost?

Each call costs 1 credit. A call that finds nothing, or fails, costs nothing.

What do I send?

You must send url. Inputs go in the query string of a GET, or as JSON in a POST, along with your API key.

How fresh is the data?

The same call repeated within 15 minutes may get the same answer, so data can be up to 15 minutes old.

Do I need an X (Twitter) account or developer app?

No. You call SocialHz with your SocialHz API key, and the same key works for every platform.

Can I try it before paying?

Yes. Signing up gives you 10 free credits, with no card needed.

Related X (Twitter) endpoints

More X (Twitter) scraper APIs