परिचय
- Native फ़ॉर्मैट से X API v2 में माइग्रेट करना (standard v1.1)
- Native Enriched से X API v2 में माइग्रेट करना (enterprise)
- Activity Streams से X API v2 में माइग्रेट करना (enterprise)
सामान्य अंतर
ऑब्जेक्ट्स और फ़ील्ड्स का अनुरोध करना
अपडेट किया गया JSON डिज़ाइन
- JSON रूट स्तर पर, मानक endpoints statuses array में पोस्ट ऑब्जेक्ट लौटाते हैं, जबकि X API v2 data array लौटाता है।
- Retweeted और Quoted “statuses” का संदर्भ देने के बजाय, X API v2 JSON में Retweeted और Quoted Tweets का संदर्भ दिया जाता है। contributors और user.translator_type जैसे कई legacy और deprecated फ़ील्ड्स हटाए जा रहे हैं।
- favorites (पोस्ट ऑब्जेक्ट में) और favourites (उपयोगकर्ता ऑब्जेक्ट में) दोनों का उपयोग करने के बजाय, X API v2 में like शब्द का उपयोग किया जाता है।
- X इस परंपरा को अपना रहा है कि जिन JSON values का कोई मान नहीं होता (उदाहरण के लिए, null), उन्हें payload में नहीं लिखा जाता। पोस्ट और उपयोगकर्ता attributes केवल तभी शामिल किए जाते हैं, जब उनके मान non-null हों।
नए v2 फ़ील्ड्स
- एक conversation_id फ़ील्ड
- दो नए annotations फ़ील्ड्स, जिनमें context और entities शामिल हैं
- कई नए metrics फ़ील्ड्स
- एक नया reply_setting फ़ील्ड, जो यह दिखाता है कि किसी दिए गए पोस्ट का जवाब कौन दे सकता है
standard v1.1 के data फ़ॉर्मैट से v2 पर माइग्रेट करना
Standard v1.1 बनाम v2 पेलोड संरचना
| v1.1 संरचना | v2 संरचना | |
|---|---|---|
| डिफ़ॉल्ट | { “entities”: { “hashtags”: [], “symbols”: [], “user_mentions”: [], “urls”: [], “media”: [] }, “extended_entities”: , “user”: , “place”: , “retweeted_status/quoted_status” } | { “data”: [{ “id”, “text”, “edit_history_tweet_ids” }] } |
| निर्धारित फ़ील्ड और expansion पैरामीटर के साथ | { “data”: [{ “entities”: { “hashtags”: [], “cashtags”: [], “mentions”: [], “urls”: [], }, “attachments”: { “media_keys”: [], “poll_ids”: [] } }], “includes”: [ “tweets”: [ “users”: [ “media”: [ “places”: [ “polls”: [ ], “matching_rules”: [] } |
Tweet ऑब्जेक्ट
| Twitter 1.1 फ़ॉर्मैट | Twitter v2 फ़ॉर्मैट | आवश्यक v2 पैरामीटर |
| created_at | data.created_at | tweet.fields=created_at |
| id | लागू नहीं; id एक स्ट्रिंग है | |
| id_str | data.id | डिफ़ॉल्ट |
| text | data.text | डिफ़ॉल्ट |
| full_text | लागू नहीं; text में पूरा टेक्स्ट शामिल है | |
| truncated | लागू नहीं; text में पूरा टेक्स्ट शामिल है | |
| display_text_range | लागू नहीं; text में पूरा टेक्स्ट शामिल है | |
| edit_history | data.edit_history_tweet_ids | डिफ़ॉल्ट |
| edit_controls | data.edit_controls | tweet.fields=edit_controls |
| editable | data.edit_controls.is_edit_eligible | tweet.fields=edit_controls |
| entities | data.entities | tweet.fields=entities |
| entities.user_mentions | data.entities.mentions | tweet.fields=entities |
| entities.symbols | data.entities.cashtags | tweet.fields=entities |
| entities.hashtags | data.entities.hashtags | tweet.fields=entities |
| entities.urls | data.entities.urls | tweet.fields=entities |
| entities.media | includes.media | expansions=attachments.media_keys |
| extended_entities | data.attachments | tweet_fields=attachments |
| in_reply_to_status_id | लागू नहीं; referenced_tweets.id एक स्ट्रिंग है | |
| in_reply_to_status_id_str | data.referenced_tweets.id (if type=replied_to) | expansions=referenced_tweets.id |
| in_reply_to_user_id | लागू नहीं; in_reply_to_user_id एक स्ट्रिंग है | |
| in_reply_to_user_id_str | data.in_reply_to_user_id | tweet.fields=in_reply_to_user_id |
| in_reply_to_screen_name | includes.users..username | tweet.fields=in_reply_to_user_id&expansions=entities.mentions.username |
| user | includes.users | expansions=author_id |
| geo | data.geo.place_id | tweet.fields=geo |
| coordinates | data.geo.place_id | expansions=geo.place_id |
| place | data.geo.place_id | expansions=geo.place_id |
| retweeted_status | data.referenced_tweets.id (if type=retweeted) | expansions=referenced_tweets.id |
| is_quoted_status | उपलब्ध नहीं | |
| quoted_status_id | लागू नहीं; referenced_tweets.id एक स्ट्रिंग है | |
| quoted_status_id_str | data.referenced_tweets.id (if type=quoted) | expansions=referenced_tweets.id |
| quoted_status_permalink | उपलब्ध नहीं | |
| quoted_status | data.referenced_tweets (if type=quoted) | expansions=referenced_tweets.id |
| retweet_count | data.public_metrics.retweet_count | tweet.fields=public_metrics |
| favorite_count | data.public_metrics.like_count | tweet.fields=public_metrics |
| favorited | उपलब्ध नहीं | |
| retweeted | उपलब्ध नहीं | |
| possibly_sensitive | data.possibly_sensitive | tweet.fields=possibly_sensitive |
| lang | data.lang | tweet.fields=lang |
| scopes | उपलब्ध नहीं | |
| withheld | data.withheld | tweet.fields=withheld |
| 1.1 में Tweet ऑब्जेक्ट पैरामीटर सहित उदाहरण URI: https://api.x.com/1.1/statuses/lookup.json?id=1359554366051504129&tweet_mode=extended | v2 में Tweet ऑब्जेक्ट और अनुरोध पैरामीटर सहित उदाहरण URI: https://api.x.com/2/tweets?ids=1359554366051504129&tweet.fields=attachments,author_id,context_annotations,conversation_id,created_at,entities,geo,id,in_reply_to_user_id,lang,possibly_sensitive,public_metrics,referenced_tweets,reply_settings,text,withheld |
| { “created_at”: “Wed Feb 10 17:26:34 +0000 2021”, “id”: 1359554366051504129, “id_str”: “1359554366051504129”, “text”: “बेशक, किसी और पपी अकाउंट को फ़ॉलो करें। हम आपको जज नहीं करेंगे। \n\nनए manage follows endpoints पेश हैं… https://t.co/3cBZKZUevF”, “truncated”: true, “entities”: { “hashtags”: [], “symbols”: [], “user_mentions”: [], “urls”: [{ “url”: “https://t.co/3cBZKZUevF”, “expanded_url”: “https://twitter.com/i/web/status/1359554366051504129”, “display_url”: “twitter.com/i/web/status/1…”, “indices”: [ 111, 134 ] }] }, “in_reply_to_status_id”: null, “in_reply_to_status_id_str”: null, “in_reply_to_user_id”: null, “in_reply_to_user_id_str”: null, “in_reply_to_screen_name”: null, “user”: { … }, “geo”: null, “coordinates”: null, “place”: null, “contributors”: null, “is_quote_status”: false, “retweet_count”: 18, “favorite_count”: 98, “favorited”: false, “retweeted”: false, “possibly_sensitive”: false, “possibly_sensitive_appealable”: false, “lang”: “en” } | { “data”: [{ “id”:“1359554366051504129”, “text”:“आगे बढ़ें, एक और पप्पी अकाउंट को फॉलो करें। हम निर्णय नहीं करेंगे। \n\nनए #TwitterAPI में मैनेज फॉलोज़ एंडपॉइंट्स का परिचय। अब आप अकाउंट्स को फॉलो और अनफॉलो करने के लिए v2 API का उपयोग कर सकते हैं। अधिक जानें https://t.co/mtpd9VIMDa”, “lang”:“en”, “conversation_id”:“1359554366051504129”, “संभवतः_संवेदनशील”: false, “reply_सेटिंग्स”:“सभी”, “निर्मित_at”:“2021-02-10T17:26:34.000Z”, “author_id”:“2244994945”, “public_मेट्रिक्स”:{ “रीट्वीट_count”: 18, “reply_count”: 11, “लाइक_count”: 98, “quote_count”: 7 }, “entities”:{ “hashtags”: [{ “start”: 110, “end”: 121, “tag”:“TwitterAPI” }], “urls”: [{ “start”: 194, “end”: 217, “url”:“https://t.co/mtpd9VIMDa”, “विस्तारित_url”:“https://devcommunity.x.com/t/introducing-the-new-manage-follows-endpoints-to-the-twitter-api-v2/149465”, “display_url”:“devcommunity.com/t/introducing-…”, “images”: [{ “url”:“https://pbs.twimg.com/news_img/1359554367905427457/DczC72__?format=jpg&name=orig”, “width”: 1200, “height”: 630 }, { “url”:“https://pbs.twimg.com/news_img/1359554367905427457/DczC72__?format=jpg&name=150x150”, “width”: 150, “height”: 150 } ], “status”: 200, “title”:“X API v2 में नए manage follows एंडपॉइंट्स का परिचय”, “description”:“फ़ॉलो करें या न करें? अब आप X API v2 का उपयोग करके इस सवाल का जवाब अपनी मर्ज़ी से दे सकते हैं। आज हम नए Twitter API में नए manage follows endpoints की रिलीज़ की घोषणा करते हुए उत्साहित हैं। जैसा कि लगभग एक महीने पहले follows lookup endpoints लॉन्च करते समय संकेत दिया गया था, follow संबंधों को प्रबंधित करने की क्षमता अब आखिरकार उपलब्ध है। ये हमारे v1.1 APIs पर सबसे लोकप्रिय endpoints में से कुछ हैं, इसलिए हम X API v2 पर उपयोग के मामलों की एक विस्तृत श्रृंखला को सक्षम करने के लिए उत्साहित हैं। W…”, “अनवाउंड_url”:“https://devcommunity.x.com/t/introducing-the-new-manage-follows-endpoints-to-the-twitter-api-v2/149465” }] }, “context_एनोटेशन”: [{ “domain”:{ “id”:“46”, “name”:“ब्रांड श्रेणी”, “विवरण”:“ब्रांड वर्टिकल्स के भीतर वे श्रेणियाँ जो ब्रांड्स के दायरे को संकुचित करती हैं” }, “entity”:{ “id”:“781974596752842752”, “name”:“सेवाएँ” } }, { “domain”:{ “id”:“47”, “name”:“ब्रांड”, “विवरण”:“ब्रांड और कंपनियाँ” }, “entity”:{ “id”:“10045225402”, “name”:“Twitter” } } ] }] } |
उपयोगकर्ता ऑब्जेक्ट
| Twitter 1.1 फ़ॉर्मैट | Twitter v2 फ़ॉर्मैट | आवश्यक v2 पैरामीटर |
| user_id | data.author_id | tweet.fields=author_id |
| user.id | N/A, includes.users.id का उपयोग करें | |
| user.id_str | includes.users.id | expansions=author_id |
| user.name | includes.users.name | expansions=author_id |
| user.screen_name | includes.user.username | expansions=author_id |
| user.location | includes.users.location | expansions=author_id&user.fields=location |
| user.description | includes.users.description | expansions=author_id&user.fields=description |
| user.url | includes.users.url | expansions=author_id&user.fields=entities |
| user.entities | includes.users.entities | |
| user.entities.url.urls.url | includes.users.entities.url.urls.url | |
| user.entities.url.urls.expanded_url | includes.users.entities.url.urls.expanded_url | expansions=author_id&user.fields=entities |
| user.entities.url.urls.display_url | includes.users.entities.url.urls.display_url | expansions=author_id&user.fields=entities |
| user.entities.url.urls.display_url.indicies[0] | includes.users.entities.url.urls.start | expansions=author_id&user.fields=entities |
| user.entities.url.urls.display_url.indicies[1] | includes.users.entities.url.urls.end | expansions=author_id&user.fields=entities |
| user.protected | includes.users.protected | expansions=author_id&user.fields=protected |
| user.followers_count | includes.users.public_metrics.followers_count | expansions=author_id&user.fields=public_metrics |
| user.friends_count | includes.users.public_metrics.following_count | expansions=author_id&user.fields=public_metrics |
| user.listed_count | includes.users.public_metrics.listed_count | expansions=author_id&user.fields=public_metrics |
| user.created_at | includes.users.created_at | expansions=author_id&user.fields=created_at |
| user.favourites_count | ||
| user.verified | includes.users.verified | expansions=author_id&user.fields=verified |
| user.statuses_count | includes.users.public_metrics.tweet_count | expansions=author_id&user.fields=public_metrics |
| user.profile_image_url_https | includes.users.profile_image_url | expansions=author_id&user.fields=profile_image_url |
| v1.1 में यूज़र ऑब्जेक्ट | v2 में उपयोगकर्ता ऑब्जेक्ट और अनुरोध |
| ”user”:{ “id”: 2244994945, “id_str”:“2244994945”, “name”:“Twitter Dev”, “screen_name”:“TwitterDev”, “location”:“127.0.0.1”, “description”:“#TwitterDev टीम की आवाज़ और #TwitterAPI से संबंधित अपडेट, समाचार और इवेंट के लिए आपका आधिकारिक स्रोत।”, “url”:“https://t.co/3ZX3TNiZCY”, “entities”:{ “url”:{ “urls”: [{ “url”:“https://t.co/3ZX3TNiZCY”, “विस्तारित_url”:“https://developer.x.com/en/community”, “display_url”:“developer.x.com/en/community”, “indices”: [ 0, 23 ] }] }, “description”:{ “urls”: [] } }, “protected”: false, “फ़ॉलोअर्स_count”: 517232, “फ़ॉलोइंग_count”: 2032, “सूचीबद्ध_count”: 1722, “निर्मित_at”:“Sat Dec 14 04:35:55 +0000 2013”, “पसंदीदा_count”: 2134, “utc_offset”: null, “समय_zone”: null, “geo_enabled”: true, “verified”: true, “statuses_count”: 3677, “lang”: null, “contributors_सक्षम”: false, “is_translator”: false, “is_अनुवाद_सक्षम”: false, “प्रोफ़ाइल_बैकग्राउंड_रंग”:“FFFFFF”, “profile_बैकग्राउंड_image_url”:“http://abs.twimg.com/images/themes/theme1/bg.png”, “प्रोफ़ाइल_बैकग्राउंड_image_url_https”:“https://abs.twimg.com/images/themes/theme1/bg.png”, “प्रोफ़ाइल_बैकग्राउंड_tile”: false, “प्रोफ़ाइल_image_url”:“http://pbs.twimg.com/profile_images/1354494203451961345/d8HkZl6p_normal.jpg”, “प्रोफ़ाइल_image_url_https”:“https://pbs.twimg.com/profile_images/1354494203451961345/d8HkZl6p_normal.jpg”, “प्रोफ़ाइल_banner_url”:“https://pbs.twimg.com/profile_banners/2244994945/1611792896”, “profile_link_रंग”:“0084B4”, “प्रोफ़ाइल_sidebar_border_रंग”:“FFFFFF”, “प्रोफ़ाइल_sidebar_fill_रंग”:“DDEEF6”, “profile_text_रंग”:“333333”, “profile_use_बैकग्राउंड_image”: false, “has_extended_profile”: true, “default_प्रोफ़ाइल”: false, “default_profile_image”: false, “following”: null, “फ़ॉलो_अनुरोध_sent”: null, “notifications”: null, “translator_type”:“regular” } | { “data”: [{ “author_id”: “2244994945”, “id”: “1362876655061073928”, “text”: “हमारे लिविंग रूम से आपके लिए 🐱💻🛋️ हमारे developer advocates ने नई #TwitterAPI के साथ शुरुआत करने में आपकी मदद के लिए कुछ शानदार Twitch streams और virtual events की योजना बनाई है। पूरी जानकारी के लिए schedule देखें, और अगर आप ऐसा और देखना चाहते हैं, तो हमें बताएं!\n👇\nhttps://t.co/cixDY9qkvH” }], “includes”: { “users”: [{ “public_metrics”: { “followers_count”: 517233, “following_count”: 2034, “tweet_count”: 3677, “listed_count”: 1727 }, “username”: “TwitterDev”, “entities”: { “url”: { “urls”: [{ “start”: 0, “end”: 23, “url”: “https://t.co/3ZX3TNiZCY”, “expanded_url”: “https://developer.x.com/en/community”, “display_url”: “developer.x.com/en/community” }] }, “description”: { “hashtags”: [{ “start”: 17, “end”: 28, “tag”: “TwitterDev” }, { “start”: 105, “end”: 116, “tag”: “TwitterAPI” } ] } }, “description”: “#TwitterDev टीम की आवाज़ और #TwitterAPI से जुड़े अपडेट, समाचार और इवेंट्स के लिए आपका आधिकारिक स्रोत।”, “name”: “Twitter Dev”, “verified”: true, “location”: “127.0.0.1”, “id”: “2244994945”, “protected”: false, “url”: “https://t.co/3ZX3TNiZCY”, “profile_image_url”: “https://pbs.twimg.com/profile_images/1354494203451961345/d8HkZl6p_normal.jpg”, “created_at”: “2013-12-14T04:35:55.000Z” }] } } |
Entities और expanded entities ऑब्जेक्ट्स
| Twitter 1.1 फ़ॉर्मैट | Twitter v2 फ़ॉर्मैट | आवश्यक v2 पैरामीटर | v2 में type |
| entities | data.entities | tweet.fields=entities | object |
| entities.hashtags | data.entities.hashtags | tweet.fields=entities | array of objects |
| entities.hashtags.indices[0] | data.entities.hashtags.start | tweet.fields=entities | number |
| entities.hashtags.indices[1] | data.entities.hashtags.end | tweet.fields=entities | number |
| entities.hashtags.text | data.entities.hashtags.tag | tweet.fields=entities | string |
| entities.urls | data.entities.urls | tweet.fields=entities | array of objects |
| entities.urls.indices[0] | data.entities.urls.start | tweet.fields=entities | number |
| entities.urls.indices[1] | data.entities.urls.end | tweet.fields=entities | number |
| entities.urls.url | data.entities.urls.url | tweet.fields=entities | string |
| entities.user_mentions | data.entities.mentions | tweet.fields=entities | array of objects |
| entities.user_mentions.indicies[0] | data.entities.mentions.start | tweet.fields=entities | number |
| entities.user_mentions.indicies[1] | data.entities.mentions.end | tweet.fields=entities | number |
| entities.user_mentions.screen_name | data.entities.mentions.username | tweet.fields=entities | string |
| entities.symbols | data.entities.cashtags | tweet.fields=entities | array of objects |
| entities.symbols.indices[0] | data.entities.cashtags.start | tweet.fields=entities | number |
| entities.symbols.indices[1] | data.entities.cashtags.end | tweet.fields=entities | number |
| entities.symbols.text | data.entities.cashtags.tag | tweet.fields=entities | string |
| entities.media | includes.media | expansions=attachments.media_keys | array of objects |
| entities.media.id_str | includes.media.media_key | expansions=attachments.media_keys | string |
| entities.media.type | includes.media.media.type | expansions=attachments.media_keys | string |
| entities.media.media_url | उपलब्ध नहीं, includes.media.url का उपयोग करें | string | |
| entities.media.media_url_https | includes.media.url | expansions=attachments.media_keys&media.fields=url | string |
| entities.media.url | |||
| entities.media.display_url | |||
| entities.media.expanded_url | |||
| entities.media.media_url_https | includes.media.preview_image_url | expansions=attachments.media_keys&media.fields=preview_image_url | string |
| extended_entities | data.attachments | tweet_fields=attachments | object |
| extended_entities | data.attachments.media_keys | tweet.fields=attachments | array of objects |
| extended_entities.media | includes.media | expansions=attachments.media_keys | array of objects |
| extended_entities.media.id_str | includes.media.media_key | expansions=attachments.media_keys | string |
| extended_entities.media.type | includes.media.media.type | expansions=attachments.media_keys | string |
| extended_entities.media.sizes.thumb.w | उपलब्ध नहीं | ||
| extended_entities.media.sizes.thumb.h | उपलब्ध नहीं | ||
| extended_entities.media.sizes.thumb.resize | उपलब्ध नहीं | ||
| extended_entities.media.sizes.large.w | includes.media.height | expansions=attachments.media_keys&media.fields=height | |
| extended_entities.media.sizes.large.h | includes.media.width | expansions=attachments.media_keys&media.fields=width | |
| extended_entities.media.sizes.large.resize | उपलब्ध नहीं | ||
| extended_entities.media.sizes.small.w | उपलब्ध नहीं | ||
| extended_entities.media.sizes.small.h | उपलब्ध नहीं | ||
| extended_entities.media.sizes.small.resize | उपलब्ध नहीं | ||
| extended_entities.media.sizes.medium.w | उपलब्ध नहीं | ||
| extended_entities.media.sizes.medium.h | उपलब्ध नहीं | ||
| extended_entities.media.sizes.medium.resize | उपलब्ध नहीं | ||
| extended_entities.media.media_url_https | includes.media.url | expansions=attachments.media_keys&media.fields=url | string |
| extended_entities.media.media_url_https | includes.media.preview_image_url | expansions=attachments.media_keys&media.fields=preview_image_url | string |
| extended_entities.media.video_info.duration_millis | includes.media.duration_ms | expansions=attachments.media_keys&media.fields=duration_ms | number |
| v1.1 में entities और extended entities (वीडियो सहित) | v2 में Entities, attachments और includes https://api.x.com/2/tweets?ids=1370161532013735937&expansions=attachments.media_keys,entities.mentions.username&tweet.fields=entities&user.fields=created_at,description,entities,location,name,profile_image_url,protected,public_metrics,url,username,verified,withheld&media.fields=duration_ms,height,media_key,preview_image_url,public_metrics,type,url,width |
| ”entities”:{ “hashtags”: [{ “text”:“test”, “indices”: [ 8, 13 ] }], “symbols”: [], “user_mentions”: [{ “screen_name”:“TwitterDev”, “name”:“Twitter Dev”, “id”: 2244994945, “id_str”:“2244994945”, “indices”: [ 31, 42 ] }], “urls”: [{ “url”:“https://t.co/XVLZ3uwikc”, “विस्तारित_url”:“https://developer.x.com/en”, “display_url”:“developer.x.com/en”, “indices”: [ 91, 114 ] }], “media”: [{ “id”: 1370161464028196868, “id_str”:“1370161464028196868”, “indices”: [ 115, 138 ], “media_url”:“http://pbs.twimg.com/ext_tw_video_thumb/1370161464028196868/pu/img/cGLCoXBHVktkwlC5.jpg”, “media_url_https”:“https://pbs.twimg.com/ext_tw_video_thumb/1370161464028196868/pu/img/cGLCoXBHVktkwlC5.jpg”, “url”:“https://t.co/dz4oByygWA”, “display_url”:“pic.x.com/dz4oByygWA”, “विस्तारित_url”:“https://twitter.com/furiouscamper/status/1370161532013735937/video/1”, “type”:“photo”, “sizes”:{ “thumb”:{ “w”: 150, “h”: 150, “resize”:“crop” }, “small”:{ “w”: 383, “h”: 680, “resize”:“fit” }, “large”:{ “w”: 720, “h”: 1280, “resize”:“fit” }, “medium”:{ “w”: 675, “h”: 1200, “resize”:“fit” } } }] }, “extended_entities”:{ “media”: [{ “id”: 1370161464028196868, “id_str”:“1370161464028196868”, “indices”: [ 115, 138 ], “media_url”:“http://pbs.twimg.com/ext_tw_video_thumb/1370161464028196868/pu/img/cGLCoXBHVktkwlC5.jpg”, “media_url_https”:“https://pbs.twimg.com/ext_tw_वीडियो_thumb/1370161464028196868/pu/img/cGLCoXBHVktkwlC5.jpg”, “url”:“https://t.co/dz4oByygWA”, “display_url”:“pic.x.com/dz4oByygWA”, “विस्तारित_url”:“https://twitter.com/furiouscamper/status/1370161532013735937/video/1”, “type”:“video”, “sizes”:{ “thumb”:{ “w”: 150, “h”: 150, “resize”:“crop” }, “small”:{ “w”: 383, “h”: 680, “resize”:“fit” }, “large”:{ “w”: 720, “h”: 1280, “resize”:“fit” }, “medium”:{ “w”: 675, “h”: 1200, “resize”:“fit” } }, “video_info”:{ “aspect_ratio”: [ 9, 16 ], “duration_millis”: 5140, “variants”: [{ “bitrate”: 950000, “content_type”:“video/mp4”, “url”:“https://video.twimg.com/ext_tw_video/1370161464028196868/pu/vid/480x852/rAuFVMEqs0MeP4P4.mp4?tag=12” }, { “bitrate”: 2176000, “content_type”:“video/mp4”, “url”:“https://video.twimg.com/ext_tw_video/1370161464028196868/pu/vid/720x1280/ZxVL5qYO-DNVuSyq.mp4?tag=12” }, { “content_type”:“application/x-mpegURL”, “url”:“https://video.twimg.com/ext_tw_video/1370161464028196868/pu/pl/EGVpuZpo-wYxTNCq.m3u8?tag=12” }, { “bitrate”: 632000, “content_type”:“video/mp4”, “url”:“https://video.twimg.com/ext_tw_video/1370161464028196868/pu/vid/320x568/M7VtocAwKPFdkqzF.mp4?tag=12” } ] }, “अतिरिक्त_media_info”:{ “monetizable”: false } }] } | { “data”: [{ “entities”:{ “hashtags”: [{ “start”: 8, “end”: 13, “tag”:“test” }], “mentions”: [{ “start”: 31, “end”: 42, “username”:“TwitterDev” }], “urls”: [{ “start”: 91, “end”: 114, “url”:“https://t.co/XVLZ3uwikc”, “विस्तारित_url”:“https://developer.x.com/en”, “display_url”:“developer.x.com/en”, “status”: 200, “title”:“उपयोग के मामले, ट्यूटोरियल,&दस्तावेज़ीकरण”, “description”:“प्रकाशित करें&Tweets का विश्लेषण करें, विज्ञापन ऑप्टिमाइज़ करें,&Twitter API, Twitter Ads API के साथ अनूठे ग्राहक अनुभव बनाएं,&Twitter for Websites. Let’s start building.”, “अनवाउंड_url”:“https://developer.x.com/en” }, { “start”: 115, “end”: 138, “url”:“https://t.co/dz4oByygWA”, “विस्तारित_url”:“https://x.com/furiouscamper/status/1370161532013735937/video/1”, “display_url”:“pic.x.com/dz4oByygWA” } ] }, “id”:“1370161532013735937”, “text”:“एक और #test वीडियो और @TwitterDev mention के साथ। नए फ़ॉर्मेट माइग्रेशन दस्तावेज़ों के लिए उत्साहित! https://t.co/XVLZ3uwikc https://t.co/dz4oByygWA”, “attachments”:{ “media_keys”: [ “7_1370161464028196868” ] } }], “includes”:{ “media”: [{ “type”:“video”, “height”: 1280, “public_मेट्रिक्स”:{ “view_count”: 37 }, “चौड़ाई”: 720, “media_key”:“7_1370161464028196868”, “अवधि_ms”: 5140, “preview_image_url”:“https://pbs.twimg.com/ext_tw_video_thumb/1370161464028196868/pu/img/cGLCoXBHVktkwlC5.jpg” }], “users”: [{ “public_मेट्रिक्स”:{ “फ़ॉलोअर्स_count”: 517233, “following_count”: 2034, “tweet_count”: 3677, “listed_count”: 1727 }, “created_at”:“2013-12-14T04:35:55.000Z”, “profile_image_url”:“https://pbs.twimg.com/profile_images/1354494203451961345/d8HkZl6p_normal.jpg”, “description”:“#TwitterDev टीम की आवाज़ और #TwitterAPI से संबंधित अपडेट, समाचार और कार्यक्रमों के लिए आपका आधिकारिक स्रोत।”, “verified”: true, “id”:“2244994945”, “username”:“TwitterDev”, “protected”: false, “entities”:{ “url”:{ “urls”: [{ “start”: 0, “end”: 23, “url”:“https://t.co/3ZX3TNiZCY”, “विस्तारित_url”:“https://developer.x.com/en/community”, “display_url”:“developer.x.com/en/community” }] }, “description”:{ “hashtags”: [{ “start”: 17, “end”: 28, “tag”:“TwitterDev” }, { “start”: 105, “end”: 116, “tag”:“TwitterAPI” } ] } }, “url”:“https://t.co/3ZX3TNiZCY”, “name”:“Twitter Dev”, “location”:“127.0.0.1” }] } } |
Place ऑब्जेक्ट
| Twitter 1.1 फ़ॉर्मैट | Twitter v2 फ़ॉर्मैट | आवश्यक v2 पैरामीटर |
| place | data.geo.place_id | tweet.fields=geo |
| place.id | includes.places.id | expansions=geo.place_id |
| place.id.place_type | includes.places.place_type | expansions=geo.place_id&place.fields=place_type |
| place.id.name | includes.places.name | expansions=geo.place_id&place.fields=name |
| place.id.full_name | includes.places.full_name | expansions=geo.place_id |
| place.id.country_code | includes.places.country_code | expansions=geo.place_id&place.fields=country_code |
| place.id.country | includes.places.country | expansions=geo.place_id&place.fields=country |
| place.id.contained_within | includes.places.contained_within | expansions=geo.place_id&place.fields=contained_within |
| place.id.bounding_box.type | includes.places.geo.type | expansions=geo.place_id&place.fields=place_type |
| place.id.bounding_box.coordinates | includes.places.geo.bbox | expansions=geo.place_id&place.fields=geo |
| place.id.attributes | includes.places.properties | expansions=geo.place_id&place.fields=geo |
| v1.1 में Place ऑब्जेक्ट | v2 में Place ऑब्जेक्ट https://api.x.com/2/tweets?ids=1370161532013735937&expansions=geo.place_id&tweet.fields=geo&place.fields=contained_within,country,country_code,full_name,geo,id,name,place_type |
| ”place”: { “id”: “f7eb2fa2fea288b1”, “url”: “https://api.x.com/1.1/geo/id/f7eb2fa2fea288b1.json”, “place_type”: “city”, “name”: “Lakewood”, “full_name”: “Lakewood, CO”, “country_code”: “US”, “country”: “United States”, “contained_within”: [], “bounding_box”: { “type”: “Polygon”, “coordinates”: [ [ [ -105.193475, 39.60973 ], [ -105.053164, 39.60973 ], [ -105.053164, 39.761974 ], [ -105.193475, 39.761974 ] ] ] }, “attributes”: } | { “data”: [{ “id”: “1370161532013735937”, “text”: “Another #test with a video and @TwitterDev mention. Excited for new format migration docs! https://t.co/XVLZ3uwikc https://t.co/dz4oByygWA”, “geo”: { “place_id”: “f7eb2fa2fea288b1” } }], “includes”: { “places”: [{ “name”: “Lakewood”, “place_type”: “city”, “full_name”: “Lakewood, CO”, “id”: “f7eb2fa2fea288b1”, “geo”: { “type”: “Feature”, “bbox”: [ -105.193475, 39.60973, -105.053164, 39.761974 ], “properties”: }, “country_code”: “US”, “country”: “United States” }] } |
- फ़ील्ड्स के बारे में और जानें
- expansions के बारे में और जानें
- फ़ील्ड्स को expansions के साथ उपयोग करना सीखें
Native Enriched डेटा फ़ॉर्मैट से v2 पर माइग्रेट करना
- JSON के root level पर, Native Enriched फ़ॉर्मैट results array में Tweet objects लौटाता है, जबकि X API v2 data array लौटाता है।
- favorites (Tweet ऑब्जेक्ट में) और favourites (उपयोगकर्ता ऑब्जेक्ट में) दोनों का उपयोग करने के बजाय, X API v2 like शब्द का इस्तेमाल करता है।
- X इस परंपरा को अपना रहा है कि जिन JSON values का कोई मान नहीं होता (उदाहरण के लिए, null), उन्हें payload में नहीं लिखा जाता। Tweet और user attributes केवल तभी शामिल किए जाते हैं, जब उनके मान non-null हों।
- v2 में सभी id फ़ील्ड्स string फ़ॉर्मैट में होंगी
- conversation_id
- reply_settings
- media पर alt_text
- दो नए annotations फ़ील्ड्स, जिनमें context और entities शामिल हैं
- कई नए metrics फ़ील्ड्स
- कई नए polls फ़ील्ड्स
- contributors
- कुछ entities.media और extended_entities.media फ़ील्ड्स
- filter_level
- timestamp_ms
- truncated
Native Enriched बनाम v2 payload संरचना
| Native Enriched संरचना | v2 संरचना | |
|---|---|---|
| डिफ़ॉल्ट | { “user”: , “place”: , “entities”: { “hashtags”: [], “urls”: [], “user_mentions”: [], “symbols”: [], “annotations”: [], “media”: [] }, “extended_entities”: , “matching_rules”: [] } | { “data”: [{ “id”, “text”, “edit_history_tweet_ids” }] } |
| परिभाषित फ़ील्ड्स और expansions पैरामीटर के साथ | { “data”: [{ “entities”: { “hashtags”: [], “cashtags”: [], “mentions”: [], “urls”: [], }, “attachments”: { “media_keys”: [], “poll_ids”: [] } }], “includes”: [ “tweets”: [ “users”: [ “media”: [ “places”: [ “polls”: [ ], “matching_rules”: [] } |
Tweet ऑब्जेक्ट
| Native Enriched प्रारूप | Twitter v2 फ़ॉर्मैट | आवश्यक v2 पैरामीटर | v2 में type |
| created_at | data.created_at | tweet.fields=created_at | String |
| id | लागू नहीं - id देखें | ||
| id_str | data.id | डिफ़ॉल्ट | String |
| text | data.text | डिफ़ॉल्ट | String |
| edit_history | data.edit_history_tweet_ids | डिफ़ॉल्ट | ऐरे |
| edit_controls | data.edit_controls | tweet.fields=edit_controls | ऑब्जेक्ट |
| संपादित करने योग्य | data.edit_controls.is_edit_eligible | tweet.fields=edit_controls | Boolean |
| display_text_range | लागू नहीं - text में पूरा टेक्स्ट शामिल है | ||
| source | data.source | tweet.fields=source | String |
| काट-छाँट किया गया | लागू नहीं - टेक्स्ट में पूरा टेक्स्ट शामिल है | ||
| उपलब्ध नहीं | data.conversation_id | tweet.fields=conversation_id | String |
| उपलब्ध नहीं | data.reply_settings | tweet.fields=reply_settings | String |
| in_reply_to_status_id | N/A - referenced_tweets.id देखें | ||
| in_reply_to_status_id_str | data.referenced_tweets.id (यदि type=replied_to हो) | expansions=referenced_tweets.id | String |
| in_reply_to_user_id | लागू नहीं - in_reply_to_user_id_str देखें | ||
| in_reply_to_user_id_str | data.in_reply_to_user_id | tweet.fields=in_reply_to_user_id | स्ट्रिंग |
| in_reply_to_screen_name | includes.users..username | tweet.fields=in_reply_to_user_id&expansions=entities.mentions.username | String |
| user | includes.users | expansions=author_id | Object |
| user.id_str | data.author_id | tweet.fields=author_id | String |
| geo | data.geo.place_id | tweet.fields=geo | |
| coordinates | data.geo.place_id | tweet.fields=geo | |
| स्थान | data.geo.place_id | tweet.fields=geo | |
| is_quoted_status | data.referenced_tweets.id (यदि type=quoted) | tweet.fields=referenced_tweets | स्ट्रिंग |
| extended_tweet.full_text | लागू नहीं - टेक्स्ट पूर्ण है | ||
| उपलब्ध नहीं | data.public_metrics | tweet.fields=public_metrics | ऑब्जेक्ट |
| quote_count | data.public_metrics.quote_count | tweet.fields=public_metrics | Int |
| reply_count | data.public_metrics.reply_count | tweet.fields=public_metrics | Int |
| retweet_count | data.public_metrics.retweet_count | tweet.fields=public_metrics | Int |
| favorite_count | data.public_metrics.like_count | tweet.fields=public_metrics | Int |
| उपलब्ध नहीं | data.non_public_metrics | tweet.fields=non_public_metrics | ऑब्जेक्ट |
| उपलब्ध नहीं | data.non_public_metrics.impression_count | tweet.fields=non_public_metrics | Int |
| उपलब्ध नहीं | data.non_public_metrics.url_link_count | tweet.fields=non_public_metrics | Int |
| उपलब्ध नहीं | data.non_public_metrics.user_profile_count | tweet.fields=non_public_metrics | Int |
| उपलब्ध नहीं है | data.organic_metrics | tweet.fields=organic_metrics | Object |
| उपलब्ध नहीं | data.organic_metrics.like_count | tweet.fields=organic_metrics | Int |
| उपलब्ध नहीं | data.organic_metrics.retweet_count | tweet.fields=organic_metrics | Int |
| उपलब्ध नहीं है | data.organic_metrics.reply_count | tweet.fields=organic_metrics | Int |
| उपलब्ध नहीं है | data.organic_metrics.impression_count | tweet.fields=organic_metrics | Int |
| उपलब्ध नहीं | data.organic_metrics.url_link_count | tweet.fields=organic_metrics | Int |
| उपलब्ध नहीं | data.organic_metrics.user_profile_count | tweet.fields=organic_metrics | Int |
| उपलब्ध नहीं | data.promoted_metrics | tweet.fields=promoted_metrics | Object |
| उपलब्ध नहीं | data.promoted_metrics.like_count | tweet.fields=promoted_metrics | Int |
| उपलब्ध नहीं | data.promoted_metrics.retweet_count | tweet.fields=promoted_metrics | Int |
| उपलब्ध नहीं | data.promoted_metrics.reply_count | tweet.fields=promoted_metrics | Int |
| उपलब्ध नहीं | data.promoted_metrics.impression_count | tweet.fields=promoted_metrics | Int |
| उपलब्ध नहीं है | data.promoted_metrics.url_link_count | tweet.fields=promoted_metrics | Int |
| उपलब्ध नहीं है | data.promoted_metrics.user_profile_count | tweet.fields=promoted_metrics | Int |
| contributors | उपलब्ध नहीं | उपलब्ध नहीं | |
| entities | data.entities | tweet.fields=entities | Object |
| entities.user_mentions | data.entities.mentions | tweet.fields=entities | ऑब्जेक्ट का ऐरे |
| entities.symbols | data.entities.cashtags | tweet.fields=entities | ऑब्जेक्ट का ऐरे |
| entities.hashtags | data.entities.hashtags | tweet.fields=entities | ऑब्जेक्ट्स का ऐरे |
| entities.urls | data.entities.urls | tweet.fields=entities | ऑब्जेक्ट्स का ऐरे |
| entities.media | includes.media | expansions=attachments.media_keys | ऑब्जेक्ट्स की सरणी |
| entities.annotations | tweet.fields=entities,context_annotations | ऑब्जेक्ट | |
| entities.annotations.context | data.context_annotations | tweet.fields=entities,context_annotations | ऑब्जेक्ट्स की सरणी |
| कोई समकक्ष नहीं | data.context_annotations.domain | tweet.fields=context_annotations | ऑब्जेक्ट |
| entities.annotations.context.context_domain_id_str | data.context_annotations.domain.id | tweet.fields=context_annotations | String |
| entities.annotations.context.context_domain_id | उपलब्ध नहीं | उपलब्ध नहीं - स्ट्रिंग फ़ॉर्मैट के लिए data.context_annotations.domain.id देखें | |
| entities.annotations.context.context_domain_name | data.context_annotations.domain.name | tweet.fields=context_annotations | String |
| entities.annotations.context.context_domain_description | data.context_annotations.domain.description | tweet.fields=context_annotations | String |
| कोई समकक्ष नहीं | data.context_annotations.entity | tweet.fields=context_annotations | Object |
| entities.annotations.context.context_entity_id_str | data.context_annotations.entity.id | tweet.fields=context_annotations | String |
| entities.annotations.context.context_entity_id | उपलब्ध नहीं | उपलब्ध नहीं — स्ट्रिंग फ़ॉर्मैट के लिए data.context_annotations.entity.id देखें | |
| entities.annotations.context.context_entity_name | data.context_annotations.entity.name | tweet.fields=context_annotations | स्ट्रिंग |
| entities.annotations.context.context_entity_description | data.context_annotations.entity.description | tweet.fields=context_annotations | String |
| entities.annotations.entity | data.entities.annotations | tweet.fields=entities,context_annotations | ऑब्जेक्ट्स की सरणी |
| extended_entities | data.attachments | tweet_fields=attachments | ऑब्जेक्ट |
| favorited | उपलब्ध नहीं | उपलब्ध नहीं | |
| retweeted | उपलब्ध नहीं | उपलब्ध नहीं | |
| retweeted_status | |||
| possibly_sensitive | data.possibly_sensitive | tweet.fields=possibly_sensitive | बूलियन |
| lang | data.lang | tweet.fields=lang | स्ट्रिंग |
| filter_level | उपलब्ध नहीं | उपलब्ध नहीं | |
| scopes | उपलब्ध नहीं | उपलब्ध नहीं | |
| timestamp_ms | उपलब्ध नहीं | उपलब्ध नहीं | |
| withheld | data.withheld | tweet.fields=withheld | ऑब्जेक्ट्स का ऐरे |
| matching_rules | matching_rules | ऑब्जेक्ट्स की सरणी | |
| matching_rules.id | उपलब्ध नहीं | उपलब्ध नहीं | |
| matching_rules.id_str | matching_rules.id | फ़िल्टर की गई स्ट्रीम के लिए डिफ़ॉल्ट | String |
| matching_rules.tag | matching_rules.tag | फ़िल्टर की गई स्ट्रीम के लिए डिफ़ॉल्ट | String |
उपयोगकर्ता ऑब्जेक्ट
| नेटिव एनरिच्ड प्रारूप | Twitter v2 फ़ॉर्मैट | आवश्यक v2 पैरामीटर | v2 में type |
| यूज़र | includes.users | expansions=author_id | ऑब्जेक्ट्स का ऐरे |
| user.id | उपलब्ध नहीं | लागू नहीं - includes.users.id देखें | स्ट्रिंग |
| user.id_str | includes.users.id | expansions=author_id | String |
| user.name | includes.users.name | expansions=author_id | String |
| user.screen_name | includes.user.username | expansions=author_id | String |
| user.location | includes.users.location | expansions=author_id&user.fields=location | ऑब्जेक्ट |
| user.description | includes.users.description | expansions=author_id&user.fields=description | स्ट्रिंग |
| उपलब्ध नहीं | includes.users.url | expansions=author_id&user.fields=url | String |
| user.followers_count | includes.users.public_metrics.followers_count | expansions=author_id&user.fields=public_metrics | Int |
| user.friends_count | includes.users.public_metrics.following_count | expansions=author_id&user.fields=public_metrics | Int |
| user.listed_count | includes.users.public_metrics.listed_count | expansions=author_id&user.fields=public_metrics | Int |
| user.created_at | includes.users.created_at | expansions=author_id&user.fields=created_at | String |
| user.favourites_count | अभी तक उपलब्ध नहीं | ||
| user.verified | includes.users.verified | expansions=author_id&user.fields=verified | बूलियन |
| उपलब्ध नहीं | includes.users.pinned_tweet_id | expansions=author_id&user.fields=pinned_tweet_id | String |
| user.statuses_count | includes.users.public_metrics.tweet_count | expansions=author_id&user.fields=public_metrics | Int |
| user.profile_image_url_https | includes.users.profile_image_url | expansions=author_id&user.fields=profile_image_url | String |
| user.translator_type | उपलब्ध नहीं | उपलब्ध नहीं | |
| user.utc_offset | उपलब्ध नहीं | उपलब्ध नहीं | |
| user.time_zone | उपलब्ध नहीं | उपलब्ध नहीं | |
| user.geo_enabled | उपलब्ध नहीं | उपलब्ध नहीं | |
| user.lang | उपलब्ध नहीं | उपलब्ध नहीं - Tweet lang के आधार पर अनुमान लगाएँ | |
| user.contributors_enabled | उपलब्ध नहीं है | उपलब्ध नहीं है | |
| user.is_translator | उपलब्ध नहीं है | उपलब्ध नहीं है | |
| user.profile_background_color | उपलब्ध नहीं है | उपलब्ध नहीं है | |
| user.profile_background_image_url | उपलब्ध नहीं | उपलब्ध नहीं | |
| user.profile_background_image_url_https | उपलब्ध नहीं | उपलब्ध नहीं | |
| user.profile_background_title | उपलब्ध नहीं | उपलब्ध नहीं | |
| user.profile_sidebar_border_color | उपलब्ध नहीं | उपलब्ध नहीं | |
| user.profile_sidebar_fill_color | उपलब्ध नहीं है | उपलब्ध नहीं है | |
| user.profile_text_color | उपलब्ध नहीं है | उपलब्ध नहीं है | |
| user.profile_user_background_image | उपलब्ध नहीं है | उपलब्ध नहीं है | |
| user.profile_image_url | includes.user.profile_image_url देखें | ||
| user.default_profile | उपलब्ध नहीं | उपलब्ध नहीं | |
| user.default_profile_image | उपलब्ध नहीं | उपलब्ध नहीं | |
| user.following | उपलब्ध नहीं | उपलब्ध नहीं | |
| user.follow_request_sent | उपलब्ध नहीं है | उपलब्ध नहीं है | |
| user.notifications | उपलब्ध नहीं है | उपलब्ध नहीं है | |
| user.withheld_in_countries | includes.users.withheld | expansions=author_id&user.fields=withheld | ऑब्जेक्ट |
| user.protected | includes.users.protected | expansions=author_id&user.fields=protected | बूलियन |
| उपलब्ध नहीं | includes.users.entities | expansions=author_id&user.fields=entities | ऑब्जेक्ट |
| उपलब्ध नहीं | includes.users.entities.url | expansions=author_id&user.fields=entities | ऑब्जेक्ट |
| उपलब्ध नहीं | includes.users.entities.url.urls | expansions=author_id&user.fields=entities | ऑब्जेक्ट्स का ऐरे |
| उपलब्ध नहीं | includes.users.entities.url.urls.start | expansions=author_id&user.fields=entities | Int |
| उपलब्ध नहीं | includes.users.entities.url.urls.end | expansions=author_id&user.fields=entities | Int |
| उपलब्ध नहीं है | includes.users.entities.url.urls.url | expansions=author_id&user.fields=entities | स्ट्रिंग |
| user.url | includes.users.entities.url.urls.expanded_url | expansions=author_id&user.fields=entities | स्ट्रिंग |
| उपलब्ध नहीं | includes.users.entities.url.urls.display_url | expansions=author_id&user.fields=entities | स्ट्रिंग |
| उपलब्ध नहीं | includes.users.entities.descriptions | expansions=author_id&user.fields=entities | ऑब्जेक्ट |
| उपलब्ध नहीं | includes.users.entities.descriptions.hashtags | expansions=author_id&user.fields=entities | ऑब्जेक्ट्स का ऐरे |
| उपलब्ध नहीं | includes.users.entities.descriptions.hashtags.start | expansions=author_id&user.fields=entities | Int |
| उपलब्ध नहीं | includes.users.entities.descriptions.hashtags.end | expansions=author_id&user.fields=entities | Int |
| user.description में शामिल है | includes.users.entities.descriptions.hashtags.tag | expansions=author_id&user.fields=entities | स्ट्रिंग |
| उपलब्ध नहीं | includes.users.entities.descriptions.mentions | expansions=author_id&user.fields=entities | ऑब्जेक्ट्स का ऐरे |
| उपलब्ध नहीं | includes.users.entities.descriptions.mentions.start | expansions=author_id&user.fields=entities | Int |
| उपलब्ध नहीं | includes.users.entities.descriptions.mentions.end | expansions=author_id&user.fields=entities | पूर्णांक |
| user.description में शामिल | includes.users.entities.descriptions.mentions.username | expansions=author_id&user.fields=entities | स्ट्रिंग |
| उपलब्ध नहीं | includes.users.entities.descriptions.cashtags | expansions=author_id&user.fields=entities | ऑब्जेक्ट्स की सरणी |
| उपलब्ध नहीं | includes.users.entities.descriptions.cashtags.start | expansions=author_id&user.fields=entities | Int |
| उपलब्ध नहीं | includes.users.entities.descriptions.cashtags.end | expansions=author_id&user.fields=entities | Int |
| user.description में शामिल | includes.users.entities.descriptions.cashtags.tag | expansions=author_id&user.fields=entities | String |
Entities और expanded entities ऑब्जेक्ट
| Native Enriched फ़ॉर्मैट | Twitter v2 फ़ॉर्मैट | आवश्यक v2 पैरामीटर | v2 में type |
| entities | data.entities | tweet.fields=entities | ऑब्जेक्ट |
| entities.hashtags | data.entities.hashtags | tweet.fields=entities | ऑब्जेक्ट्स का ऐरे |
| entities.hashtags.indices[0] | data.entities.hashtags.start | tweet.fields=entities | Integer |
| entities.hashtags.indices[1] | data.entities.hashtags.end | tweet.fields=entities | Integer |
| entities.hashtags.text | data.entities.hashtags.tag | tweet.fields=entities | स्ट्रिंग |
| entities.urls | data.entities.urls | tweet.fields=entities | ऑब्जेक्ट्स का ऐरे |
| entities.urls.indices[0] | data.entities.urls.start | tweet.fields=entities | पूर्णांक |
| entities.urls.indices[1] | data.entities.urls.end | tweet.fields=entities | पूर्णांक |
| entities.urls.url | data.entities.urls.url | tweet.fields=entities | String |
| entities.urls.expanded_url | data.entities.urls.expanded_url | tweet.fields=entities | String |
| entities.urls.display_url | data.entities.urls.display_url | tweet.fields=entities | String |
| entities.urls.unwound.url | data.entities.urls.unwound_url | tweet.fields=entities | String |
| entities.urls.unwound.status | data.entities.urls.status | tweet.fields=entities | String |
| entities.urls.unwound.title | data.entities.urls.title | tweet.fields=entities | String |
| entities.urls.unwound.description | data.entities.urls.description | tweet.fields=entities | स्ट्रिंग |
| उपलब्ध नहीं | data.entities.urls.images | tweet.fields=entities | ऑब्जेक्ट्स का ऐरे |
| उपलब्ध नहीं | data.entities.urls.images.url | tweet.fields=entities | स्ट्रिंग |
| उपलब्ध नहीं | data.entities.urls.images.width | tweet.fields=entities | पूर्णांक |
| उपलब्ध नहीं | data.entities.urls.images.height | tweet.fields=entities | पूर्णांक |
| entities.user_mentions | data.entities.mentions | tweet.fields=entities | ऑब्जेक्ट्स का ऐरे |
| entities.user_mentions.indicies[0] | data.entities.mentions.start | tweet.fields=entities | पूर्णांक |
| entities.user_mentions.indicies[1] | data.entities.mentions.end | tweet.fields=entities | पूर्णांक |
| entities.user_mentions.screen_name | data.entities.mentions.username | tweet.fields=entities | String |
| entities.symbols | data.entities.cashtags | tweet.fields=entities | ऑब्जेक्ट्स का ऐरे |
| entities.symbols.indices[0] | data.entities.cashtags.start | tweet.fields=entities | पूर्णांक |
| entities.symbols.indices[1] | data.entities.cashtags.end | tweet.fields=entities | इंटीजर |
| entities.symbols.text | data.entities.cashtags.tag | tweet.fields=entities | स्ट्रिंग |
| entities.media या extended_entities.media | includes.media | expansions=attachments.media_keys | ऑब्जेक्ट्स की सरणी |
| entities.media.id_str OR extended_entities.media.id_str | includes.media.media_key | expansions=attachments.media_keys | String |
| entities.media.id OR extended_entities.media.id | उपलब्ध नहीं - id एक String है | ||
| entities.media.type OR extended_entities.media.type | includes.media.media.type | expansions=attachments.media_keys | String |
| entities.media.indices OR extended_entities.media.indices | उपलब्ध नहीं | उपलब्ध नहीं | |
| उपलब्ध नहीं | includes.media.alt_text | expansions=attachments.media_keys&media.fields=alt_text | String |
| entities.media.additional_media_info या extended_entities.media.additional_media_info | उपलब्ध नहीं | उपलब्ध नहीं | |
| entities.media.additional_media_info.monetizable OR extended_entities.media.additional_media_info.monetizable | उपलब्ध नहीं | उपलब्ध नहीं है | |
| entities.media.media_url OR extended_entities.media.media_url | लागू नहीं — includes.media.url देखें | String | |
| entities.media.media_url_https OR extended_entities.media.media_url_https | includes.media.url | expansions=attachments.media_keys&media.fields=url | String |
| entities.media.url या extended_entities.media.url | |||
| entities.media.display_url या extended_entities.media.expanded_url | |||
| entities.media.expanded_url | |||
| entities.media.media_url_https | includes.media.preview_image_url | expansions=attachments.media_keys&media.fields=preview_image_url | String |
| extended_entities | data.attachments | tweet_fields=attachments | ऑब्जेक्ट |
| extended_entities | data.attachments.media_keys | tweet.fields=attachments | ऑब्जेक्ट्स का ऐरे |
| उपलब्ध नहीं | data.attachments.poll_ids | tweet.fields=attachments | ऑब्जेक्ट्स की सरणी |
| extended_entities.media.sizes.thumb.w | उपलब्ध नहीं | ||
| extended_entities.media.sizes.thumb.h | उपलब्ध नहीं | ||
| extended_entities.media.sizes.thumb.resize | उपलब्ध नहीं | ||
| extended_entities.media.sizes.large.w | includes.media.height | expansions=attachments.media_keys&media.fields=height | |
| extended_entities.media.sizes.large.h | includes.media.width | expansions=attachments.media_keys&media.fields=width | |
| extended_entities.media.sizes.large.resize | उपलब्ध नहीं है | उपलब्ध नहीं है | |
| extended_entities.media.sizes.small.w | उपलब्ध नहीं | उपलब्ध नहीं | |
| extended_entities.media.sizes.small.h | उपलब्ध नहीं | उपलब्ध नहीं | |
| extended_entities.media.sizes.small.resize | उपलब्ध नहीं | उपलब्ध नहीं | |
| extended_entities.media.sizes.medium.w | उपलब्ध नहीं | उपलब्ध नहीं | |
| extended_entities.media.sizes.medium.h | उपलब्ध नहीं | उपलब्ध नहीं | |
| extended_entities.media.sizes.medium.resize | उपलब्ध नहीं | उपलब्ध नहीं | |
| extended_entities.media.media_url_https | includes.media.preview_image_url | expansions=attachments.media_keys&media.fields=preview_image_url | String |
| extended_entities.media.video_info.aspect_ratio | उपलब्ध नहीं | उपलब्ध नहीं | |
| extended_entities.media.variants | उपलब्ध नहीं | उपलब्ध नहीं | |
| extended_entities.media.variants.bitrate | उपलब्ध नहीं | उपलब्ध नहीं है | |
| extended_entities.media.variants.content_type | उपलब्ध नहीं है | उपलब्ध नहीं है | |
| extended_entities.media.variants.url | उपलब्ध नहीं है | उपलब्ध नहीं है | |
| extended_entities.media.video_info.duration_millis | includes.media.duration_ms | expansions=attachments.media_keys&media.fields=duration_ms | Int |
| उपलब्ध नहीं | includes.media.public_metrics | expansions=attachments.media_keys&media.fields=public_metrics | ऑब्जेक्ट |
| उपलब्ध नहीं | includes.media.public_metrics.view_count | expansions=attachments.media_keys&media.fields=public_metrics | Int |
| उपलब्ध नहीं | includes.media.non_public_metrics | expansions=attachments.media_keys&media.fields=non_public_metrics | ऑब्जेक्ट |
| उपलब्ध नहीं | includes.media.non_public_metrics.playback_0_count | expansions=attachments.media_keys&media.fields=non_public_metrics | Int |
| उपलब्ध नहीं | includes.media.non_public_metrics.playback_25_count | expansions=attachments.media_keys&media.fields=non_public_metrics | Int |
| उपलब्ध नहीं | includes.media.non_public_metrics.playback_50_count | expansions=attachments.media_keys&media.fields=non_public_metrics | Int |
| उपलब्ध नहीं | includes.media.non_public_metrics.playback_75_count | expansions=attachments.media_keys&media.fields=non_public_metrics | Int |
| उपलब्ध नहीं | includes.media.non_public_metrics.playback_100_count | expansions=attachments.media_keys&media.fields=non_public_metrics | पूर्णांक |
| उपलब्ध नहीं | includes.media.organic_metrics | expansions=attachments.media_keys&media.fields=organic_metrics | ऑब्जेक्ट |
| उपलब्ध नहीं | includes.media.organic_metrics.playback_0_count | expansions=attachments.media_keys&media.fields=organic_metrics | Int |
| उपलब्ध नहीं | includes.media.organic_metrics.playback_25_count | expansions=attachments.media_keys&media.fields=organic_metrics | Int |
| उपलब्ध नहीं | includes.media.organic_metrics.playback_50_count | expansions=attachments.media_keys&media.fields=organic_metrics | Int |
| उपलब्ध नहीं | includes.media.organic_metrics.playback_75_count | expansions=attachments.media_keys&media.fields=organic_metrics | Int |
| उपलब्ध नहीं | includes.media.organic_metrics.playback_100_count | expansions=attachments.media_keys&media.fields=organic_metrics | Int |
| उपलब्ध नहीं | includes.media.organic_metrics.view_count | expansions=attachments.media_keys&media.fields=organic_metrics | Int |
| उपलब्ध नहीं | includes.media.promoted_metric | expansions=attachments.media_keys&media.fields=promoted_metrics | ऑब्जेक्ट |
| उपलब्ध नहीं | includes.media.promoted_metric.playback_0_count | expansions=attachments.media_keys&media.fields=promoted_metrics | Int |
| उपलब्ध नहीं | includes.media.promoted_metric.playback_25_count | expansions=attachments.media_keys&media.fields=promoted_metrics | Int |
| उपलब्ध नहीं | includes.media.promoted_metric.playback_50_count | expansions=attachments.media_keys&media.fields=promoted_metrics | Int |
| उपलब्ध नहीं | includes.media.promoted_metric.playback_75_count | expansions=attachments.media_keys&media.fields=promoted_metrics | Int |
| उपलब्ध नहीं | includes.media.promoted_metric.playback_100_count | expansions=attachments.media_keys&media.fields=promoted_metrics | Int |
| उपलब्ध नहीं है | includes.media.promoted_metrics.view_count | expansions=attachments.media_keys&media.fields=promoted_metrics | Int |
Place ऑब्जेक्ट
| Native Enriched फ़ॉर्मैट | Twitter v2 फ़ॉर्मैट | आवश्यक v2 पैरामीटर | v2 में type |
| place | includes.places | expansions=geo.place_id | ऑब्जेक्ट्स का ऐरे |
| place.id | includes.places.id | expansions=geo.place_id | स्ट्रिंग |
| place.url | उपलब्ध नहीं | उपलब्ध नहीं | |
| place.id.place_type | includes.places.place_type | expansions=geo.place_id&place.fields=place_type | स्ट्रिंग |
| place.id.name | includes.places.name | expansions=geo.place_id&place.fields=name | स्ट्रिंग |
| place.id.full_name | includes.places.full_name | expansions=geo.place_id | स्ट्रिंग |
| place.id.country_code | includes.places.country_code | expansions=geo.place_id&place.fields=country_code | स्ट्रिंग |
| place.id.country | includes.places.country | expansions=geo.place_id&place.fields=country | स्ट्रिंग |
| place.id.contained_within | includes.places.contained_within | expansions=geo.place_id&place.fields=contained_within | ऐरे |
| place.id.bounding_box.type | includes.places.geo.type | expansions=geo.place_id&place.fields=place_type | स्ट्रिंग |
| place.id.bounding_box.coordinates | includes.places.geo.bbox | expansions=geo.place_id&place.fields=geo | ऐरे |
| place.id.attributes | includes.places.properties | expansions=geo.place_id&place.fields=geo | ऑब्जेक्ट |
पोल ऑब्जेक्ट
| नेटिव Enriched फ़ॉर्मैट | Twitter v2 फ़ॉर्मैट | आवश्यक v2 पैरामीटर | v2 में type |
| entities.polls | includes.polls | expansions=attachments.poll_ids | ऑब्जेक्ट्स का ऐरे |
| उपलब्ध नहीं | includes.polls.id | expansions=attachments.poll_ids | स्ट्रिंग |
| entities.poll.options | includes.polls.options | expansions=attachments.poll_ids | ऑब्जेक्ट्स का ऐरे |
| entities.polls.options.position | includes.polls.options.position | expansions=attachments.poll_ids | Int |
| entities.polls.options.text | includes.polls.options.label | expansions=attachments.poll_ids | स्ट्रिंग |
| उपलब्ध नहीं | includes.polls.options.votes | expansions=attachments.poll_ids | Int |
| उपलब्ध नहीं | includes.polls.voting_status | expansions=attachments.poll_ids&poll.fields=voting_status | स्ट्रिंग |
| entities.polls.duration_minutes | includes.polls.duration_minutes | expansions=attachments.poll_ids&poll.fields=duration_minutes | Int |
| entities.polls.end_datetime | includes.polls.end_datetime | expansions=attachments.poll_ids&poll.fields=end_datetime | दिनांक (ISO 8601) |
Activity Streams फ़ॉर्मैट से v2 पर माइग्रेट करना
- JSON रूट लेवल पर, Activity Streams फ़ॉर्मैट results array में Tweet ऑब्जेक्ट्स लौटाता है, जबकि X API v2 data array लौटाता है।
- Retweeted और Quoted “activities” का उल्लेख करने के बजाय, X API v2 JSON Retweeted और Quoted Tweets का उल्लेख करता है।
- favorites (Tweet ऑब्जेक्ट में) और favourites (उपयोगकर्ता ऑब्जेक्ट में) दोनों का उपयोग करने के बजाय, X API v2 like शब्द का उपयोग करता है।
- Twitter उस परंपरा को अपना रहा है जिसमें जिन JSON values का कोई मान नहीं होता (उदाहरण के लिए, null), उन्हें payload में नहीं लिखा जाता। Tweet और उपयोगकर्ता attributes केवल तभी शामिल किए जाते हैं, जब उनके मान non-null हों।
- v2 में सभी id फ़ील्ड्स स्ट्रिंग फ़ॉर्मैट में होंगे。
- conversation_id
- reply_settings
- media पर alt_text
- दो नए annotations फ़ील्ड्स, जिनमें context और entities शामिल हैं
- कई नए metrics फ़ील्ड्स
- कई नए polls फ़ील्ड्स
- display_text_range
- generator
- gnip
- link
- objectType
- provider
- twitter_entities.symbols को data.entities.cashtags से बदला गया है
- कुछ twitter_extended_entities.media और twitter_entities.media फ़ील्ड्स
- twitter_filter_level
- twitterTimeZone
- verb
Tweet ऑब्जेक्ट
| Activity Streams प्रारूप | Twitter v2 फ़ॉर्मैट | v2 के आवश्यक पैरामीटर | v2 में Type |
| postedTime | data.created_at | tweet.fields=created_at | तारीख (ISO 8601) |
| generator | उपलब्ध नहीं | उपलब्ध नहीं | |
| generator.link | उपलब्ध नहीं | उपलब्ध नहीं | |
| generator.displayName | data.source | tweet.fields=source | String |
| twitter_lang | data.lang | tweet.fields=lang | String |
| उपलब्ध नहीं | data.conversation_id | tweet.fields=conversation_id | String |
| उपलब्ध नहीं | data.reply_settings | tweet.fields=reply_settings | String |
| उपलब्ध नहीं है | data.possibly_sensitive | tweet.fields=possibly_sensitive | बूलियन |
| उपलब्ध नहीं है | data.withheld | tweet.fields=withheld | ऑब्जेक्ट |
| objectType | उपलब्ध नहीं | उपलब्ध नहीं | |
| verb | उपलब्ध नहीं | उपलब्ध नहीं | |
| provider | उपलब्ध नहीं | उपलब्ध नहीं | |
| provider.objectType | उपलब्ध नहीं | उपलब्ध नहीं | |
| provider.displayName | उपलब्ध नहीं | उपलब्ध नहीं | |
| provider.link | उपलब्ध नहीं | उपलब्ध नहीं | |
| link | उपलब्ध नहीं | उपलब्ध नहीं | |
| display_text_range | उपलब्ध नहीं | उपलब्ध नहीं | |
| object | उपलब्ध नहीं | उपलब्ध नहीं | |
| object.objectType | उपलब्ध नहीं | उपलब्ध नहीं | |
| object.id | उपलब्ध नहीं | उपलब्ध नहीं | |
| object.summary | data.text | डिफ़ॉल्ट | String |
| object.edit_history | data.edit_history_tweet_ids | डिफ़ॉल्ट | Array |
| object.edit_controls | data.edit_controls | tweet.fields=edit_controls | Object |
| object.editable | data.edit_controls.is_edit_eligible | tweet.fields=edit_controls | बूलियन |
| object.link | अनुपलब्ध | अनुपलब्ध | |
| object.postedTime | data.created_at | tweet.fields=created_at | दिनांक (ISO 8601) |
| actor.id से लिया गया | data.author_id | tweet.fields=created_at | |
| twitter_filter_level | उपलब्ध नहीं | उपलब्ध नहीं | |
| inReplyTo.link में username से प्राप्त | data.in_reply_to_user_id | tweet.fields=in_reply_to_user_id | स्ट्रिंग |
| उपलब्ध नहीं | data.referenced_tweets | tweet.fields=referenced_tweets | ऑब्जेक्ट्स की एरे |
| उपलब्ध नहीं | data.referenced_tweets.type | tweet.fields=referenced_tweets | String |
| inReplyTo.link से प्राप्त | data.referenced_tweets.id | tweet.fields=referenced_tweets | स्ट्रिंग |
| उपलब्ध नहीं | data.attachments | tweet.fields=attachments | ऑब्जेक्ट |
| twitter_entities.media.id_str से लिया गया | data.attachments.media_keys | tweet.fields=attachments | ऐरे |
| उपलब्ध नहीं | data.attachments.poll_ids | tweet.fields=attachments | ऐरे |
| twitter_entities | data.entities | tweet.fields=entities | ऑब्जेक्ट |
| उपलब्ध नहीं | data.entities.annotations | tweet.fields=entities | ऑब्जेक्ट्स का ऐरे |
| उपलब्ध नहीं | data.entities.annotations.start | tweet.fields=entities | Int |
| उपलब्ध नहीं | data.entities.annotations.end | tweet.fields=entities | Int |
| उपलब्ध नहीं | data.entities.annotations.probability | tweet.fields=entities | Float |
| उपलब्ध नहीं | data.entities.annotations.type | tweet.fields=entities | String |
| उपलब्ध नहीं | data.entities.annotations.normalized_text | tweet.fields=entities | स्ट्रिंग |
| twitter_entities.urls | data.entities.urls | tweet.fields=entities | ऑब्जेक्ट्स का ऐरे |
| twitter_entities.urls.indices[0] | data.entities.urls.start | tweet.fields=entities | Int |
| twitter_entities.urls.indices[1] | data.entities.urls.end | tweet.fields=entities | Int |
| twitter_entities.urls.url | data.entities.urls.url | tweet.fields=entities | String |
| twitter_entities.urls.expanded_url | data.entities.urls.expanded_url | tweet.fields=entities | String |
| twitter_entities.urls.display_url | data.entities.urls.display_url | tweet.fields=entities | स्ट्रिंग |
| उपलब्ध नहीं | data.entities.urls.images | tweet.fields=entities | ऑब्जेक्ट्स का ऐरे |
| उपलब्ध नहीं | data.entities.urls.images.url | tweet.fields=entities | String |
| उपलब्ध नहीं | data.entities.urls.images.width | tweet.fields=entities | Int |
| उपलब्ध नहीं | data.entities.urls.images.height | tweet.fields=entities | Int |
| gnip.urls.expanded_status | data.entities.urls.status | tweet.fields=entities | Int |
| gnip.urls.expanded_url_title | data.entities.urls.title | tweet.fields=entities | String |
| gnip.urls.expanded_url_description | data.entities.urls.description | tweet.fields=entities | String |
| gnip.urls.expanded_url | data.entities.urls.unwound_url | tweet.fields=entities | String |
| twitter_entities.symbols | data.entities.cashtags | tweet.fields=entities | ऑब्जेक्ट्स का ऐरे |
| twitter_entities.symbols.indices[0] | data.entities.cashtags.start | tweet.fields=entities | Int |
| twitter_entities.symbols.indices[1] | data.entities.cashtags.end | tweet.fields=entities | Int |
| twitter_entities.symbols.text | data.entities.cashtags.tag | tweet.fields=entities | स्ट्रिंग |
| twitter_entities.hashtags | data.entities.hashtags | tweet.fields=entities | ऑब्जेक्ट्स का ऐरे |
| twitter_entities.hashtags.indices[0] | data.entities.hashtags.start | tweet.fields=entities | Int |
| twitter_entities.hashtags.indices[1] | data.entities.hashtags.end | tweet.fields=entities | Int |
| twitter_entities.hashtags.text | data.entities.hashtags.tag | tweet.fields=entities | String |
| twitter_entities.user_mentions | data.entities.mentions | tweet.fields=entities | ऑब्जेक्ट्स का ऐरे |
| twitter_entities.user_mentions.indices[0] | data.entities.mentions.start | tweet.fields=entities | Int |
| twitter_entities.user_mentions.indices[1] | data.entities.mentions.end | tweet.fields=entities | Int |
| twitter_entities.user_mentions.screen_name | data.entities.mentions.tag | tweet.fields=entities | String |
| twitter_entities.user_mentions.id_str | data.entities.mentions.id | tweet.fields=entities | String |
| twitter_entities.user_mentions.id | उपलब्ध नहीं | उपलब्ध नहीं | |
| उपलब्ध नहीं | data.context_annotations | tweet.fields=context_annotations | ऑब्जेक्ट्स का ऐरे |
| उपलब्ध नहीं | data.context_annotations.domain | tweet.fields=context_annotations | ऑब्जेक्ट |
| उपलब्ध नहीं | data.context_annotations.domain.id | tweet.fields=context_annotations | String |
| उपलब्ध नहीं | data.context_annotations.domain.name | tweet.fields=context_annotations | String |
| उपलब्ध नहीं | data.context_annotations.domain.description | tweet.fields=context_annotations | String |
| उपलब्ध नहीं | data.context_annotations.entity | tweet.fields=context_annotations | ऑब्जेक्ट |
| उपलब्ध नहीं | data.context_annotations.entity.id | tweet.fields=context_annotations | स्ट्रिंग |
| उपलब्ध नहीं | data.context_annotations.entity.name | tweet.fields=context_annotations | String |
| उपलब्ध नहीं | data.context_annotations.entity.description | tweet.fields=context_annotations | String |
| geo | data.geo | tweet.fields=geo | ऑब्जेक्ट |
| location.link से प्राप्त | data.geo.place_id | tweet.fields=geo | स्ट्रिंग |
| उपलब्ध नहीं | data.public_metrics | tweet.fields=public_metrics | ऑब्जेक्ट |
| favoritesCount | data.public_metrics.like_count | tweet.fields=public_metrics | Int |
| retweetCount | data.public_metrics.retweet_count | tweet.fields=public_metrics | Int |
| उपलब्ध नहीं | data.public_metrics.quote_count | tweet.fields=public_metrics | Int |
| उपलब्ध नहीं | data.public_metrics.reply_count | tweet.fields=public_metrics | Int |
| उपलब्ध नहीं | data.non_non_public_metrics | tweet.fields=non_public_metrics | ऑब्जेक्ट |
| उपलब्ध नहीं | data.non_public_metrics.impression_count | tweet.fields=non_public_metrics | Int |
| अनुपलब्ध | data.non_public_metrics.url_link_count | tweet.fields=non_public_metrics | Int |
| उपलब्ध नहीं | data.non_public_metrics.user_profile_count | tweet.fields=non_public_metrics | Int |
| उपलब्ध नहीं | data.organic_metrics | tweet.fields=organic_metrics | Object |
| उपलब्ध नहीं | data.organic_metrics.like_count | tweet.fields=organic_metrics | Int |
| उपलब्ध नहीं | data.organic_metrics.retweet_count | tweet.fields=organic_metrics | Int |
| उपलब्ध नहीं | data.organic_metrics.reply_count | tweet.fields=organic_metrics | Int |
| उपलब्ध नहीं है | data.organic_metrics.impression_count | tweet.fields=organic_metrics | Int |
| उपलब्ध नहीं है | data.organic_metrics.url_link_count | tweet.fields=organic_metrics | Int |
| उपलब्ध नहीं | data.organic_metrics.user_profile_count | tweet.fields=organic_metrics | पूर्णांक |
| उपलब्ध नहीं | data.promoted_metrics | tweet.fields=promoted_metrics | ऑब्जेक्ट |
| उपलब्ध नहीं | data.promoted_metrics.like_count | tweet.fields=promoted_metrics | Int |
| उपलब्ध नहीं | data.promoted_metrics.retweet_count | tweet.fields=promoted_metrics | Int |
| उपलब्ध नहीं | data.promoted_metrics.reply_count | tweet.fields=promoted_metrics | Int |
| उपलब्ध नहीं | data.promoted_metrics.impression_count | tweet.fields=promoted_metrics | Int |
| उपलब्ध नहीं है | data.promoted_metrics.url_link_count | tweet.fields=promoted_metrics | Int |
| उपलब्ध नहीं | data.promoted_metrics.user_profile_count | tweet.fields=promoted_metrics | पूर्णांक |
| gnip.profileLocations | उपलब्ध नहीं | उपलब्ध नहीं | |
| gnip.profileLocations.address | उपलब्ध नहीं है | उपलब्ध नहीं है | |
| gnip.profileLocations.address.country | उपलब्ध नहीं है | उपलब्ध नहीं है | |
| gnip.profileLocations.address.countryCode | उपलब्ध नहीं है | उपलब्ध नहीं | |
| gnip.profileLocations.displayName | उपलब्ध नहीं | उपलब्ध नहीं | |
| gnip.profileLocations.geo | उपलब्ध नहीं | उपलब्ध नहीं | |
| gnip.profileLocations.geo.coordinates | उपलब्ध नहीं | उपलब्ध नहीं | |
| gnip.profileLocations.geo.type | उपलब्ध नहीं | उपलब्ध नहीं | |
| gnip.profileLocations.objectType | उपलब्ध नहीं | उपलब्ध नहीं |
उपयोगकर्ता ऑब्जेक्ट
| Activity Streams फ़ॉर्मैट | Twitter v2 फ़ॉर्मैट | v2 के लिए आवश्यक पैरामीटर | v2 में type |
| एक्टर | includes.users | expansions=author_id | ऑब्जेक्ट्स की सरणी |
| actor.id से लिया गया | includes.users.id | expansions=author_id | स्ट्रिंग |
| actor.displayName | includes.users.name | expansions=author_id | String |
| actor.preferredUsername | includes.users.username | expansions=author_id | String |
| actor.postedTime | includes.users.created_at | expansions=author_id&user.fields=created_at | तारीख (ISO 8601) |
| actor.summary | includes.users.description | expansions=author_id&user.fields=description | String |
| उपलब्ध नहीं | includes.users.pinned_tweet_id | expansions=author_id&user.fields=pinned_tweet_id | String |
| उपलब्ध नहीं | includes.users.protected | expansions=author_id&user.fields=protected | Boolean |
| actor.link | उपलब्ध नहीं | उपलब्ध नहीं - includes.users.username से बनाएँ | |
| actor.twitterTimeZone | उपलब्ध नहीं | उपलब्ध नहीं - Tweet created_at से अनुमान लगाएँ | |
| actor.utcOffset | उपलब्ध नहीं | उपलब्ध नहीं - Tweet created_at से अनुमान लगाएँ | |
| actor.favoritesCount | अनुपलब्ध | अनुपलब्ध | |
| actor.followersCount | includes.users.public_metrics.followers_count | expansions=author_id&user.fields=public_metrics | Int |
| actor.friendsCount | includes.users.public_metrics.following_count | expansions=author_id&user.fields=public_metrics | Int |
| actor.listedCount | includes.users.public_metrics.listed_count | expansions=author_id&user.fields=public_metrics | Int |
| actor.statusesCount | includes.users.public_metrics.tweet_count | expansions=author_id&user.fields=public_metrics | Int |
| actor.languages[] | उपलब्ध नहीं | उपलब्ध नहीं - Tweet lang से अनुमान लगाएँ | |
| actor.location.displayName | includes.users.location | expansions=author_id&user.fields=location | String |
| actor.image | includes.users.profile_image_url | expansions=author_id&user.fields=profile_image_url | String |
| actor.links | includes.users.url | expansions=author_id&user.fields=url | String |
| actor.verified | includes.users.verified | expansions=author_id&user.fields=verified | बूलियन |
| उपलब्ध नहीं | includes.users.withheld | expansions=author_id&user.fields=withheld | ऑब्जेक्ट |
| उपलब्ध नहीं | includes.users.entities | expansions=author_id&user.fields=entities | ऑब्जेक्ट |
| उपलब्ध नहीं | includes.users.entities.url | expansions=author_id&user.fields=entities | ऑब्जेक्ट |
| actor.links | includes.users.entities.url.urls | expansions=author_id&user.fields=entities | ऑब्जेक्ट्स की सरणी |
| उपलब्ध नहीं | includes.users.entities.url.urls.start | expansions=author_id&user.fields=entities | Int |
| उपलब्ध नहीं | includes.users.entities.url.urls.end | expansions=author_id&user.fields=entities | Int |
| उपलब्ध नहीं | includes.users.entities.url.urls.url | expansions=author_id&user.fields=entities | String |
| actor.links.href | includes.users.entities.url.urls.expanded_url | expansions=author_id&user.fields=entities | String |
| उपलब्ध नहीं | includes.users.entities.url.urls.display_url | expansions=author_id&user.fields=entities | String |
| उपलब्ध नहीं | includes.users.entities.description | expansions=author_id&user.fields=entities | ऑब्जेक्ट |
| उपलब्ध नहीं है | includes.users.entities.description.hashtags | expansions=author_id&user.fields=entities | ऑब्जेक्ट्स की ऐरे |
| उपलब्ध नहीं | includes.users.entities.description.hashtags.start | expansions=author_id&user.fields=entities | Int |
| उपलब्ध नहीं | includes.users.entities.description.hashtags.end | expansions=author_id&user.fields=entities | Int |
| उपलब्ध नहीं | includes.users.entities.description.hashtags.tag | expansions=author_id&user.fields=entities | String |
| उपलब्ध नहीं | includes.users.entities.description.mentions | expansions=author_id&user.fields=entities | ऑब्जेक्ट्स का ऐरे |
| उपलब्ध नहीं | includes.users.entities.description.mentions.start | expansions=author_id&user.fields=entities | Int |
| उपलब्ध नहीं | includes.users.entities.description.mentions.end | expansions=author_id&user.fields=entities | Int |
| उपलब्ध नहीं | includes.users.entities.description.mentions.username | expansions=author_id&user.fields=entities | स्ट्रिंग |
| उपलब्ध नहीं | includes.users.entities.description.cashtags | expansions=author_id&user.fields=entities | ऑब्जेक्ट्स का ऐरे |
| उपलब्ध नहीं | includes.users.entities.description.cashtags.start | expansions=author_id&user.fields=entities | पूर्णांक |
| उपलब्ध नहीं | includes.users.entities.description.cashtags.end | expansions=author_id&user.fields=entities | Int |
| उपलब्ध नहीं | includes.users.entities.description.cashtags.tag | expansions=author_id&user.fields=entities | String |
पोल ऑब्जेक्ट
| Activity Streams फ़ॉर्मैट | Twitter v2 फ़ॉर्मैट | आवश्यक v2 पैरामीटर | v2 में type |
| उपलब्ध नहीं | includes.polls | expansions=attachments.poll_ids | Array of objects |
| उपलब्ध नहीं | includes.polls.id | expansions=attachments.poll_ids | String |
| उपलब्ध नहीं | includes.polls.options | expansions=attachments.poll_ids | Array of objects |
| उपलब्ध नहीं | includes.polls.options.position | expansions=attachments.poll_ids | Int |
| उपलब्ध नहीं | includes.polls.options.label | expansions=attachments.poll_ids | String |
| उपलब्ध नहीं | includes.polls.options.votes | expansions=attachments.poll_ids | Int |
| उपलब्ध नहीं | includes.polls.voting_status | expansions=attachments.poll_ids&poll.fields=voting_status | String |
| उपलब्ध नहीं | includes.polls.duration_minutes | expansions=attachments.poll_ids&poll.fields=duration_minutes | Int |
| उपलब्ध नहीं | includes.polls.end_datetime | expansions=attachments.poll_ids&poll.fields=end_datetime | Date (ISO 8601) |
Place ऑब्जेक्ट
| Activity Streams फ़ॉर्मैट | Twitter v2 फ़ॉर्मैट | आवश्यक v2 पैरामीटर | v2 में type |
| location | includes.places | expansions=geo.place_id | objects का array |
| location.displayName | includes.places.full_name | expansions=geo.place_id | string |
| location.link से पार्स किया गया | includes.places.id | expansions=geo.place_id | string |
| location.name | includes.places.name | expansions=geo.place_id&place.fields=name | string |
| location.country_code | includes.places.country | expansions=geo.place_id&place.fields=country | string |
| location.twitter_place_type | includes.places.place_type | expansions=geo.place_id&place.fields=place_type | string |
| location.twitter_country_code | includes.places.country_code | expansions=geo.place_id&place.fields=country_code | string |
| location.geo | includes.places.geo | expansions=geo.place_id&place.fields=geo | object |
| location.geo.type | includes.places.geo.type | expansions=geo.place_id&place.fields=geo | string |
| location.geo.coordinates | includes.places.geo.bbox | expansions=geo.place_id&place.fields=geo | array |
| उपलब्ध नहीं | includes.places.geo.properties | expansions=geo.place_id&place.fields=geo | object |
मीडिया ऑब्जेक्ट
| Activity Streams फ़ॉर्मैट | Twitter v2 प्रारूप | v2 के आवश्यक पैरामीटर | v2 में Type |
| twitter_entities.media OR twitter_extended_entities.media | includes.media | expansions=attachments.media_keys | ऑब्जेक्ट का ऐरे |
| twitter_entities.media.id_str OR twitter_extended_entities.media.id_str | includes.media.media_key | expansions=attachments.media_keys | String |
| twitter_entities.media.id OR twitter_extended_entities.media.id | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_entities.media.indices OR twitter_extended_entities.media.indices | उपलब्ध नहीं है | उपलब्ध नहीं है | |
| twitter_entities.media.additional_media_info OR twitter_extended_entities.media.additional_media_info | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_entities.media.additional_media_info.monetizable या twitter_extended_entities.media.additional_media_info.monetizable | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_entities.media.media_url या twitter_extended_entities.media.media_url | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_entities.media.media_url_https या twitter_extended_entities.media.media_url_https | includes.media.preview_image_url | expansions=attachments.media_keys&media.fields=preview_image_url | String |
| twitter_entities.media.url OR twitter_extended_entities.media.url | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_entities.media.display_url या twitter_extended_entities.media.display_url | उपलब्ध नहीं है | उपलब्ध नहीं है | |
| twitter_entities.media.expanded_url या twitter_extended_entities.media.expanded_url | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_entities.media.type OR twitter_extended_entities.media.type | includes.media.type | expansions=attachments.media_keys | String |
| twitter_entities.media.sizes OR twitter_extended_entities.media.sizes | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_entities.media.sizes.thumb OR twitter_extended_entities.media.sizes.thumb | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_entities.media.sizes.thumb.h या twitter_extended_entities.media.sizes.thumb.h | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_entities.media.sizes.thumb.w या twitter_extended_entities.media.sizes.thumb.w | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_entities.media.sizes.thumb.resize या twitter_extended_entities.media.sizes.thumb.resize | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_entities.media.sizes.small OR twitter_extended_entities.media.sizes.small | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_entities.media.sizes.small.h या twitter_extended_entities.media.sizes.small.h | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_entities.media.sizes.small.w या twitter_extended_entities.media.sizes.small.w | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_entities.media.sizes.small.resize या twitter_extended_entities.media.sizes.small.resize | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_entities.media.sizes.medium या twitter_extended_entities.media.sizes.medium | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_entities.media.sizes.medium.h OR twitter_extended_entities.media.sizes.medium.h | उपलब्ध नहीं है | उपलब्ध नहीं है | |
| twitter_entities.media.sizes.medium.w OR twitter_extended_entities.media.sizes.medium.w | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_entities.media.sizes.medium.resize OR twitter_extended_entities.media.sizes.medium.resize | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_entities.media.sizes.large या twitter_extended_entities.media.sizes.large | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_entities.media.sizes.large.h OR twitter_extended_entities.media.sizes.large.h | includes.media.height | expansions=attachments.media_keys&media.fields=height | Int |
| twitter_entities.media.sizes.large.w या twitter_extended_entities.media.sizes.large.w | includes.media.width | expansions=attachments.media_keys&media.fields=width | Int |
| twitter_entities.media.sizes.large.resize OR twitter_extended_entities.media.sizes.large.resize | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_extended_entities.media.video_info | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_extended_entities.media.video_info.aspect_ratio | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_extended_entities.media.video_info.duration_millis | includes.media.duration_ms | expansions=attachments.media_keys&media.fields=duration_ms | Int |
| twitter_extended_entities.media.video_info.variants | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_extended_entities.media.video_info.variants.bitrate | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_extended_entities.media.video_info.variants.content_type | उपलब्ध नहीं | उपलब्ध नहीं | |
| twitter_extended_entities.media.video_info.variants.url | उपलब्ध नहीं | उपलब्ध नहीं | |
| उपलब्ध नहीं | includes.media.alt_text | expansions=attachments.media_keys&media.fields=alt_text | स्ट्रिंग |
| उपलब्ध नहीं | includes.media.public_metrics | expansions=attachments.media_keys&media.fields=public_metrics | ऑब्जेक्ट |
| उपलब्ध नहीं | includes.media.public_metrics.view_count | expansions=attachments.media_keys&media.fields=public_metrics | पूर्णांक |
| उपलब्ध नहीं | includes.media.non_public_metrics | expansions=attachments.media_keys&media.fields=non_public_metrics | ऑब्जेक्ट |
| उपलब्ध नहीं | includes.media.non_public_metrics.playback_0_count | expansions=attachments.media_keys&media.fields=non_public_metrics | Int |
| उपलब्ध नहीं | includes.media.non_public_metrics.playback_25_count | expansions=attachments.media_keys&media.fields=non_public_metrics | Int |
| उपलब्ध नहीं | includes.media.non_public_metrics.playback_50_count | expansions=attachments.media_keys&media.fields=non_public_metrics | Int |
| उपलब्ध नहीं | includes.media.non_public_metrics.playback_75_count | expansions=attachments.media_keys&media.fields=non_public_metrics | Int |
| उपलब्ध नहीं | includes.media.non_public_metrics.playback_100_count | expansions=attachments.media_keys&media.fields=non_public_metrics | Int |
| उपलब्ध नहीं | includes.media.organic_metrics | expansions=attachments.media_keys&media.fields=organic_metrics | ऑब्जेक्ट |
| उपलब्ध नहीं | includes.media.organic_metrics.playback_0_count | expansions=attachments.media_keys&media.fields=organic_metrics | Int |
| उपलब्ध नहीं है | includes.media.organic_metrics.playback_25_count | expansions=attachments.media_keys&media.fields=organic_metrics | Int |
| उपलब्ध नहीं | includes.media.organic_metrics.playback_50_count | expansions=attachments.media_keys&media.fields=organic_metrics | Int |
| उपलब्ध नहीं | includes.media.organic_metrics.playback_75_count | expansions=attachments.media_keys&media.fields=organic_metrics | Int |
| उपलब्ध नहीं | includes.media.organic_metrics.playback_100_count | expansions=attachments.media_keys&media.fields=organic_metrics | Int |
| उपलब्ध नहीं | includes.media.organic_metrics.view_count | expansions=attachments.media_keys&media.fields=organic_metrics | Int |
| उपलब्ध नहीं | includes.media.promoted_metrics | expansions=attachments.media_keys&media.fields=promoted_metrics | ऑब्जेक्ट |
| उपलब्ध नहीं | includes.media.promoted_metrics.playback_0_count | expansions=attachments.media_keys&media.fields=promoted_metrics | Int |
| उपलब्ध नहीं | includes.media.promoted_metrics.playback_25_count | expansions=attachments.media_keys&media.fields=promoted_metrics | Int |
| उपलब्ध नहीं | includes.media.promoted_metrics.playback_50_count | expansions=attachments.media_keys&media.fields=promoted_metrics | Int |
| उपलब्ध नहीं | includes.media.promoted_metrics.playback_75_count | expansions=attachments.media_keys&media.fields=promoted_metrics | Int |
| उपलब्ध नहीं | includes.media.promoted_metrics.playback_100_count | expansions=attachments.media_keys&media.fields=promoted_metrics | Int |
| उपलब्ध नहीं | includes.media.promoted_metrics.view_count | expansions=attachments.media_keys&media.fields=promoted_metrics | Int |
मैचिंग नियम ऑब्जेक्ट
| Activity Streams प्रारूप | Twitter v2 प्रारूप | आवश्यक v2 पैरामीटर | v2 में type |
| gnip.matching_rules | matching_rules | फ़िल्टर्ड स्ट्रीम में डिफ़ॉल्ट रूप से | ऑब्जेक्ट्स की ऐरे |
| gnip.matching_rules.tag | matching_rules.tag | फ़िल्टर्ड स्ट्रीम में डिफ़ॉल्ट रूप से | String |
| gnip.matching_rules.tag.id | उपलब्ध नहीं | उपलब्ध नहीं | |
| gnip.matching_rules.tag.id_str | matching_rules.id | फ़िल्टर्ड स्ट्रीम में डिफ़ॉल्ट रूप से | String |