im getting random empty status when i use lookup, for example:

https://twitter.com/pablonegri/status/1157306507245080576

https://api.twitter.com/1.1/statuses/lookup.json?id=1157306507245080576

Response:

[ ]

Any ideas?

Are you perhaps using JavaScript as your programming language? Use id_str instead of id. In JS 1157306507245080576 gets truncated to 1157306507245080600 which doesn’t exist.

You can read more about Twitter IDs here.

1 Like

Hi, no, im using PHP, but in POSTMAN program i have the same result.

Using twurl I get a result for that ID.

twurl "/1.1/statuses/lookup.json?id=1157306507245080576"

When you say random empty status do you mean that an ID will randomly (say 10% of the time) return no result, or that some random IDs will consistently (100% of the time) return an empty result?

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.