I am looking for some assistance or clarification on how to properly form my query to pull data on multiple screen names using users/lookup. In the documentation, it says the query parameter screen_name can contain a comma-separated list to return multiple users. User/lookup documentation
However, when I attempt to hit this endpoint https://api.twitter.com/1.1/users/lookup.json?screen_name=MiamiHEAT,cavs
{
“errors”:[
{
“code”:32,
“message”:“Could not authenticate you.”
}
]
}
When passing a single parameter (e.g. MiamiHEAT), the data pulls properly. Additionally, if I use ‘&’ to add an additional parameter, such as:
https://api.twitter.com/1.1/users/lookup.json?screen_name=MiamiHEAT&screen_name=cavs
The data is returned without issue.
Am I missing something? Also, it states in the documentation that a POST is strongly recommended for pulling multiple usernames, but there is not POST documentation on users/lookup. Can someone please clarify this?
Thanks in advance for the help.