{"components":{"parameters":{"Cursor":{"description":"meta.cursor from the previous page. The server leaves it out when there is no further page. A page of posts can be empty and still have one.","in":"query","name":"cursor","schema":{"type":"string"}},"TweetFields":{"description":"Comma-separated post fields. The default is created_at, lang, author, metrics, reply, media, quote, repost, sensitive. id and text are always included. Naming fields replaces the default. all selects every field. Extra names: entities, card, poll, source, location, note, history, variants, labels.","example":"created_at,author,metrics","in":"query","name":"tweet.fields","schema":{"type":"string"}},"UserFields":{"description":"Comma-separated profile fields added to id, username, and name: verified, avatar, banner, bio, location, website, followers, following, posts, likes, media, joined, pinned, protected, suspended. all selects every field. Profile lookups already return the full profile.","example":"verified,followers","in":"query","name":"user.fields","schema":{"type":"string"}}},"responses":{"Error":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Failure"}}},"description":"The call did not return results. code is pass_required (401), invalid (400), blocked (400), not_found (404), suspended (403), protected (403), rate_limited (429), unavailable (503), or error (500).","headers":{"Retry-After":{"description":"Seconds to wait before calling again. Sent with 429.","schema":{"type":"integer"}}}}},"schemas":{"About":{"properties":{"account_based_in":{"type":"string"},"connection_source":{"type":"string"},"location_accurate":{"type":"boolean"}},"type":"object"},"AboutEnvelope":{"properties":{"data":{"$ref":"#/components/schemas/About"}},"required":["data"],"type":"object"},"Account":{"properties":{"avatar_url":{"type":"string"},"banner_url":{"type":"string"},"bio":{"type":"string"},"followers":{"type":"integer"},"following":{"type":"integer"},"id":{"type":"string"},"joined_at":{"format":"date-time","type":"string"},"likes":{"type":"integer"},"location":{"type":"string"},"media":{"type":"integer"},"name":{"type":"string"},"pinned_tweet_id":{"type":"string"},"posts":{"type":"integer"},"protected":{"type":"boolean"},"suspended":{"type":"boolean"},"username":{"type":"string"},"verified":{"enum":["blue","business","government"],"type":"string"},"website":{"type":"string"}},"required":["id","username"],"type":"object"},"AccountEnvelope":{"properties":{"data":{"$ref":"#/components/schemas/Account"}},"required":["data"],"type":"object"},"AccountPage":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Account"},"type":"array"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"],"type":"object"},"Card":{"properties":{"description":{"type":"string"},"image":{"type":"string"},"title":{"type":"string"},"type":{"type":"string"},"url":{"type":"string"}},"required":["type"],"type":"object"},"Choice":{"properties":{"label":{"type":"string"},"votes":{"type":"integer"}},"required":["label","votes"],"type":"object"},"Entity":{"properties":{"end":{"description":"Where it ends, counted the same way.","type":"integer"},"start":{"description":"Where the entity starts in text, counted in characters (Unicode code points), not bytes.","type":"integer"},"text":{"description":"A mention's display name.","type":"string"},"type":{"enum":["url","mention","hashtag","symbol"],"type":"string"},"url":{"description":"The full address of a link. For a mention, the profile path, such as /jack.","type":"string"}},"required":["type","start","end"],"type":"object"},"Failure":{"properties":{"errors":{"items":{"$ref":"#/components/schemas/FailureItem"},"type":"array"}},"required":["errors"],"type":"object"},"FailureItem":{"properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"],"type":"object"},"IdPage":{"properties":{"data":{"items":{"type":"string"},"type":"array"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"],"type":"object"},"List":{"properties":{"description":{"type":"string"},"id":{"type":"string"},"members":{"type":"integer"},"name":{"type":"string"},"subscribers":{"type":"integer"},"username":{"type":"string"}},"required":["id","name"],"type":"object"},"ListPage":{"properties":{"data":{"items":{"$ref":"#/components/schemas/List"},"type":"array"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"],"type":"object"},"Media":{"properties":{"alt":{"type":"string"},"duration_ms":{"type":"integer"},"height":{"type":"integer"},"preview_url":{"type":"string"},"type":{"enum":["photo","video","gif"],"type":"string"},"url":{"type":"string"},"variants":{"description":"Present when tweet.fields includes variants.","items":{"$ref":"#/components/schemas/Variant"},"type":"array"},"width":{"type":"integer"}},"required":["type","url"],"type":"object"},"Meta":{"properties":{"cursor":{"type":"string"},"query":{"description":"The search text sent upstream, after filters were applied.","type":"string"},"result_count":{"minimum":0,"type":"integer"}},"required":["result_count"],"type":"object"},"Metrics":{"description":"A missing count is zero.","properties":{"likes":{"type":"integer"},"quotes":{"type":"integer"},"replies":{"type":"integer"},"reposts":{"type":"integer"},"views":{"type":"integer"}},"type":"object"},"Poll":{"properties":{"ends_at":{"format":"date-time","type":"string"},"options":{"items":{"$ref":"#/components/schemas/Choice"},"type":"array"},"votes":{"type":"integer"}},"required":["options","votes"],"type":"object"},"Post":{"properties":{"ai_generated":{"type":"boolean"},"author":{"$ref":"#/components/schemas/Account"},"card":{"$ref":"#/components/schemas/Card"},"conversation_id":{"type":"string"},"created_at":{"format":"date-time","type":"string"},"entities":{"items":{"$ref":"#/components/schemas/Entity"},"type":"array"},"history":{"items":{"type":"string"},"type":"array"},"id":{"type":"string"},"in_reply_to_status_id":{"type":"string"},"lang":{"type":"string"},"location":{"type":"string"},"media":{"items":{"$ref":"#/components/schemas/Media"},"type":"array"},"metrics":{"$ref":"#/components/schemas/Metrics"},"note":{"type":"string"},"paid_promotion":{"type":"boolean"},"pinned":{"type":"boolean"},"poll":{"$ref":"#/components/schemas/Poll"},"quote":{"$ref":"#/components/schemas/Post"},"reply_to":{"items":{"type":"string"},"type":"array"},"repost_id":{"type":"string"},"reposted_by":{"$ref":"#/components/schemas/Account"},"sensitive":{"type":"boolean"},"source":{"type":"string"},"text":{"type":"string"},"unavailable":{"type":"string"}},"required":["id","text"],"type":"object"},"PostEnvelope":{"properties":{"data":{"$ref":"#/components/schemas/Post"}},"required":["data"],"type":"object"},"PostPage":{"properties":{"data":{"items":{"$ref":"#/components/schemas/Post"},"type":"array"},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["data","meta"],"type":"object"},"RawSearchTimeline":{"additionalProperties":true,"description":"X's SearchTimeline response, passed on byte for byte when a search is called with format=raw. The shape is X's and X changes it without notice, so only its outline is described here. The results are the entries in data.search_by_raw_query.search_timeline.timeline.instructions. The cursor entry whose cursorType is Bottom holds the next page's cursor as value; on a later page X can send that entry in a TimelineReplaceEntry instruction. The last page carries a TimelineTerminateTimeline instruction whose direction is Bottom or TopAndBottom, with or without results on it; X usually still sends a cursor there, a new token each time. Nothing is deduplicated or dropped. Fields about the viewer, such as favorited and following, describe the account the search ran on.","properties":{"data":{"additionalProperties":true,"properties":{"search_by_raw_query":{"additionalProperties":true,"properties":{"search_timeline":{"additionalProperties":true,"properties":{"timeline":{"additionalProperties":true,"properties":{"instructions":{"items":{"additionalProperties":true,"type":"object"},"type":"array"}},"type":"object"}},"type":"object"}},"type":"object"}},"type":"object"},"errors":{"description":"X's own errors for single fields it could not fill, when it sent them beside data. A call that fails as a whole does not answer with this: it answers with Failure and a status that is not 200.","items":{"additionalProperties":true,"type":"object"},"type":"array"}},"required":["data"],"type":"object"},"Variant":{"properties":{"bitrate":{"type":"integer"},"content_type":{"type":"string"},"height":{"type":"integer"},"url":{"type":"string"}},"required":["content_type","url"],"type":"object"}},"securitySchemes":{"apiKey":{"description":"The same API key, without the Bearer prefix.","in":"header","name":"X-Api-Key","type":"apiKey"},"bearerAuth":{"description":"Search-pass API key. The token is tpk_ plus 64 hex digits. Create it on /search-pass. It is shown once.","scheme":"bearer","type":"http"},"cookieAuth":{"description":"Session cookie from signing in on /search-pass/login.","in":"cookie","name":"paid_search_pass","type":"apiKey"}}},"info":{"description":"Compact JSON for search, profiles, posts, lists, communities, and follow graphs. A search pass is required: send the API key, the paid_search_pass cookie, or call from a whitelisted address. Empty fields are omitted. Post and user ids are strings. A search can answer with X's own response instead, unchanged, when it is called with format=raw.","title":"teapawt API","version":"0.19.1"},"openapi":"3.1.0","paths":{"/api/communities/{id}/tweets":{"get":{"description":"Posts in a community. ranking=latest is the default. ranking=top asks for relevance.","operationId":"communityTweets","parameters":[{"description":"Community id.","in":"path","name":"id","required":true,"schema":{"pattern":"^[0-9]{1,19}$","type":"string"}},{"description":"latest is Recency. top is Relevance.","in":"query","name":"ranking","schema":{"enum":["latest","top"],"type":"string"}},{"$ref":"#/components/parameters/TweetFields"},{"$ref":"#/components/parameters/UserFields"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostPage"}}},"description":"Posts in the community."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"CommunityTweetsTimeline"}},"/api/lists/{id}/tweets":{"get":{"description":"Latest posts in a list.","operationId":"listLatestTweets","parameters":[{"description":"List id.","in":"path","name":"id","required":true,"schema":{"pattern":"^[0-9]{1,19}$","type":"string"}},{"$ref":"#/components/parameters/TweetFields"},{"$ref":"#/components/parameters/UserFields"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostPage"}}},"description":"Posts in the list."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"ListLatestTweetsTimeline"}},"/api/search":{"get":{"description":"Search posts, people, or lists. The same filters as the search page apply. format=raw answers with X's SearchTimeline response instead of this API's JSON.","operationId":"searchTimeline","parameters":[{"description":"Search text. Operators such as from:name, since:YYYY-MM-DD, until:YYYY-MM-DD, min_faves:N, and filter:images work inside it. Required unless from or another filter is set. At most 512 characters.","in":"query","name":"q","schema":{"maxLength":512,"type":"string"}},{"description":"Result tab. latest and tweets are the same. Default latest.","in":"query","name":"f","schema":{"enum":["latest","tweets","top","media","users","lists"],"type":"string"}},{"$ref":"#/components/parameters/Cursor"},{"$ref":"#/components/parameters/TweetFields"},{"$ref":"#/components/parameters/UserFields"},{"description":"Only posts from these accounts. Commas separate handles.","in":"query","name":"from","schema":{"type":"string"}},{"description":"First day to include, YYYY-MM-DD.","in":"query","name":"since","schema":{"format":"date","type":"string"}},{"description":"Last day to include, YYYY-MM-DD.","in":"query","name":"until","schema":{"format":"date","type":"string"}},{"description":"Minimum likes.","in":"query","name":"min_faves","schema":{"minimum":0,"type":"integer"}},{"description":"Comma-separated include filters, such as images,links. Same names as the f- toggles, without the prefix.","example":"images,links","in":"query","name":"filters","schema":{"type":"string"}},{"description":"Comma-separated exclude filters, such as replies,nativeretweets.","example":"replies","in":"query","name":"exclude","schema":{"type":"string"}},{"description":"Only posts matching media.","in":"query","name":"f-media","schema":{"enum":["on","true","1","yes"],"type":"string"}},{"description":"Only posts matching images.","in":"query","name":"f-images","schema":{"enum":["on","true","1","yes"],"type":"string"}},{"description":"Only posts matching videos.","in":"query","name":"f-videos","schema":{"enum":["on","true","1","yes"],"type":"string"}},{"description":"Only posts matching native_video.","in":"query","name":"f-native_video","schema":{"enum":["on","true","1","yes"],"type":"string"}},{"description":"Only posts matching links.","in":"query","name":"f-links","schema":{"enum":["on","true","1","yes"],"type":"string"}},{"description":"Only posts matching news.","in":"query","name":"f-news","schema":{"enum":["on","true","1","yes"],"type":"string"}},{"description":"Only posts matching quote.","in":"query","name":"f-quote","schema":{"enum":["on","true","1","yes"],"type":"string"}},{"description":"Only posts matching replies.","in":"query","name":"f-replies","schema":{"enum":["on","true","1","yes"],"type":"string"}},{"description":"Only posts matching spaces.","in":"query","name":"f-spaces","schema":{"enum":["on","true","1","yes"],"type":"string"}},{"description":"Only posts matching verified.","in":"query","name":"f-verified","schema":{"enum":["on","true","1","yes"],"type":"string"}},{"description":"Only posts matching nativeretweets.","in":"query","name":"f-nativeretweets","schema":{"enum":["on","true","1","yes"],"type":"string"}},{"description":"Hide posts matching media.","in":"query","name":"e-media","schema":{"enum":["on","true","1","yes"],"type":"string"}},{"description":"Hide posts matching images.","in":"query","name":"e-images","schema":{"enum":["on","true","1","yes"],"type":"string"}},{"description":"Hide posts matching videos.","in":"query","name":"e-videos","schema":{"enum":["on","true","1","yes"],"type":"string"}},{"description":"Hide posts matching native_video.","in":"query","name":"e-native_video","schema":{"enum":["on","true","1","yes"],"type":"string"}},{"description":"Hide posts matching links.","in":"query","name":"e-links","schema":{"enum":["on","true","1","yes"],"type":"string"}},{"description":"Hide posts matching news.","in":"query","name":"e-news","schema":{"enum":["on","true","1","yes"],"type":"string"}},{"description":"Hide posts matching quote.","in":"query","name":"e-quote","schema":{"enum":["on","true","1","yes"],"type":"string"}},{"description":"Hide posts matching replies.","in":"query","name":"e-replies","schema":{"enum":["on","true","1","yes"],"type":"string"}},{"description":"Hide posts matching spaces.","in":"query","name":"e-spaces","schema":{"enum":["on","true","1","yes"],"type":"string"}},{"description":"Hide posts matching nativeretweets.","in":"query","name":"e-nativeretweets","schema":{"enum":["on","true","1","yes"],"type":"string"}},{"description":"compact is this API's JSON: PostPage, AccountPage, or ListPage. raw is X's SearchTimeline response as it arrived, byte for byte, with nothing mapped or left out: RawSearchTimeline. With raw, q, f, the filters, and cursor work the same, the next cursor is the value of the cursor entry whose cursorType is Bottom, and tweet.fields and user.fields are refused.","in":"query","name":"format","schema":{"default":"compact","enum":["compact","raw"],"type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/PostPage"},{"$ref":"#/components/schemas/AccountPage"},{"$ref":"#/components/schemas/ListPage"},{"$ref":"#/components/schemas/RawSearchTimeline"}]}}},"description":"Search results. Posts unless f is users or lists. With format=raw, the body X sent, on any f."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"SearchTimeline"}},"/api/tweets":{"get":{"description":"Up to 100 posts by id.","operationId":"tweetsByIds","parameters":[{"description":"Comma-separated post ids.","example":"20,21","in":"query","name":"ids","required":true,"schema":{"type":"string"}},{"$ref":"#/components/parameters/TweetFields"},{"$ref":"#/components/parameters/UserFields"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostPage"}}},"description":"The posts, in the requested order when X returned them."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"TweetResultsByRestIds"}},"/api/tweets/{id}":{"get":{"description":"One post.","operationId":"tweetDetail","parameters":[{"description":"Post id.","in":"path","name":"id","required":true,"schema":{"pattern":"^[0-9]{1,19}$","type":"string"}},{"$ref":"#/components/parameters/TweetFields"},{"$ref":"#/components/parameters/UserFields"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostEnvelope"}}},"description":"The post."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"TweetDetail"}},"/api/tweets/{id}/retweeters":{"get":{"description":"Accounts that reposted a post.","operationId":"retweeters","parameters":[{"description":"Post id.","in":"path","name":"id","required":true,"schema":{"pattern":"^[0-9]{1,19}$","type":"string"}},{"$ref":"#/components/parameters/TweetFields"},{"$ref":"#/components/parameters/UserFields"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountPage"}}},"description":"Accounts that reposted it."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"Retweeters"}},"/api/users/id/{id}":{"get":{"description":"One profile looked up by numeric id.","operationId":"userByRestId","parameters":[{"description":"User id.","in":"path","name":"id","required":true,"schema":{"pattern":"^[0-9]{1,19}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountEnvelope"}}},"description":"The profile."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"UserByRestId"}},"/api/users/{username}":{"get":{"description":"One profile, without its posts.","operationId":"userByScreenName","parameters":[{"description":"X handle. A leading @ is accepted.","in":"path","name":"username","required":true,"schema":{"pattern":"^@?[A-Za-z0-9_]{1,15}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountEnvelope"}}},"description":"The profile."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"UserByScreenName"}},"/api/users/{username}/about":{"get":{"description":"Where X says the account is based, and the connection source.","operationId":"aboutAccount","parameters":[{"description":"X handle. A leading @ is accepted.","in":"path","name":"username","required":true,"schema":{"pattern":"^@?[A-Za-z0-9_]{1,15}$","type":"string"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AboutEnvelope"}}},"description":"About this account. Fields are omitted when X did not send them."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"AboutAccountQuery"}},"/api/users/{username}/followers":{"get":{"description":"Accounts that follow this user. count defaults to 20 and cannot exceed 200.","operationId":"followersList","parameters":[{"description":"X handle. A leading @ is accepted.","in":"path","name":"username","required":true,"schema":{"pattern":"^@?[A-Za-z0-9_]{1,15}$","type":"string"}},{"$ref":"#/components/parameters/TweetFields"},{"$ref":"#/components/parameters/UserFields"},{"$ref":"#/components/parameters/Cursor"},{"in":"query","name":"count","schema":{"maximum":200,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountPage"}}},"description":"Accounts that follow them."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"1.1/followers/list"}},"/api/users/{username}/following":{"get":{"description":"Accounts this user follows, as profiles.","operationId":"following","parameters":[{"description":"X handle. A leading @ is accepted.","in":"path","name":"username","required":true,"schema":{"pattern":"^@?[A-Za-z0-9_]{1,15}$","type":"string"}},{"$ref":"#/components/parameters/TweetFields"},{"$ref":"#/components/parameters/UserFields"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountPage"}}},"description":"Accounts they follow."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"Following"}},"/api/users/{username}/following/ids":{"get":{"description":"Ids of accounts this user follows. count defaults to 5000 and cannot exceed 5000.","operationId":"friendIds","parameters":[{"description":"X handle. A leading @ is accepted.","in":"path","name":"username","required":true,"schema":{"pattern":"^@?[A-Za-z0-9_]{1,15}$","type":"string"}},{"$ref":"#/components/parameters/TweetFields"},{"$ref":"#/components/parameters/UserFields"},{"$ref":"#/components/parameters/Cursor"},{"in":"query","name":"count","schema":{"maximum":5000,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IdPage"}}},"description":"Followed account ids."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"1.1/friends/ids"}},"/api/users/{username}/friends":{"get":{"description":"Accounts this user follows. count defaults to 20 and cannot exceed 200.","operationId":"friendsList","parameters":[{"description":"X handle. A leading @ is accepted.","in":"path","name":"username","required":true,"schema":{"pattern":"^@?[A-Za-z0-9_]{1,15}$","type":"string"}},{"$ref":"#/components/parameters/TweetFields"},{"$ref":"#/components/parameters/UserFields"},{"$ref":"#/components/parameters/Cursor"},{"in":"query","name":"count","schema":{"maximum":200,"minimum":1,"type":"integer"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountPage"}}},"description":"Accounts they follow."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"1.1/friends/list"}},"/api/users/{username}/tweets":{"get":{"description":"Posts from one account.","operationId":"userTweets","parameters":[{"description":"X handle. A leading @ is accepted.","in":"path","name":"username","required":true,"schema":{"pattern":"^@?[A-Za-z0-9_]{1,15}$","type":"string"}},{"$ref":"#/components/parameters/TweetFields"},{"$ref":"#/components/parameters/UserFields"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostPage"}}},"description":"The account's posts."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"User tweets"}},"/api/users/{username}/with_replies":{"get":{"description":"Posts and replies from one account.","operationId":"userWithReplies","parameters":[{"description":"X handle. A leading @ is accepted.","in":"path","name":"username","required":true,"schema":{"pattern":"^@?[A-Za-z0-9_]{1,15}$","type":"string"}},{"$ref":"#/components/parameters/TweetFields"},{"$ref":"#/components/parameters/UserFields"},{"$ref":"#/components/parameters/Cursor"}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostPage"}}},"description":"The account's posts and replies."},"400":{"$ref":"#/components/responses/Error"},"401":{"$ref":"#/components/responses/Error"},"403":{"$ref":"#/components/responses/Error"},"404":{"$ref":"#/components/responses/Error"},"429":{"$ref":"#/components/responses/Error"},"500":{"$ref":"#/components/responses/Error"},"503":{"$ref":"#/components/responses/Error"}},"summary":"UserWithProfileTweetsAndRepliesQueryV2"}}},"security":[{"bearerAuth":[]},{"apiKey":[]},{"cookieAuth":[]}],"servers":[{"url":"https://teapawt.org"}]}