Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Twitter API: what is the difference between `name` and `screen_name`? Which one is a url username?

Tags:

twitter

api

I need a username token that represents a url username, like here => https://twitter.com/username.

Twitter API docs aren't clear on that. I can't tell the difference:

screen_name = The user screen name

name = The user full name

enter image description here

like image 793
Green Avatar asked Aug 30 '17 03:08

Green


1 Answers

Screen name is the username of the twitter account.

From the twitter account you can see this url

 "user_mentions": [{
      "screen_name": "TwitterEng",
      "name": "Twitter Engineering",
      "id": 6844292,
      "id_str": "6844292",
      "indices": [81, 92]
    }, {

There is also a npm package available for extracting screen_name

like image 200
Arpit Solanki Avatar answered Oct 25 '22 22:10

Arpit Solanki