Tweets
Get user media
Retrieve tweets with media posted by an X user including photos, videos, and GIFs
GET
Get user media
Documentation Index
Fetch the complete documentation index at: https://docs.xquik.com/llms.txt
Use this file to discover all available pages before exploring further.
Requested result counts are upper bounds for paid authenticated calls. When remaining credits cannot cover the full page or ID list, Xquik returns fewer results. If zero paid results are affordable, it returns
402 insufficient_credits.User media handoff
UseGET /x/users/{id}/media when a gallery, moderation queue, warehouse, or
agent needs recent media tweets from one account. The examples above write JSON
Lines rows with the source user, media tweet ID, text, tweet URL, author ID,
username, display name, follower count, verified state, profile image URL,
engagement counts, media_urls, media_types, and cursor fields so a worker
can resume from the last saved next_cursor.
Which media endpoint?
- Use
GET /api/v1/x/users/{id}/mediawhen every row must be a media tweet from one profile. Storemedia_urls,media_types,media_tweet_id,page_cursor,next_cursor, andhas_next_page. - Use
GET /api/v1/x/users/{id}/tweetswhen the sync also needs non-media posts or replies. - Use
GET /api/v1/x/tweets/{id}when you already know one tweet ID and need its media plus full tweet detail. - Use
POST /api/v1/x/mediaonly to host or validate a local file or HTTPS media URL before a write. PassmediaUrltoPOST /api/v1/x/tweets, or passmediaIdas the onlymedia_idsitem forPOST /api/v1/x/dm/{userId}.
Path parameters
X user ID (numeric string) or username.
Query parameters
Pagination cursor. Pass the
next_cursor value from the previous response to fetch the next page.Tweet result filters
These optional filters apply totweets[] returned by this route. They keep the
same media-tweets target and filter rows after each page is fetched, so
selective filters can return fewer rows than an unfiltered page.
Filter to tweets authored by this username. The
@ prefix is optional.Filter to replies directed to this username.
Filter to tweets that mention this username.
Filter by tweet language code, such as
en, tr, or es.Filter to tweets created on or after this date or timestamp.
Filter to tweets created before this date or timestamp. A
YYYY-MM-DD value includes the whole day before the boundary.Filter by attached media or links. Values:
images, videos, gifs, media, links, none.Minimum like count.
Minimum retweet count.
Minimum reply count.
Minimum quote count.
When
true, only return tweets from verified authors.Reply mode. Values:
include, exclude, only.Retweet mode. Values:
include, exclude, only.Quote mode. Values:
include, exclude, only.Exact text that must appear in the tweet.
Words or quoted phrases to exclude from returned tweets. Separate with spaces, commas, or lines.
Words or quoted phrases where at least 1 term must appear in the tweet. Separate with spaces, commas, or lines.
Hashtags to match. Separate with spaces, commas, or lines. The
# prefix is optional.Cashtags to match. Separate with spaces, commas, or lines. The
$ prefix is optional.URL substring or domain that must appear in tweet URL entities.
Filter to tweets in this conversation thread.
Filter to replies to this tweet ID.
Filter to quote tweets of this tweet ID.
Filter to retweets of this tweet ID.
Headers
Your API key. Session cookie authentication is also supported.
Response
- 200 OK
- 400 Invalid user ID
- 404 User not found
- 401 Unauthenticated
- 402 Subscription required
- 429 Rate Limit Exceeded
- 424 Dependency Failed
Related: Get user timeline · User likes · User mentions timeline
Last modified on May 25, 2026
Get user media