- General
- Tweets
- Tweet lookup by Tweet IDsGET
- Full archive search countsGET
- Recent search countsGET
- Sample streamGET
- Full-archive searchGET
- Recent searchGET
- Filtered streamGET
- Rules lookupGET
- Add/Delete rulesPOST
- Tweet lookup by Tweet IDGET
- Hide repliesPUT
- Returns Tweet objects liked by the provided User IDGET
- Causes the user (in the path) to like the specified tweetPOST
- Causes the user (in the path) to unlike the specified tweetDELETE
- User mention timeline by User IDGET
- Causes the user (in the path) to retweet the specified tweetPOST
- Causes the user (in the path) to unretweet the specified tweetDELETE
- User Tweets timeline by User IDGET
- Users
- Returns user objects that have liked the provided Tweet IDGET
- Returns user objects that have retweeted the provided Tweet IDGET
- User lookup by IDsGET
- User lookup by usernamesGET
- User lookup by usernameGET
- User lookup by IDGET
- Returns user objects that are blocked by provided user IDGET
- Block User by User IDPOST
- Returns user objects that follow the provided user IDGET
- Following by User IDGET
- Follow UserPOST
- Mute User by User IDPOST
- Unblock User by User IDDELETE
- Unfollow UserDELETE
- Unmute User by User IDDELETE
Returns user objects that follow the provided user ID
GET
/2/users/{id}/followers
Users
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.twitter.com/2/users//followers'
响应示例响应示例
200 - 示例 1
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Path 参数
id
必需
Query 参数
max_results
可选
pagination_token
可选
返回响应
🟢200The request was successful
application/json
Body
data
array[object (User) {14}]
可选
created_at
string <date-time>
可选
description
string
可选
entities
object
可选
id
#/components/schemas/UserID必需
location
string
可选
name
string
必需
pinned_tweet_id
#/components/schemas/TweetID可选
profile_image_url
string <uri>
可选
protected
boolean
可选
public_metrics
object
可选
url
string
可选
username
#/components/schemas/UserName必需
verified
boolean
可选
withheld
#/components/schemas/UserWithheld可选
errors
array[null (Problem) {16}]
可选
>= 1 items
object
GenericProblem
object
InvalidRequestProblem
object
ClientForbiddenProblem
object
ResourceNotFoundProblem
object
ResourceUnavailableProblem
object
ResourceUnauthorizedProblem
object
FieldUnauthorizedProblem
object
DisallowedResourceProblem
object
UnsupportedAuthenticationProblem
object
UsageCapExceededProblem
object
ConnectionExceptionProblem
object
ClientDisconnectedProblem
object
OperationalDisconnectProblem
object
RulesCapProblem
object
InvalidRuleProblem
object
DuplicateRuleProblem
includes
object (Expansions)
可选
media
array[object (Media) {4}]
可选
>= 1 items
places
array[object (Place) {8}]
可选
>= 1 items
polls
array[object (Poll) {5}]
可选
>= 1 items
tweets
array[object (Tweet) {20}]
可选
>= 1 items
users
array[object (User) {14}]
可选
>= 1 items
meta
object
可选
next_token
string
可选
正则匹配:
^[a-zA-Z0-9]+$
previous_token
string
可选
正则匹配:
^[a-zA-Z0-9]+$
result_count
integer
可选
🔴500500
修改于 2021-08-02 10:27:04