id
parameter.
Key | Value |
id | 2244994945 (user ID) |
id
and name
.
If you would like to receive additional fields beyond id
and name
, you will have to specify those fields in your request with the field
and/or expansion
parameters.
For this exercise, we will request a three additional sets of fields from different objects:
follower_count
field in the primary List object.tweet.created_at
field in the associated user object.Key | Value | Returned fields |
list.fields | follower_count | follower_count |
expansions | owner_id | includes.users.id, <br/>includes.users.name, <br/>includes.users.username |
user.fields | created_at | includes.users.created_at |
https://api.x.com/2/users/2244994945/pinned_lists?expansions=owner_id&list.fields=follower_count&user.fields=created_at
Step four: Make your request and review your response
Once you have everything set up, hit the “Send” button, and you will receive a similar response to the following example response: