Get an X account's or community's posts
get_x_postsFetch 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
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | The account's profile URL. | |
| fresh | No | Skip the cache and fetch now. Charged normally. Not available on trial credits — buy any pack to unlock it. | |
| cursor | No | The `meta.next_cursor` from the previous page. Omit for the first page. | |
| username | No | The account's username, without the @. | |
| community_url | No | A community's URL, `https://x.com/i/communities/<id>`: its latest posts. |