1
Fork 0
mirror of https://github.com/thegeneralist01/twitter-openapi synced 2026-01-11 23:50:26 +01:00
Signed-off-by: ふぁ <yuki@yuki0311.com>
This commit is contained in:
ふぁ 2024-05-08 20:43:18 +09:00
parent 11f16deefb
commit be2ed3e310
No known key found for this signature in database
GPG key ID: 83A8A5E74872A8AA
2 changed files with 95 additions and 40 deletions

View file

@ -57,20 +57,20 @@ paths:
type: string type: string
default: "en-US,en;q=0.9" default: "en-US,en;q=0.9"
description: "en-US,en;q=0.9" description: "en-US,en;q=0.9"
- name: Cache-Control # - name: Cache-Control
in: header # in: header
required: true # required: true
schema: # schema:
type: string # type: string
default: "no-cache" # default: "no-cache"
description: "no-cache" # description: "no-cache"
- name: Pragma # - name: Pragma
in: header # in: header
required: true # required: true
schema: # schema:
type: string # type: string
default: "no-cache" # default: "no-cache"
description: "no-cache" # description: "no-cache"
- name: Sec-Ch-Ua - name: Sec-Ch-Ua
in: header in: header
required: true required: true
@ -113,6 +113,20 @@ paths:
type: string type: string
default: "same-origin" default: "same-origin"
description: "same-origin" description: "same-origin"
- name: Referer
in: header
required: true
schema:
type: string
default: "https://twitter.com/home"
description: "https://twitter.com/home"
- name: Priority
in: header
required: true
schema:
type: string
default: "u=1, i"
description: "u=1, i"
responses: responses:
"200": "200":
@ -156,16 +170,16 @@ components:
in: header in: header
name: Accept-Language name: Accept-Language
type: apiKey type: apiKey
CacheControl: # CacheControl:
description: "no-cache" # description: "no-cache"
in: header # in: header
name: Cache-Control # name: Cache-Control
type: apiKey # type: apiKey
Pragma: # Pragma:
description: "no-cache" # description: "no-cache"
in: header # in: header
name: Pragma # name: Pragma
type: apiKey # type: apiKey
SecChUa: SecChUa:
description: '"Chromium";v="116", "Not)A;Brand";v="24", "Google Chrome";v="116"' description: '"Chromium";v="116", "Not)A;Brand";v="24", "Google Chrome";v="116"'
in: header in: header
@ -196,6 +210,16 @@ components:
in: header in: header
name: Sec-Fetch-Site name: Sec-Fetch-Site
type: apiKey type: apiKey
Referer:
description: "https://twitter.com/home"
in: header
name: Referer
type: apiKey
Priority:
description: "u=1, i"
in: header
name: Priority
type: apiKey
security: security:
- UserAgent: [] - UserAgent: []
@ -205,11 +229,13 @@ security:
- Accept: [] - Accept: []
- AcceptEncoding: [] - AcceptEncoding: []
- AcceptLanguage: [] - AcceptLanguage: []
- CacheControl: [] # - CacheControl: []
- Pragma: [] # - Pragma: []
- SecChUa: [] - SecChUa: []
- SecChUaMobile: [] - SecChUaMobile: []
- SecChUaPlatform: [] - SecChUaPlatform: []
- SecFetchDest: [] - SecFetchDest: []
- SecFetchMode: [] - SecFetchMode: []
- SecFetchSite: [] - SecFetchSite: []
- Referer: []
- Priority: []

View file

