ट्विटर एक्स मीडिया एक्सप्लोरर एपीआई उपयोगकर्ता मीडिया पर केंद्रित है जो विशिष्ट ट्विटर खातों द्वारा साझा किए गए बहु-आध्यात्मिक सामग्री (छवियाँ, वीडियो, जीआईएफ) तक पहुंच प्रदान करता है। यह अद्वितीय एंडपॉइंट मीडिया डेटा निष्कर्षण को सरल बनाता है जो उपयोगकर्ता की पहचान के लिए उपयोगकर्ता जैसे विशिष्ट पैरामीटर और परिणामों को निर्बाध रूप से पृष्ठांकन करने के लिए कर्सर प्रदान करता है। विकासकर्ताओं के लिए उपयुक्त जो अनुप्रयोगों में दृश्य सामग्री को एकीकृत करने, ट्रेंड विश्लेषण करने या सोशल मीडिया गतिविधि की निगरानी करने की तलाश में हैं, यह एपीआई एक विशेष उपयोग के मामले के लिए केंद्रित समाधान प्रदान करता है। इसका अनुकूलित डिज़ाइन तेज़ प्रतिक्रिया समय और बड़े मात्रा में डेटा को कुशलतापूर्वक संभालने की सुनिश्चित करता है जो छोटे और बड़े परियोजनाओं के अनुकूल है। मार्केटिंग रणनीतियों, सोशल मीडिया शोध और सामग्री स्वचालन के साथ संगत, यह एपीआई स्पष्ट और सीधी कार्यान्वयन प्रक्रिया के साथ विश्वसनीय और उपयोग में आसान परिणाम प्रदान करता है। इस विशिष्ट उपयोगकर्ता मीडिया उपकरण के साथ दृश्य डेटा निष्कर्षण को सरल बनाएं और अपने अनुप्रयोगों के प्रभाव को बढ़ाएं
शेयर की गई मीडिया प्राप्त करने और पेजिंग प्रबंधित करने के लिए उपयोगकर्ता (आईडी या उपयोगकर्ता नाम) और वैकल्पिक रूप से कर्सर के साथ एक GET अनुरोध भेजता है
उपयोगकर्ता मीडिया प्राप्त करें - एंडपॉइंट फीचर्स
| ऑब्जेक्ट | विवरण |
|---|---|
user |
[आवश्यक] |
cursor |
वैकल्पिक |
{"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'
| हेडर | विवरण |
|---|---|
Authorization
|
[आवश्यक] होना चाहिए Bearer access_key. जब आप सब्सक्राइब हों तो ऊपर "Your API Access Key" देखें। |
कोई लंबी अवधि की प्रतिबद्धता नहीं। कभी भी अपग्रेड, डाउनग्रेड या कैंसल करें। फ्री ट्रायल में 50 रिक्वेस्ट तक शामिल हैं।
ट्विटर एक्स मीडिया एक्सप्लोरर एपीआई एक विशेष उपकरण है जो डेवलपर्स को एकल एंडपॉइंट के माध्यम से विशिष्ट ट्विटर उपयोगकर्ताओं द्वारा साझा किए गए मल्टीमीडिया सामग्री (छवियाँ वीडियो जीआईएफ) को क्वेरी करने की अनुमति देता है
आप उन उपयोगकर्ता द्वारा मीडिया परिणामों को फ़िल्टर कर सकते हैं जिनका मीडिया आप एक्सेस करना चाहते हैं। इसके अतिरिक्त, एपीआई बड़े परिणामों के सेट के माध्यम से पृष्ठांकन करने के लिए कर्सर नेविगेशन का समर्थन करता है
एपीआई विभिन्न प्रकार के मल्टीमीडिया सामग्री तक पहुँच प्रदान करता है जिसमें ट्विटर उपयोगकर्ताओं द्वारा साझा की गई छवियाँ वीडियो और जीआईएफ शामिल हैं
एपीआई दृश्य सामग्री को निकालने की प्रक्रिया को सरल बनाता है तेज प्रतिक्रिया समय प्रदान करता है और बड़े डेटा वॉल्यूम को कुशलता से संभालता है इसे मार्केटिंग रणनीतियों सामाजिक मीडिया अनुसंधान और सामग्री स्वचालन से संबंधित अनुप्रयोगों के लिए आदर्श बनाता है
हाँ, एपीआई को छोटे और बड़े दोनों प्रोजेक्ट्स के लिए अनुकूलित करने के लिए डिज़ाइन किया गया है जिससे आपके एप्लिकेशन के पैमाने के बावजूद विश्वसनीय और उपयोग में आसान परिणाम मिल सके
गेट यूजर मीडिया एंडपॉइंट एक निर्दिष्ट ट्विटर उपयोगकर्ता द्वारा साझा किया गया मल्टीमीडिया सामग्री लौटाता है जिसमें चित्र वीडियो और जीआईएफ शामिल हैं प्रतिक्रिया में ट्वीट आईडी निर्माण तिथियाँ दृश्य गिनती और मीडिया यूआरएल जैसे मेटाडेटा शामिल होते हैं
प्रतिक्रिया में प्रमुख फ़ील्ड्स में `entryId`, `created_at`, `view_count_info`, और `extended_entities.media` शामिल हैं, जो मीडिया आइटम्स के लिए यूआरएल और उपलब्धता स्थिति प्रदान करते हैं
प्रतिक्रिया डेटा एक JSON प्रारूप में संरचित है जिसमें पेजिनेशन के लिए एक `cursor` वस्तु और एक `data` वस्तु होती है जिसमें मीडिया प्रविष्टियों का एक सरणी होती है प्रत्येक में विस्तृत सामग्री और मेटाडेटा होता है
एंडपॉइंट उन पैरामीटर को स्वीकार करता है जैसे `user` (ID या उपयोगकर्ता नाम) ट्विटर खाते को निर्दिष्ट करने के लिए और `cursor` पेजिनेशन के लिए कई परिणामों के पन्नों के माध्यम से नेविगेट करने के लिए
उपयोगकर्ता विशिष्ट खातों को लक्षित करने के लिए `user` पैरामीटर को निर्दिष्ट करके और पृष्ठांकन को नियंत्रित करने के लिए `cursor` पैरामीटर का उपयोग करके अनुरोधों को अनुकूलित कर सकते हैं जिससे डेटा पुनर्प्राप्ति को अनुकूलित किया जा सके
विशिष्ट उपयोग के मामलों में एप्लिकेशन में दृश्य सामग्री को एकीकृत करना मीडिया सहभागिता पर प्रवृत्ति विश्लेषण करना और विपणन या अनुसंधान उद्देश्यों के लिए सामाजिक मीडिया गतिविधियों की निगरानी करना शामिल है
उपयोगकर्ता वापस प्राप्त डेटा का उपयोग कर सकते हैं मीडिया यूआरएल को निकालकर ऐप्स में प्रदर्शन के लिए व्यू काउंट का विश्लेषण करके जुड़ाव मैट्रिक्स के लिए और समय मुहरों का लाभ उठाकर कालक्रमिक सामग्री संगठन के लिए
डेटा की गुणवत्ता ट्विटर की स्थापित सामग्री संयम प्रक्रियाओं के माध्यम से बनाए रखी जाती है यह सुनिश्चित करते हुए कि लौटाया गया मल्टीमीडिया सामग्री सटीक है और उपयोगकर्ताओं द्वारा मूल पोस्ट को दर्शाती है
सर्विस लेवल:
100%
रिस्पॉन्स टाइम:
1,347ms
सर्विस लेवल:
100%
रिस्पॉन्स टाइम:
2,287ms
सर्विस लेवल:
100%
रिस्पॉन्स टाइम:
2,807ms
सर्विस लेवल:
100%
रिस्पॉन्स टाइम:
1,184ms
सर्विस लेवल:
100%
रिस्पॉन्स टाइम:
91ms
सर्विस लेवल:
100%
रिस्पॉन्स टाइम:
776ms
सर्विस लेवल:
100%
रिस्पॉन्स टाइम:
499ms
सर्विस लेवल:
100%
रिस्पॉन्स टाइम:
835ms
सर्विस लेवल:
100%
रिस्पॉन्स टाइम:
609ms
सर्विस लेवल:
100%
रिस्पॉन्स टाइम:
21ms
सर्विस लेवल:
100%
रिस्पॉन्स टाइम:
1,334ms
सर्विस लेवल:
100%
रिस्पॉन्स टाइम:
916ms
सर्विस लेवल:
100%
रिस्पॉन्स टाइम:
266ms
सर्विस लेवल:
100%
रिस्पॉन्स टाइम:
1,415ms
सर्विस लेवल:
91%
रिस्पॉन्स टाइम:
1,265ms
सर्विस लेवल:
100%
रिस्पॉन्स टाइम:
744ms
सर्विस लेवल:
100%
रिस्पॉन्स टाइम:
684ms
सर्विस लेवल:
100%
रिस्पॉन्स टाइम:
1,349ms
सर्विस लेवल:
100%
रिस्पॉन्स टाइम:
1,191ms
सर्विस लेवल:
100%
रिस्पॉन्स टाइम:
1,503ms