X (Twitter) Community Posts Scraper API
Returns the most recent posts posted inside a X community, each with the full text, like count, repost count, reply count, media attachments, author info, and creation timestamp. Long-form posts return their complete body rather than the 280-character clamp, and t.co links in the text are resolved to their destinations.
GET /api/v1/data/x/community-posts · 1 credit per call · The same call repeated within 10 minutes may get the same answer, so data can be up to 10 minutes old.
Inputs
url(required): Full URL of the X community, in the form https://x.com/i/communities/{id}since: Only rows published on or after this date: YYYY-MM-DD (midnight UTC) or an ISO 8601 timestamp. Rows older than it are left off each page. A row with no date is kept. `published_after`, `start_date`, `from_date`, `publish_time` (`yesterday`, `this-week`, `this-month`, `last-3-months`, `last-6-months`) and `max_age_days` are accepted and applied as `since`.until: Only rows published on or before this date: YYYY-MM-DD (that whole UTC day is included) or an ISO 8601 timestamp. A row with no date is kept. `published_before`, `end_date` and `to_date` are accepted and applied as `until`.
What comes back
result_status(string): success, or not_available when the item does not exist, was removed or is not public.count(integer): How many posts this answer holds.posts[].id(string): The item's ID on the platform.posts[].url(string): Link to it on the platform.posts[].text(string): Its text.posts[].published_at(string): When it was published (ISO 8601).posts[].language(string): Its language code.posts[].deleted(boolean): Whether it was deleted.posts[].author_username(string): The author's username.posts[].author_name(string): The author's display name.posts[].author_verified(boolean): Whether the author is verified.posts[].author_avatar_url(string): The author's picture.posts[].like_count(number): Likes.posts[].comments_count(number): Comments.posts[].share_count(number): Shares or reposts.posts[].quote_count(number): Quotes.posts[].save_count(number): Saves.posts[].view_count(number): Views.posts[].hashtags(array): Hashtags in it.posts[].mentions(array): Accounts it mentions.posts[].media[].url(string): Its media.posts[].media[].thumbnail_url(string): Its media's thumbnail.posts[].media[].duration_seconds(number): Its video's length in seconds.posts[].content_type(string): What it is: post.posts[].platform(string): The platform's name.posts[].source_data(object): Everything the platform sent for this row, as it came.posts[].source_data.computed.content_category(string): Keyword-classified content category (e.g. tech, food, gaming). Null when undetectable.posts[].source_data.computed.engagement_rate(number): Computed engagement rate (0..1).posts[].source_data.computed.estimated_reach(number): Estimated reach based on views or follower count. Null when uncomputable.posts[].source_data.computed.language(string): ISO 639-1 language code detected from the post text. Null when undetectable.posts[].source_data.computed.save_rate(number): Saves divided by views, rounded to six places. Present only when the post has both a save count and a view count above zero.posts[].source_data.post.author.avatar_url(string): URL to author profile pictureposts[].source_data.post.author.display_name(string): Author display nameposts[].source_data.post.author.username(string): Author usernameposts[].source_data.post.author.verified(boolean): Whether the author account is verifiedposts[].source_data.post.content.duration_seconds(number): Video/clip duration in seconds (null for non-video posts)posts[].source_data.post.content.media_urls(any): URL(s) of the primary media. Single string for video/photo posts; array of strings for carousels.posts[].source_data.post.content.text(string): Post caption, description, or text contentposts[].source_data.post.content.thumbnail_url(string): URL to thumbnail imageposts[].source_data.post.engagement.comments(number): Comment count. Both land on this same field.posts[].source_data.post.engagement.likes(number): Like / reaction countposts[].source_data.post.engagement.saves(number): Save / bookmark count. `null` on Instagram: the save count is platform-private and Instagram exposes no numeric save metric on any surface (never fabricated).posts[].source_data.post.engagement.shares(number): Share / repost / repost count.posts[].source_data.post.engagement.views(number): View count (if available). For Instagram video/reels this is the play count: the headline 'Views' the IG app shows. Note: since mid-July 2026 Instagram's play count is Instagram-only. It no longer includes Facebook crosspost views (Meta-side change; the app UI changed identically).posts[].source_data.post.ext.all_media_urls(array): Present only when there is more than one. X only.posts[].source_data.post.ext.content_language(string): Never inferred from the text by us: that is `post.computed.language`.posts[].source_data.post.ext.hashtags(array): Hashtags parsed from the caption, lower cased without the #, each listed once in order.posts[].source_data.post.ext.mentions(array): Handles mentioned in the caption, lower cased with the @, each listed once in order.posts[].source_data.post.ext.quote_count(number): How many times the post was quoted. X and Threads.posts[].source_data.post.flags.deleted(boolean): Whether the post is tombstoned (always present)posts[].source_data.post.flags.nsfw(boolean): NSFW flag (null when platform does not surface)posts[].source_data.post.id(string)posts[].source_data.post.published_at(any): Post creation timestamp as an ISO 8601 UTC string.posts[].source_data.post.url(string)
Good to know
- Each call costs 1 credit. A call that finds nothing, or fails, is free.
- The same call repeated within 10 minutes may get the same answer, so data can be up to 10 minutes old.
Example call
GET /api/v1/data/x/community-posts?url=https%3A%2F%2Fx.com%2Fi%2Fcommunities%2F1926186499399139650
Questions
How much does the X (Twitter) Community Posts API cost?
Each call costs 1 credit. A call that finds nothing, or fails, costs nothing.
What do I send?
You must send url. 2 more inputs are optional: since and until. 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 10 minutes may get the same answer, so data can be up to 10 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
- Community: Get X community details. 1 credit a call
More X (Twitter) scraper APIs
- X (Twitter) AI Search Scraper API
- X (Twitter) Community Scraper API
- X (Twitter) Post Reposters Scraper API
- X (Twitter) Post Transcript Scraper API
- X (Twitter) Profile Scraper API
- X (Twitter) Profile About Scraper API
- X (Twitter) Profile Full Scraper API
- X (Twitter) Search Hashtag Scraper API
- X (Twitter) Search Mentions Scraper API
- X (Twitter) Search Users Scraper API
- X (Twitter) User Followers Scraper API
- X (Twitter) User Following Scraper API
- X (Twitter) User Media Scraper API