@ -1,6 +1,6 @@
{ {
"HomeTimeline": { "HomeTimeline": {
"queryId": "AmMFotx7L4P3QnyOM3bCRA", "queryId": "q1x0puFIVMzsbx2Yoh-usA",
"variables": { "variables": {
"count": 20, "count": 20,
"includePromotedContent": true, "includePromotedContent": true,
@ -12,12 +12,15 @@
] ]
}, },
"features": { "features": {
"rweb_tipjar_consumption_enabled": true,
"responsive_web_graphql_exclude_directive_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true,
"verified_phone_label_enabled": false, "verified_phone_label_enabled": false,
"creator_subscriptions_tweet_preview_api_enabled": true, "creator_subscriptions_tweet_preview_api_enabled": true,
"responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true,
"responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
"communities_web_enable_tweet_community_results_fetch": true,
"c9s_tweet_anatomy_moderator_badge_enabled": true, "c9s_tweet_anatomy_moderator_badge_enabled": true,
"articles_preview_enabled": true,
"tweetypie_unmention_optimization_enabled": true, "tweetypie_unmention_optimization_enabled": true,
"responsive_web_edit_tweet_api_enabled": true, "responsive_web_edit_tweet_api_enabled": true,
"graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
@ -25,31 +28,38 @@
"longform_notetweets_consumption_enabled": true, "longform_notetweets_consumption_enabled": true,
"responsive_web_twitter_article_tweet_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true,
"tweet_awards_web_tipping_enabled": false, "tweet_awards_web_tipping_enabled": false,
"creator_subscriptions_quote_tweet_preview_enabled": false,
"freedom_of_speech_not_reach_fetch_enabled": true, "freedom_of_speech_not_reach_fetch_enabled": true,
"standardized_nudges_misinfo": true, "standardized_nudges_misinfo": true,
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true,
"tweet_with_visibility_results_prefer_gql_media_interstitial_enabled": true,
"rweb_video_timestamps_enabled": true, "rweb_video_timestamps_enabled": true,
"longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_rich_text_read_enabled": true,
"longform_notetweets_inline_media_enabled": true, "longform_notetweets_inline_media_enabled": true,
"responsive_web_media_download_video_enabled": false,
"responsive_web_enhance_cards_enabled": false "responsive_web_enhance_cards_enabled": false
} }
}, },
"HomeLatestTimeline": { "HomeLatestTimeline": {
"queryId": "IjTuxEFmAb6DvzycVz4fHg", "queryId": "eL8vHLgEw2ZL9X9dKdakLQ",
"variables": { "variables": {
"count": 20, "count": 20,
"includePromotedContent": true, "includePromotedContent": true,
"latestControlAvailable": true, "latestControlAvailable": true,
"requestContext": "launch" "requestContext": "launch",
"seenTweetIds": [
"1349129669258448897"
]
}, },
"features": { "features": {
"rweb_tipjar_consumption_enabled": true,
"responsive_web_graphql_exclude_directive_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true,
"verified_phone_label_enabled": false, "verified_phone_label_enabled": false,
"creator_subscriptions_tweet_preview_api_enabled": true, "creator_subscriptions_tweet_preview_api_enabled": true,
"responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true,
"responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
"communities_web_enable_tweet_community_results_fetch": true,
"c9s_tweet_anatomy_moderator_badge_enabled": true, "c9s_tweet_anatomy_moderator_badge_enabled": true,
"articles_preview_enabled": true,
"tweetypie_unmention_optimization_enabled": true, "tweetypie_unmention_optimization_enabled": true,
"responsive_web_edit_tweet_api_enabled": true, "responsive_web_edit_tweet_api_enabled": true,
"graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
@ -57,29 +67,34 @@
"longform_notetweets_consumption_enabled": true, "longform_notetweets_consumption_enabled": true,
"responsive_web_twitter_article_tweet_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true,
"tweet_awards_web_tipping_enabled": false, "tweet_awards_web_tipping_enabled": false,
"creator_subscriptions_quote_tweet_preview_enabled": false,
"freedom_of_speech_not_reach_fetch_enabled": true, "freedom_of_speech_not_reach_fetch_enabled": true,
"standardized_nudges_misinfo": true, "standardized_nudges_misinfo": true,
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true,
"tweet_with_visibility_results_prefer_gql_media_interstitial_enabled": true,
"rweb_video_timestamps_enabled": true, "rweb_video_timestamps_enabled": true,
"longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_rich_text_read_enabled": true,
"longform_notetweets_inline_media_enabled": true, "longform_notetweets_inline_media_enabled": true,
"responsive_web_media_download_video_enabled": false,
"responsive_web_enhance_cards_enabled": false "responsive_web_enhance_cards_enabled": false
} }
}, },
"ListLatestTweetsTimeline": { "ListLatestTweetsTimeline": {
"queryId": "HjsWc-nwwHKYwHenbHm-tw", "queryId": "eL8vHLgEw2ZL9X9dKdakLQ",
"variables": { "variables": {
"listId": "1539453138322673664", "count": 20,
"count": 20 "includePromotedContent": true,
"latestControlAvailable": true
}, },
"features": { "features": {
"rweb_tipjar_consumption_enabled": true,
"responsive_web_graphql_exclude_directive_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true,
"verified_phone_label_enabled": false, "verified_phone_label_enabled": false,
"creator_subscriptions_tweet_preview_api_enabled": true, "creator_subscriptions_tweet_preview_api_enabled": true,
"responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true,
"responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
"communities_web_enable_tweet_community_results_fetch": true,
"c9s_tweet_anatomy_moderator_badge_enabled": true, "c9s_tweet_anatomy_moderator_badge_enabled": true,
"articles_preview_enabled": true,
"tweetypie_unmention_optimization_enabled": true, "tweetypie_unmention_optimization_enabled": true,
"responsive_web_edit_tweet_api_enabled": true, "responsive_web_edit_tweet_api_enabled": true,
"graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
@ -87,13 +102,14 @@
"longform_notetweets_consumption_enabled": true, "longform_notetweets_consumption_enabled": true,
"responsive_web_twitter_article_tweet_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true,
"tweet_awards_web_tipping_enabled": false, "tweet_awards_web_tipping_enabled": false,
"creator_subscriptions_quote_tweet_preview_enabled": false,
"freedom_of_speech_not_reach_fetch_enabled": true, "freedom_of_speech_not_reach_fetch_enabled": true,
"standardized_nudges_misinfo": true, "standardized_nudges_misinfo": true,
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true,
"tweet_with_visibility_results_prefer_gql_media_interstitial_enabled": true,
"rweb_video_timestamps_enabled": true, "rweb_video_timestamps_enabled": true,
"longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_rich_text_read_enabled": true,
"longform_notetweets_inline_media_enabled": true, "longform_notetweets_inline_media_enabled": true,
"responsive_web_media_download_video_enabled": false,
"responsive_web_enhance_cards_enabled": false "responsive_web_enhance_cards_enabled": false
} }
}, },
@ -361,7 +377,7 @@
} }
}, },
"TweetDetail": { "TweetDetail": {
"queryId": "B9_KmbkLhXt6jRwGjJrweg", "queryId": "zJvfJs3gSbrVhC0MKjt_OQ",
"variables": { "variables": {
"focalTweetId": "1349129669258448897", "focalTweetId": "1349129669258448897",
"referrer": "home", "referrer": "home",
@ -374,12 +390,15 @@
"withV2Timeline": true "withV2Timeline": true
}, },
"features": { "features": {
"rweb_tipjar_consumption_enabled": true,
"responsive_web_graphql_exclude_directive_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true,
"verified_phone_label_enabled": false, "verified_phone_label_enabled": false,
"creator_subscriptions_tweet_preview_api_enabled": true, "creator_subscriptions_tweet_preview_api_enabled": true,
"responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true,
"responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
"communities_web_enable_tweet_community_results_fetch": true,
"c9s_tweet_anatomy_moderator_badge_enabled": true, "c9s_tweet_anatomy_moderator_badge_enabled": true,
"articles_preview_enabled": true,
"tweetypie_unmention_optimization_enabled": true, "tweetypie_unmention_optimization_enabled": true,
"responsive_web_edit_tweet_api_enabled": true, "responsive_web_edit_tweet_api_enabled": true,
"graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
@ -387,21 +406,23 @@
"longform_notetweets_consumption_enabled": true, "longform_notetweets_consumption_enabled": true,
"responsive_web_twitter_article_tweet_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true,
"tweet_awards_web_tipping_enabled": false, "tweet_awards_web_tipping_enabled": false,
"creator_subscriptions_quote_tweet_preview_enabled": false,
"freedom_of_speech_not_reach_fetch_enabled": true, "freedom_of_speech_not_reach_fetch_enabled": true,
"standardized_nudges_misinfo": true, "standardized_nudges_misinfo": true,
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true,
"tweet_with_visibility_results_prefer_gql_media_interstitial_enabled": true,
"rweb_video_timestamps_enabled": true, "rweb_video_timestamps_enabled": true,
"longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_rich_text_read_enabled": true,
"longform_notetweets_inline_media_enabled": true, "longform_notetweets_inline_media_enabled": true,
"responsive_web_media_download_video_enabled": false,
"responsive_web_enhance_cards_enabled": false "responsive_web_enhance_cards_enabled": false
}, },
"fieldToggles": { "fieldToggles": {
"withArticleRichContentState": false "withArticleRichContentState": true,
"withArticlePlainText": false
} }
}, },
"TweetResultByRestId": { "TweetResultByRestId": {
"queryId": "MWY3AO9_I3rcP_L2A4FR4A", "queryId": "7xflPyRiUxGVbJd4uWmbfg",
"variables": { "variables": {
"tweetId": "1691730070669517096", "tweetId": "1691730070669517096",
"withCommunity": false, "withCommunity": false,
@ -410,7 +431,9 @@
}, },
"features": { "features": {
"creator_subscriptions_tweet_preview_api_enabled": true, "creator_subscriptions_tweet_preview_api_enabled": true,
"communities_web_enable_tweet_community_results_fetch": true,
"c9s_tweet_anatomy_moderator_badge_enabled": true, "c9s_tweet_anatomy_moderator_badge_enabled": true,
"articles_preview_enabled": true,
"tweetypie_unmention_optimization_enabled": true, "tweetypie_unmention_optimization_enabled": true,
"responsive_web_edit_tweet_api_enabled": true, "responsive_web_edit_tweet_api_enabled": true,
"graphql_is_translatable_rweb_tweet_is_translatable_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
@ -418,18 +441,24 @@
"longform_notetweets_consumption_enabled": true, "longform_notetweets_consumption_enabled": true,
"responsive_web_twitter_article_tweet_consumption_enabled": true, "responsive_web_twitter_article_tweet_consumption_enabled": true,
"tweet_awards_web_tipping_enabled": false, "tweet_awards_web_tipping_enabled": false,
"creator_subscriptions_quote_tweet_preview_enabled": false,
"freedom_of_speech_not_reach_fetch_enabled": true, "freedom_of_speech_not_reach_fetch_enabled": true,
"standardized_nudges_misinfo": true, "standardized_nudges_misinfo": true,
"tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled": true,
"tweet_with_visibility_results_prefer_gql_media_interstitial_enabled": true,
"rweb_video_timestamps_enabled": true, "rweb_video_timestamps_enabled": true,
"longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_rich_text_read_enabled": true,
"longform_notetweets_inline_media_enabled": true, "longform_notetweets_inline_media_enabled": true,
"rweb_tipjar_consumption_enabled": true,
"responsive_web_graphql_exclude_directive_enabled": true, "responsive_web_graphql_exclude_directive_enabled": true,
"verified_phone_label_enabled": false, "verified_phone_label_enabled": false,
"responsive_web_media_download_video_enabled": false,
"responsive_web_graphql_skip_user_profile_image_extensions_enabled": false, "responsive_web_graphql_skip_user_profile_image_extensions_enabled": false,
"responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_timeline_navigation_enabled": true,
"responsive_web_enhance_cards_enabled": false "responsive_web_enhance_cards_enabled": false
},
"fieldToggles": {
"withArticleRichContentState": true,
"withArticlePlainText": false
} }
}, },
"SearchTimeline": { "SearchTimeline": {