geduldig / TwitterAPI

Minimal python wrapper for Twitter's REST and Streaming APIs
936 stars 263 forks source link

Question: how do I acquire `screen_name` using `author_id`?? #207

Closed alexge233 closed 2 years ago

alexge233 commented 2 years ago

I've looked into the documentation and examples, but can't find any answer. Is there a way to acquire the screen_name using the v2 API? Many thanks!

geduldig commented 2 years ago

Look at this doc https://developer.twitter.com/en/docs/twitter-api/users/lookup/api-reference/get-users-id You supply the user id and get back the user name.