mirror of
https://github.com/thegeneralist01/twitter-openapi
synced 2026-01-11 15:40:26 +01:00
401 lines
16 KiB
YAML
401 lines
16 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
|
|
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
|
|
ListTweetsTimelineResponse:
|
|
properties:
|
|
data:
|
|
$ref: '#/components/schemas/ListTweetsTimelineData'
|
|
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: header
|
|
name: user-agent
|
|
required: true
|
|
schema:
|
|
default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
|
|
like Gecko) Chrome/112.0.0.0 Safari/537.36
|
|
description: UserAgent, some APIs may be rejected if changed.
|
|
type: string
|
|
- in: header
|
|
name: authorization
|
|
required: true
|
|
schema:
|
|
default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
|
|
description: It is a constant value and does not need to be changed.
|
|
type: string
|
|
- in: header
|
|
name: x-twitter-active-user
|
|
required: true
|
|
schema:
|
|
default: 'yes'
|
|
description: Unknown what this value means.
|
|
type: string
|
|
- in: header
|
|
name: x-twitter-client-language
|
|
required: true
|
|
schema:
|
|
default: en
|
|
description: language code.
|
|
type: string
|
|
- in: path
|
|
name: pathQueryId
|
|
required: true
|
|
schema:
|
|
default: zhX91JE87mWvfprhYE97xA
|
|
example: zhX91JE87mWvfprhYE97xA
|
|
type: string
|
|
- in: query
|
|
name: queryId
|
|
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: header
|
|
name: user-agent
|
|
required: true
|
|
schema:
|
|
default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
|
|
like Gecko) Chrome/112.0.0.0 Safari/537.36
|
|
description: UserAgent, some APIs may be rejected if changed.
|
|
type: string
|
|
- in: header
|
|
name: authorization
|
|
required: true
|
|
schema:
|
|
default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
|
|
description: It is a constant value and does not need to be changed.
|
|
type: string
|
|
- in: header
|
|
name: x-twitter-active-user
|
|
required: true
|
|
schema:
|
|
default: 'yes'
|
|
description: Unknown what this value means.
|
|
type: string
|
|
- in: header
|
|
name: x-twitter-client-language
|
|
required: true
|
|
schema:
|
|
default: en
|
|
description: language code.
|
|
type: string
|
|
- in: path
|
|
name: pathQueryId
|
|
required: true
|
|
schema:
|
|
default: HCosKfLNW1AcOo3la3mMgg
|
|
example: HCosKfLNW1AcOo3la3mMgg
|
|
type: string
|
|
- in: query
|
|
name: queryId
|
|
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: header
|
|
name: user-agent
|
|
required: true
|
|
schema:
|
|
default: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML,
|
|
like Gecko) Chrome/112.0.0.0 Safari/537.36
|
|
description: UserAgent, some APIs may be rejected if changed.
|
|
type: string
|
|
- in: header
|
|
name: authorization
|
|
required: true
|
|
schema:
|
|
default: Bearer AAAAAAAAAAAAAAAAAAAAANRILgAAAAAAnNwIzUejRCOuH5E6I8xnZz4puTs%3D1Zv7ttfk8LF81IUq16cHjhLTvJu4FA33AGWWjCpTnA
|
|
description: It is a constant value and does not need to be changed.
|
|
type: string
|
|
- in: header
|
|
name: x-twitter-active-user
|
|
required: true
|
|
schema:
|
|
default: 'yes'
|
|
description: Unknown what this value means.
|
|
type: string
|
|
- in: header
|
|
name: x-twitter-client-language
|
|
required: true
|
|
schema:
|
|
default: en
|
|
description: language code.
|
|
type: string
|
|
- in: path
|
|
name: pathQueryId
|
|
required: true
|
|
schema:
|
|
default: 2TemLyqrMpTeAmysdbnVqw
|
|
example: 2TemLyqrMpTeAmysdbnVqw
|
|
type: string
|
|
- in: query
|
|
name: queryId
|
|
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/ListTweetsTimelineResponse'
|
|
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
|