mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +01:00
408 lines
18 KiB
YAML
408 lines
18 KiB
YAML
components:
|
|
schemas:
|
|
HomeTimelineHome:
|
|
properties:
|
|
home_timeline_urt:
|
|
$ref: ./../schemas/timeline.yaml#/components/schemas/Timeline
|
|
required:
|
|
- home_timeline_urt
|
|
HomeTimelineResponseData:
|
|
properties:
|
|
home:
|
|
$ref: '#/components/schemas/HomeTimelineHome'
|
|
required:
|
|
- home
|
|
ListLatestTweetsTimelineResponse:
|
|
properties:
|
|
data:
|
|
$ref: '#/components/schemas/ListTweetsTimelineData'
|
|
required:
|
|
- data
|
|
ListTweetsTimeline:
|
|
properties:
|
|
timeline:
|
|
$ref: ./../schemas/timeline.yaml#/components/schemas/Timeline
|
|
required:
|
|
- timeline
|
|
ListTweetsTimelineData:
|
|
properties:
|
|
list:
|
|
$ref: '#/components/schemas/ListTweetsTimelineList'
|
|
required:
|
|
- list
|
|
ListTweetsTimelineList:
|
|
properties:
|
|
tweets_timeline:
|
|
$ref: '#/components/schemas/ListTweetsTimeline'
|
|
required:
|
|
- tweets_timeline
|
|
SearchByRawQuery:
|
|
properties:
|
|
search_timeline:
|
|
$ref: '#/components/schemas/SearchTimeline'
|
|
required:
|
|
- search_timeline
|
|
SearchTimeline:
|
|
properties:
|
|
timeline:
|
|
$ref: ./../schemas/timeline.yaml#/components/schemas/Timeline
|
|
required:
|
|
- timeline
|
|
SearchTimelineData:
|
|
properties:
|
|
search_by_raw_query:
|
|
$ref: '#/components/schemas/SearchByRawQuery'
|
|
required:
|
|
- search_by_raw_query
|
|
SearchTimelineResponse:
|
|
properties:
|
|
data:
|
|
$ref: '#/components/schemas/SearchTimelineData'
|
|
required:
|
|
- data
|
|
TimelineResponse:
|
|
properties:
|
|
data:
|
|
$ref: '#/components/schemas/HomeTimelineResponseData'
|
|
required:
|
|
- data
|
|
info:
|
|
title: Twitter OpenAPI
|
|
version: 0.0.1
|
|
openapi: 3.0.3
|
|
paths:
|
|
/graphql/{pathQueryId}/HomeLatestTimeline:
|
|
get:
|
|
description: get tweet list of timeline
|
|
operationId: getHomeLatestTimeline
|
|
parameters:
|
|
- in: path
|
|
name: pathQueryId
|
|
required: true
|
|
schema:
|
|
default: zhX91JE87mWvfprhYE97xA
|
|
example: zhX91JE87mWvfprhYE97xA
|
|
type: string
|
|
- in: query
|
|
name: variables
|
|
required: true
|
|
schema:
|
|
default: '{"count": 20, "includePromotedContent": true, "latestControlAvailable":
|
|
true, "requestContext": "launch"}'
|
|
example: '{"count": 20, "includePromotedContent": true, "latestControlAvailable":
|
|
true, "requestContext": "launch"}'
|
|
type: string
|
|
- in: query
|
|
name: features
|
|
required: true
|
|
schema:
|
|
default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
|
true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
|
|
true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
|
|
true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
|
|
true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
|
|
true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
|
|
false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
|
false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
|
|
false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
|
|
false}'
|
|
example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
|
true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
|
|
true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
|
|
true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
|
|
true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
|
|
true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
|
|
false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
|
false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
|
|
false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
|
|
false}'
|
|
type: string
|
|
responses:
|
|
'200':
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/TimelineResponse'
|
|
description: Successful operation
|
|
headers:
|
|
x-connection-hash:
|
|
schema:
|
|
type: string
|
|
x-rate-limit-limit:
|
|
schema:
|
|
type: integer
|
|
x-rate-limit-remaining:
|
|
schema:
|
|
type: integer
|
|
x-rate-limit-reset:
|
|
schema:
|
|
type: integer
|
|
x-response-time:
|
|
schema:
|
|
type: integer
|
|
x-tfe-preserve-body:
|
|
schema:
|
|
type: boolean
|
|
x-transaction-id:
|
|
schema:
|
|
type: string
|
|
x-twitter-response-tags:
|
|
schema:
|
|
type: string
|
|
tags:
|
|
- tweet
|
|
/graphql/{pathQueryId}/HomeTimeline:
|
|
get:
|
|
description: get tweet list of timeline
|
|
operationId: getHomeTimeline
|
|
parameters:
|
|
- in: path
|
|
name: pathQueryId
|
|
required: true
|
|
schema:
|
|
default: HCosKfLNW1AcOo3la3mMgg
|
|
example: HCosKfLNW1AcOo3la3mMgg
|
|
type: string
|
|
- in: query
|
|
name: variables
|
|
required: true
|
|
schema:
|
|
default: '{"count": 20, "includePromotedContent": true, "latestControlAvailable":
|
|
true, "requestContext": "launch", "withCommunity": true}'
|
|
example: '{"count": 20, "includePromotedContent": true, "latestControlAvailable":
|
|
true, "requestContext": "launch", "withCommunity": true}'
|
|
type: string
|
|
- in: query
|
|
name: features
|
|
required: true
|
|
schema:
|
|
default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
|
true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
|
|
true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
|
|
true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
|
|
true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
|
|
true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
|
|
false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
|
false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
|
|
false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
|
|
false}'
|
|
example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
|
true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
|
|
true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
|
|
true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
|
|
true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
|
|
true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
|
|
false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
|
false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
|
|
false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
|
|
false}'
|
|
type: string
|
|
responses:
|
|
'200':
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/TimelineResponse'
|
|
description: Successful operation
|
|
headers:
|
|
x-connection-hash:
|
|
schema:
|
|
type: string
|
|
x-rate-limit-limit:
|
|
schema:
|
|
type: integer
|
|
x-rate-limit-remaining:
|
|
schema:
|
|
type: integer
|
|
x-rate-limit-reset:
|
|
schema:
|
|
type: integer
|
|
x-response-time:
|
|
schema:
|
|
type: integer
|
|
x-tfe-preserve-body:
|
|
schema:
|
|
type: boolean
|
|
x-transaction-id:
|
|
schema:
|
|
type: string
|
|
x-twitter-response-tags:
|
|
schema:
|
|
type: string
|
|
tags:
|
|
- tweet
|
|
/graphql/{pathQueryId}/ListLatestTweetsTimeline:
|
|
get:
|
|
description: get tweet list of timeline
|
|
operationId: getListLatestTweetsTimeline
|
|
parameters:
|
|
- in: path
|
|
name: pathQueryId
|
|
required: true
|
|
schema:
|
|
default: 2TemLyqrMpTeAmysdbnVqw
|
|
example: 2TemLyqrMpTeAmysdbnVqw
|
|
type: string
|
|
- in: query
|
|
name: variables
|
|
required: true
|
|
schema:
|
|
default: '{"listId": "53044119", "count": 20}'
|
|
example: '{"listId": "53044119", "count": 20}'
|
|
type: string
|
|
- in: query
|
|
name: features
|
|
required: true
|
|
schema:
|
|
default: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
|
true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
|
|
true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
|
|
true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
|
|
true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
|
|
true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
|
|
false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
|
false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
|
|
false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
|
|
false}'
|
|
example: '{"blue_business_profile_image_shape_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
|
true, "verified_phone_label_enabled": false, "responsive_web_graphql_timeline_navigation_enabled":
|
|
true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
false, "tweetypie_unmention_optimization_enabled": true, "vibe_api_enabled":
|
|
true, "responsive_web_edit_tweet_api_enabled": true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled":
|
|
true, "view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
|
|
true, "tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
|
|
false, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
|
false, "interactive_text_enabled": true, "responsive_web_text_conversations_enabled":
|
|
false, "longform_notetweets_rich_text_read_enabled": true, "responsive_web_enhance_cards_enabled":
|
|
false}'
|
|
type: string
|
|
responses:
|
|
'200':
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/ListLatestTweetsTimelineResponse'
|
|
description: Successful operation
|
|
headers:
|
|
x-connection-hash:
|
|
schema:
|
|
type: string
|
|
x-rate-limit-limit:
|
|
schema:
|
|
type: integer
|
|
x-rate-limit-remaining:
|
|
schema:
|
|
type: integer
|
|
x-rate-limit-reset:
|
|
schema:
|
|
type: integer
|
|
x-response-time:
|
|
schema:
|
|
type: integer
|
|
x-tfe-preserve-body:
|
|
schema:
|
|
type: boolean
|
|
x-transaction-id:
|
|
schema:
|
|
type: string
|
|
x-twitter-response-tags:
|
|
schema:
|
|
type: string
|
|
tags:
|
|
- tweet
|
|
/graphql/{pathQueryId}/SearchTimeline:
|
|
get:
|
|
description: search tweet list. product:[Top, Latest, People, Photos, Videos]
|
|
operationId: getSearchTimeline
|
|
parameters:
|
|
- in: path
|
|
name: pathQueryId
|
|
required: true
|
|
schema:
|
|
default: L1VfBERtzc3VkBBT0YAYHA
|
|
example: L1VfBERtzc3VkBBT0YAYHA
|
|
type: string
|
|
- in: query
|
|
name: variables
|
|
required: true
|
|
schema:
|
|
default: '{"rawQuery": "elonmusk", "count": 20, "querySource": "typed_query",
|
|
"product": "Top"}'
|
|
example: '{"rawQuery": "elonmusk", "count": 20, "querySource": "typed_query",
|
|
"product": "Top"}'
|
|
type: string
|
|
- in: query
|
|
name: features
|
|
required: true
|
|
schema:
|
|
default: '{"rweb_lists_timeline_redesign_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
|
true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled":
|
|
true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
false, "tweetypie_unmention_optimization_enabled": true, "responsive_web_edit_tweet_api_enabled":
|
|
true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
|
|
"view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
|
|
true, "responsive_web_twitter_article_tweet_consumption_enabled": false,
|
|
"tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
|
|
true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
|
true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled":
|
|
true, "responsive_web_media_download_video_enabled": false, "responsive_web_enhance_cards_enabled":
|
|
false}'
|
|
example: '{"rweb_lists_timeline_redesign_enabled": true, "responsive_web_graphql_exclude_directive_enabled":
|
|
true, "verified_phone_label_enabled": false, "creator_subscriptions_tweet_preview_api_enabled":
|
|
true, "responsive_web_graphql_timeline_navigation_enabled": true, "responsive_web_graphql_skip_user_profile_image_extensions_enabled":
|
|
false, "tweetypie_unmention_optimization_enabled": true, "responsive_web_edit_tweet_api_enabled":
|
|
true, "graphql_is_translatable_rweb_tweet_is_translatable_enabled": true,
|
|
"view_counts_everywhere_api_enabled": true, "longform_notetweets_consumption_enabled":
|
|
true, "responsive_web_twitter_article_tweet_consumption_enabled": false,
|
|
"tweet_awards_web_tipping_enabled": false, "freedom_of_speech_not_reach_fetch_enabled":
|
|
true, "standardized_nudges_misinfo": true, "tweet_with_visibility_results_prefer_gql_limited_actions_policy_enabled":
|
|
true, "longform_notetweets_rich_text_read_enabled": true, "longform_notetweets_inline_media_enabled":
|
|
true, "responsive_web_media_download_video_enabled": false, "responsive_web_enhance_cards_enabled":
|
|
false}'
|
|
type: string
|
|
- in: query
|
|
name: fieldToggles
|
|
required: true
|
|
schema:
|
|
default: '{"withArticleRichContentState": false}'
|
|
example: '{"withArticleRichContentState": false}'
|
|
type: string
|
|
responses:
|
|
'200':
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/SearchTimelineResponse'
|
|
description: Successful operation
|
|
headers:
|
|
x-connection-hash:
|
|
schema:
|
|
type: string
|
|
x-rate-limit-limit:
|
|
schema:
|
|
type: integer
|
|
x-rate-limit-remaining:
|
|
schema:
|
|
type: integer
|
|
x-rate-limit-reset:
|
|
schema:
|
|
type: integer
|
|
x-response-time:
|
|
schema:
|
|
type: integer
|
|
x-tfe-preserve-body:
|
|
schema:
|
|
type: boolean
|
|
x-transaction-id:
|
|
schema:
|
|
type: string
|
|
x-twitter-response-tags:
|
|
schema:
|
|
type: string
|
|
tags:
|
|
- tweet
|