Twitter Scraper APIsCommunities API
Twitter Communities API

Twitter (X) Community Details Scraper API for Complete Community Data and Content Discovery

Search public Twitter Communities, retrieve detailed community metadata, and collect Top, Latest, or Media posts from specific Communities as structured JSON.

3 community-specific endpoints
1 base credit + 1 credit per item returned
Failed requests cost 0 credits
1,000 free credits
No credit card required
GET /v1/twitter/communities/{community_id}
TWITTER
{
  "data": {
    "id": "1234567890",
    "name": "Web Developers",
    "description": "A community for web developers to share knowledge",
    "member_count": 15000,
    "created_at": "2023-06-15T00:00:00Z"
  }
}
Endpoints

3 Communities Endpoints

All endpoints return structured JSON and authenticate with your API key in the x-api-key header.

Cost Calculator

Estimate your communities scraping cost

Failed requests never consume credits, and the exact charge is returned in the X-Credits-Used response header.

Total credits for 1,000 communities requests21,000
Loading plans…
Pricing

Simple, transparent pricing

Start with pay-as-you-go credits (never expire) or save up to 64% with a monthly or annual subscription. No hidden fees, no lock-in.

FAQ

Frequently asked questions

Everything you need to know about the Twitter Communities API.

What is a Twitter Community Details Scraper API?

A Twitter Community Details Scraper API turns public Community metadata and Community posts into structured data an application can use. ScrapeBadger's three Communities endpoints let you retrieve complete Community details, collect posts from a specific Community, and search for Communities by name, description, or keyword.

What Twitter Community data can I retrieve?

Community responses can include the Community ID, name, description, member count, membership status, role, NSFW status, join policy, invitation policy, creation date, banner image, creator information, admin information, and Community rules.

How can I find relevant Twitter Communities?

Use the Search Communities endpoint with a query related to a topic, industry, profession, hobby, or interest. The endpoint matches the query against Community names and descriptions and returns Community objects with their numeric IDs. You can then pass a Community ID to the details or tweets endpoint.

What is the difference between Top, Latest, and Media Community tweets?

Top returns prominent posts from the Community and is the default option. Latest returns recent Community posts in reverse-chronological order, while Media focuses on posts containing images or video. Set the tweet_type parameter to Top, Latest, or Media when requesting Community tweets.

Can I retrieve a Community's complete member list?

The three Communities endpoints return the Community's member_count and membership-related fields, but they do not return an array of member profiles. They cover Community discovery, metadata, rules, leadership information, and Community posts.

How does pagination work?

Get Community Tweets and Search Communities return next_cursor when another page is available. Pass that value as the cursor parameter in the next request and continue until next_cursor is null or absent. Get Community Details returns one Community object and does not require pagination.

How much does the Twitter Communities API cost?

Every successful Communities request costs 1 base credit plus 1 credit for each item returned. A Community-details lookup returns one object and uses 2 credits. A page containing 20 tweets uses 21 credits, while a search returning 10 Communities uses 11 credits. Failed 4xx and 5xx requests use 0 credits, and the exact charge is returned in the X-Credits-Used response header.

Does the Twitter Communities API have rate limits?

Yes. Request-per-minute limits depend on the selected ScrapeBadger plan. See the pricing table for the current limits.

More Twitter Data APIs

Start building with the Communities API

Sign up free and get 1,000 API credits. No credit card required.

Disclaimer: ScrapeBadger is not affiliated with, endorsed by, or in any way officially connected with X Corp. (formerly Twitter, Inc.) or any of its subsidiaries or affiliates. The names Twitter, X, and related trademarks are the property of their respective owners.