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
Endpoints

Explore All 3 Communities Endpoints

Pick an endpoint to see what it does, which parameters it accepts, and the JSON your application receives. Authenticate with your API key in the x-api-key header.

GET/v1/twitter/communities/{community_id}

Get Community Detail

Get full metadata for any Twitter Community: name, description, member count, rules, categories, and administrator information.

Parameters
community_idrequiredThe numeric community ID
Sample response
{
  "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"
  }
}
View Get Community Detail documentation

What Can You Build With the Twitter Community Details Scraper API

Community discovery and directory building

Search for Communities related to a profession, industry, technology, hobby, location, or interest. Retrieve descriptions, member counts, join policies, banners, leadership information, and rules to build searchable Community directories.

Niche conversation and market intelligence

Collect posts from focused Communities to understand what specialized audiences are discussing. Compare Top and Latest posts, examine engagement metrics, and identify emerging questions, opinions, products, or trends within a defined interest group.

Content and media discovery

Retrieve Top posts to surface popular discussions, Latest posts to follow new conversations, or Media posts to find images, videos, and other visual content shared within a Community.

Community governance and safety research

Analyze Community rules, join policies, invitation settings, NSFW indicators, creator information, and admin details. Compare how Communities covering similar topics organize participation and define acceptable behavior.

More Twitter Data APIs

Why Choose ScrapeBadger?

Build Faster

Sub-100ms response times. Most of that is your network latency, not our infrastructure. Deploy, test, iterate the same day instead of week-long proofs-of-concept.

Scale Confidently

99.9% uptime SLA. Your data pipeline doesn't stop because X changed a selector. Monitoring, patching, and infrastructure are all us. You focus on what you built.

All X Data on One Platform

Tweets, profiles, followers, communities, trends, geo, real-time Streams — 40+ endpoints. Whatever you need from X, it's here. No fragmented tooling, no API gaps forcing you to bolt on a second service.

Integrate Anywhere

RESTful API, SDK support (Python, Node, Go, PHP), MCP, CLI, and no code. Use it in an existing system or a new greenfield; the response shape never surprises you.

Integrate With Your Stack

Use ScrapeBadger through an official SDK, a standard API request, a real-time connection, or the tools already in your workflow.

Python SDK

Build asynchronous data pipelines with typed responses, automatic pagination, retry handling, and access to the complete Twitter API.

Node.js SDK

Add Twitter data to Node.js and TypeScript applications with type definitions, async pagination, and support for both ESM and CommonJS.

REST API

Connect from any backend or programming language using standard HTTP requests. Responses arrive as structured JSON that can be stored, transformed, or passed into another service.

WebSockets and Webhooks

Receive new tweets through a persistent WebSocket connection or deliver them directly to your application through signed webhooks. Available with Twitter Streams for account and query monitoring.

MCP for AI Tools

Give compatible AI agents access to Twitter profiles, tweets, search, trends, communities, lists, and monitoring tools through ScrapeBadger's MCP server.

ScrapeBadger CLI

Search tweets, retrieve profiles, inspect trends, and export results as JSON, CSV, Markdown, or terminal-friendly tables without writing an application.

Trusted by Developers Worldwide

See what our customers say about ScrapeBadger Twitter API.

We switched from the official Twitter API and cut our costs by 95%. The pagination is seamless, and we've never hit a rate limit. Best decision we made this year.

MC
Marcus Chen
Lead Data Engineer at DataFlow Analytics
2 weeks ago

The follower and engagement endpoints are incredibly detailed. We use it for influencer research and competitor analysis. Response times are sub-100ms consistently.

SM
Sarah Mitchell
Marketing Director at SocialPulse Agency
1 month ago

Started with the Apify actor, then moved to the API for more control. The 1,000 free credits were enough to build our MVP. Now processing 2M+ tweets monthly.

JR
James Rodriguez
Founder at TweetMetrics
3 weeks ago

Perfect for academic research. The community and trends endpoints give us data we couldn't get anywhere else. Documentation could use more examples, but support is responsive.

EW
Emily Watson
Research Scientist at Stanford NLP Lab
1 month ago

We monitor 50,000+ accounts for our clients. ScrapeBadger handles it without breaking a sweat. The bulk ID endpoints are a game-changer for large-scale monitoring.

AP
Alex Petrov
CTO at MediaMonitor Pro
2 weeks ago

The geo and trends endpoints power our location-based analytics. Setup took 10 minutes. Their Apify actors are also great for quick one-off scrapes.

LP
Lisa Park
Product Manager at Trendy AI
3 weeks ago
Pricing

Simple, transparent pricing

Start with pay-as-you-go credits (never expire) or save up to 64% with a monthly or annual subscription. Failed requests never consume credits, and the exact charge is returned in the X-Credits-Used response header.

Not Sure Which Plan Fits Your Needs? Calculate Your Cost and Find the Right Plan.

Every endpoint uses the same model: 1 base credit + 1 credit per item returned. Single-item lookups always cost 2 credits. Paginated list endpoints cost 1 + the number of items in the page. Failed requests cost 0 credits.

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.

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.