Skip to main content
Glama

ScrapeField

Get an X account's or community's posts

get_x_posts

Fetch an account's newest posts, about 20 a page with next_cursor for older ones; or, with community_url, the latest posts in a community, one window. Each post has its text, created_at, public_metrics (likes, reposts, replies, quotes, bookmarks, views), media, hashtags and mentions. Give exactly one of username or url or community_url. Costs 13 credits (3 with community_url), cached or not; a failed call is refunded.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoThe account's profile URL.
freshNoSkip the cache and fetch now. Charged normally. Not available on trial credits — buy any pack to unlock it.
cursorNoThe `meta.next_cursor` from the previous page. Omit for the first page.
usernameNoThe account's username, without the @.
community_urlNoA community's URL, `https://x.com/i/communities/<id>`: its latest posts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

Score is being calculated.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.