The Twitter X Media Explorer API is focused on user media, allowing access to multimedia content (images, videos, GIFs) shared by specific Twitter accounts in an efficient way. This unique endpoint simplifies media data extraction by providing specific parameters such as user to identify the user and cursor to seamlessly paginate results. Ideal for developers looking to integrate visual content into applications, perform trend analysis or monitor social media activity, this API offers a focused solution for a specific use case. Its optimized design ensures fast response times and efficient handling of large volumes of data, adapting to small and large projects. Compatible with marketing strategies, social media research and content automation, this API provides reliable and easy-to-use results with a clear and straightforward implementation process. Simplify visual data extraction and increase the impact of your applications with this specialized user media tool.
Sends a GET request with the parameters user (ID or username) and optionally cursor to obtain shared media and manage paging.
Get User Media - Endpoint Features
| Object | Description |
|---|---|
user |
[Required] |
cursor |
Optional |
{"cursor":{"bottom":"DAABCgABGenf3Fu___cKAAIZ5rKNA5bR_wgAAwAAAAIAAA","top":"DAABCgABGenf3FvAJxEKAAIZ6DKyYJoQFwgAAwAAAAEAAA"},"data":{"__typename":"TimelineAddEntries","entries":[{"entryId":"tweet-1866797787251347479","sortIndex":"1867269658046889984","content":{"__typename":"TimelineTimelineItem","content":{"__typename":"TimelineTweet","tweetResult":{"result":{"__typename":"Tweet","rest_id":"1866797787251347479","view_count_info":{"count":"44846211","state":"EnabledWithCount"},"legacy":{"conversation_id_str":"1866797787251347479","created_at":"Wed Dec 11 10:50:50 +0000 2024","display_text_range":[0,37],"entities":{"hashtags":[],"symbols":[],"urls":[],"user_mentions":[],"timestamps":[]},"extended_entities":{"media":[{"display_url":"pic.x.com/20R38Qgk5B","expanded_url":"https://x.com/elonmusk/status/1866797787251347479/photo/1","ext_media_availability":{"status":"Available"},"features":{"large":{"faces":[]}},"id_str":"1866797784227254275","indices":[38,61],"media_key":"3_1866797784227254275","media_url_https":"https://pbs.twimg.com/media/GegysaxaEAMgqoz.jpg","original_info":{"width":825,"height":359,"focus_rects":[{"x":0,"y":0,"w":641,"h":359},{"x":47,"y":0,"w":359,"h":359},{"x":69,"y":0,"w":315,"h":359},{"x":136,"y":0,"w":180,"h":359},{"x":0,"y":0,"w":825,"h":359}]},"sizes":{"large":{"w":825,"h":359}},"type":"photo","url":"https://t.co/20R38Qgk5B"}]},"favorite_count":187687,"favorited":false,"full_text":"No, I definitely melted it down 1000% https://t.co/20R38Qgk5B","is_quote_status":false,"lang":"en","possibly_sensitive":false,"possibly_sensitive_editable":true,"quote_count":1023,"reply_count":7919,"retweet_count":12696,"retweeted":false,"user_id_str":"44196397","bookmarked":false,"bookmark_count":3385},"core":{"user_result":{"result":{"__typename":"User","rest_id":"44196397","is_blue_verified":true,"profile_image_shape":"Circle","affiliates_highlighted_label":{"label":{"url":{"urlType":"DeepLink","url":"https://twitter.com/X"},"badge":{"url":"https://pbs.twimg.com/profile_images/1683899100922511378/5lY42eHs_bigger.jpg"},"userLabelType":"BusinessLabel","userLabelDisplayType":"Badge","description":"X"}},"legacy":{"can_dm":false,"can_media_tag":false,"advertiser_account_service_levels":["smb"],"advertiser_account_type":"promotable_user","analytics_type":"enabled","created_at":"Tue Jun 02 20:12:29 +0000 2009","description":"The people voted for major government reform","entities":{"description":{"hashtags":[],"symbols":[],"urls":[],"user_mentions":[]}},"fast_followers_count":0,"favourites_count":99863,"followers_count":207272455,"friends_count":871,"geo_enabled":false,"has_custom_timelines":true,"has_extended_profile":true,"id_str":"44196397","is_translator":false,"location":"","media_count":2935,"name":"Elon Musk","normal_followers_count":207272455,"pinned_tweet_ids_str":["1867264058627621191"],"profile_background_color":"C0DEED","profile_banner_url":"https://pbs.twimg.com/profile_banners/44196397/1726163678","profile_image_url_https":"https://pbs.twimg.com/profile_images/1858316737780781056/kPL61o0F_normal.jpg","profile_interstitial_type":"","profile_link_color":"0084B4","protected":false,"screen_name":"elonmusk","statuses_count":62277,"translator_type_enum":"None","verified":false,"withheld_in_countries":[]},"super_follow_eligible":true,"super_followed_by":false,"super_following":false,"private_super_following":false,"exclusive_tweet_following":false}}},"edit_control":{"__typename":"EditControlInitial","edit_tweet_ids":["1866797787251347479"],"editable_until_msecs":"1733917850000","edits_remaining":"5","is_edit_eligible":false},"unmention_data":{},"quick_promote_eligibility":{"eligibility":"IneligibleNotProfessional"},"conversation_muted":false,"is_translatable":true}},"tweetDisplayType":"Tweet"}}},{"entryId":"tweet-1866797259968614885","sortIndex":"1867269658046889983","content":{"__typename":"TimelineTimelineItem","content":{"__typename":"TimelineTweet","tweetResult":{"result":{"__typename":"Tweet","birdwatch_pivot":{"call_to_action":{"prompt":"Bu size yardımcı oldu mu?","title":"Değerlendir","destination_url":"https://twitter.com/i/birdwatch/n/1866877899539890333"},"destination_url":"https://twitter.com/i/birdwatch/n/1866877899539890333","footer":{"text":"Bağlam, X uygulamasını kullanan kişiler tarafından yazılır ve başkaları tarafından Yardımcı Oldu olarak değerlendirildiğinde görüntülenir. Daha fazlasını keşfet.","entities":[{"fromIndex":140,"toIndex":161,"ref":{"__typename":"TimelineUrl","url":"https://twitter.com/i/flow/join-birdwatch","urlType":"ExternalUrl"}}]},"note":{"rest_id":"1866877899539890333","summary":{"text":"This refers to grokking, a topic in machine learning about figuring out a solution after an extended training period. It is not about the Xai language model.\n\nhttps://arxiv.org/abs/2201.02177\n\nhttps://proceedings.neurips.cc/paper_files/paper/2022/hash/dfc310e81992d2e4cedc09ac47eff13e-Abstract-Conference.html","entities":[{"fromIndex":159,"toIndex":191,"ref":{"__typename":"TimelineUrl","url":"https://t.co/ltWMD8tE7y","urlType":"ExternalUrl"}},{"fromIndex":193,"toIndex":309,"ref":{"__typename":"TimelineUrl","url":"https://t.co/CG3J4RmQxQ","urlType":"ExternalUrl"}}]}},"subtitle":{"text":"This refers to grokking, a topic in machine learning about figuring out a solution after an extended training period. It is not about the Xai language model.\n\narxiv.org/abs/2201.02177\n\nproceedings.neurips.cc/paper_files/pa…","entities":[{"fromIndex":159,"toIndex":183,"ref":{"__typename":"TimelineUrl","url":"https://t.co/ltWMD8tE7y","urlType":"ExternalUrl"}},{"fromIndex":185,"toIndex":223,"ref":{"__typename":"TimelineUrl","url":"https://t.co/CG3J4RmQxQ","urlType":"ExternalUrl"}}]},"title":"Okuyucular, insanların bilmek isteyebileceğini düşündükleri içerikler ekledi","shorttitle":"Okuyucular bağlam ekledi","icon_type":"BirdwatchV1Icon","visual_style":"Default"},"rest_id":"1866797259968614885","view_count_info":{"count":"8703553","state":"EnabledWithCount"},"legacy":{"conversation_id_str":"1866797259968614885","created_at":"Wed Dec 11 10:48:44 +0000 2024","display_text_range":[0,45],"entities":{"hashtags":[],"symbols":[],"urls":[],"user_mentions":[{"id_str":"1720665183188922368","indices":[24,29],"name":"Grok","screen_name":"grok"}],"timestamps":[]},"extended_entities":{"media":[{"display_url":"pic.x.com/zwl0MGU0og","expanded_url":"https://x.com/elonmusk/status/1866797259968614885/photo/1","ext_media_availability":{"status":"Available"},"features":{"large":{"faces":[]}},"id_str":"1866797256642531330","indices":[46,69],"media_key":"3_1866797256642531330","media_url_https":"https://pbs.twimg.com/media/GegyNtXaEAIh3XI.jpg","original_info":{"width":1534,"height":740,"focus_rects":[{"x":107,"y":0,"w":1321,"h":740},{"x":397,"y":0,"w":740,"h":740},{"x":443,"y":0,"w":649,"h":740},{"x":582,"y":0,"w":370,"h":740},{"x":0,"y":0,"w":1534,"h":740}]},"sizes":{"large":{"w":1534,"h":740}},"type":"photo","url":"https://t.co/zwl0MGU0og","allow_download_status":{"allow_download":true}}]},"favorite_count":18063,"favorited":false,"full_text":"arXiv papers mentioning @Grok in the abstract https://t.co/zwl0MGU0og","is_quote_status":false,"lang":"en","possibly_sensitive":false,"possibly_sensitive_editable":true,"quote_count":248,"reply_count":2772,"retweet_count":2588,"retweeted":false,"user_id_str":"44196397","bookmarked":false,"bookmark_count":819},"core":{"user_result":{"result":{"__typename":"User","rest_id":"44196397","is_blue_verified":true,"profile_image_shape":"Circle","affiliates_highlighted_label":{"label":{"url":{"urlType":"DeepLink","url":"https://twitter.com/X"},"badge":{"url":"https://pbs.twimg.com/profile_images/1683899100922511378/5lY42eHs_bigger.jpg"},"userLabelType":"BusinessLabel","userLabelDisplayType":"Badge","description":"X"}},"legacy":{"can_dm":false,"can_media_tag":false,"advertiser_account_service_levels":["smb"],"advertiser_account_type":"promotable_user","analytics_type":"enabled","created_at":"Tue Jun 02 20:12:29 +0000 2009","description":"The people voted for major government reform","entities":{"description":{"hashtags":[],"symbols":[],"urls":[],"user_mentions":[]}},"fast_followers_count":0,"favourites_count":99863,"followers_count":207272455,"friends_count":871,"geo_enabled":false,"has_custom_timelines":true,"has_extended_profile":true,"id_str":"44196397","is_translator":false,"location":"","media_count":2935,"name":"Elon Musk","normal_followers_count":207272455,"pinned_tweet_ids_str":["1867264058627621191"],"profile_background_color":"C0DEED","profile_banner_url":"https://pbs.twimg.com/profile_banners/44196397/1726163678","profile_image_url_https":"https://pbs.twimg.com/profile_images/1858316737780781056/kPL61o0F_normal.jpg","profile_interstitial_type":"","profile_link_color":"0084B4","protected":false,"screen_name":"elonmusk","statuses_count":62277,"translator_type_enum":"None","verified":false,"withheld_in_countries":[]},"super_follow_eligible":true,"super_followed_by":false,"super_following":false,"private_super_following":false,"exclusive_tweet_following":false}}},"edit_control":{"__typename":"EditControlInitial","edit_tweet_ids":["1866797259968614885"],"editable_until_msecs":"1733917724000","edits_remaining":"5","is_edit_eligible":true},"unmention_data":{},"quick_promote_eligibility":{"eligibility":"IneligibleNotProfessional"},"conversation_muted":false,"is_translatable":true}},"tweetDisplayType":"Tweet"}}},{"entryId":"tweet-1866785244046823751","sortIndex":"1867269658046889982","content":{"__typename":"TimelineTimelineItem","content":{"__typename":"TimelineTweet","tweetResult":{"result":{"__typename":"Tweet","rest_id":"1866785244046823751","view_count_info":{"count":"185331","state":"EnabledWithCount"},"legacy":{"conversation_id_str":"1866742307623784882","created_at":"Wed Dec 11 10:01:00 +0000 2024","display_text_range":[15,15],"entities":{"hashtags":[],"symbols":[],"urls":[],"user_mentions":[{"id_str":"1560341081576939524","indices":[0,15]}]}}}}}}}]},"_note":"Response truncated for documentation purposes"}
curl --location --request GET 'https://zylalabs.com/api/5821/twitter+x+media+explorer+api/7607/get+user+media?user=44196397' --header 'Authorization: Bearer YOUR_API_KEY'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
The Twitter X Media Explorer API is a specialized tool that allows developers to query multimedia content (images, videos, GIFs) shared by specific Twitter users through a single endpoint.
You can filter media results by specifying the user whose media you want to access. Additionally, the API supports cursor navigation to paginate through large sets of results.
The API provides access to various types of multimedia content, including images, videos, and GIFs shared by Twitter users.
The API simplifies the extraction of visual content, offers fast response times, and efficiently handles large volumes of data, making it ideal for applications related to marketing strategies, social media research, and content automation.
Yes, the API is designed to adapt to both small and large projects, providing reliable and easy-to-use results regardless of the scale of your application.
The Get User Media endpoint returns multimedia content shared by a specified Twitter user, including images, videos, and GIFs. The response includes metadata such as tweet IDs, creation dates, view counts, and media URLs.
Key fields in the response include `entryId`, `created_at`, `view_count_info`, and `extended_entities.media`, which provides URLs and availability status for the media items.
The response data is structured in a JSON format, with a `cursor` object for pagination and a `data` object containing an array of media entries, each with detailed content and metadata.
The endpoint accepts parameters such as `user` (ID or username) to specify the Twitter account and `cursor` for pagination to navigate through multiple pages of results.
Users can customize requests by specifying the `user` parameter to target specific accounts and using the `cursor` parameter to control pagination, allowing for tailored data retrieval.
Typical use cases include integrating visual content into applications, conducting trend analysis on media engagement, and monitoring social media activity for marketing or research purposes.
Users can utilize the returned data by extracting media URLs for display in applications, analyzing view counts for engagement metrics, and leveraging timestamps for chronological content organization.
Data quality is maintained through Twitter's established content moderation processes, ensuring that the multimedia content returned is accurate and reflects the original posts by users.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Service Level:
100%
Response Time:
1,348ms
Service Level:
100%
Response Time:
1,709ms
Service Level:
100%
Response Time:
21ms
Service Level:
100%
Response Time:
1,256ms
Service Level:
100%
Response Time:
518ms
Service Level:
100%
Response Time:
17,322ms
Service Level:
100%
Response Time:
1,904ms
Service Level:
100%
Response Time:
4,424ms
Service Level:
100%
Response Time:
2,876ms
Service Level:
100%
Response Time:
636ms
Service Level:
100%
Response Time:
1,576ms
Service Level:
100%
Response Time:
580ms
Service Level:
100%
Response Time:
509ms
Service Level:
100%
Response Time:
1,593ms
Service Level:
100%
Response Time:
534ms
Service Level:
100%
Response Time:
825ms
Service Level:
100%
Response Time:
580ms
Service Level:
100%
Response Time:
105ms
Service Level:
100%
Response Time:
983ms
Service Level:
100%
Response Time:
24ms