Blank responses to search api requests

orkodev
@orkodev orko dev

I'm not sure how long ago this problem began, but I have begun getting blank results for some queries made using the Twitter search api. Search results for some users come through as expected:

http://search.twitter.com/search.json?q=from:ladygaga
http://search.twitter.com/search.json?q=from:YouTubeDev

But when I search for my own tweets, as well as some of the other users I follow, the results are blank:

http://search.twitter.com/search.json?q=from:orkodev

Anyone have some insight here? This has been working consistently for months...

47 weeks 1 day ago

Replies

kurrik
@kurrik Arne Roomann-Kurrik

Did you recently protect your account: https://twitter.com/#!/orkodev ?
As for search results, the site isn't returning anything either - are you sure there are public tweets to find? https://twitter.com/#!/search/realtime/orkodev

If you have more examples (from other folks you follow) they would be helpful.

47 weeks 1 day ago
orkodev
@orkodev orko dev

Thanks @kurrik, I think this is at the heart of the issue. I tested with a non-protected account and recent tweets appeared as expected.

Is there an 'authenticated version' of the search api that would return protected tweets if the auth'd user had access?

47 weeks 1 day ago
kurrik
@kurrik Arne Roomann-Kurrik

Unfortunately not, from https://dev.twitter.com/docs/using-search : "Search does not support authentication meaning all queries are made anonymously.". If you're just trying to get the timelines of specific users, consider the user_timeline API method: https://dev.twitter.com/docs/api/1/get/statuses/user_timeline

Another way to get a feed of protected tweets would be to parse the user stream for your account:
https://dev.twitter.com/docs/streaming-api/user-streams which would return streaming data for all accounts you follow.

Naturally the protected accounts would have to be the auth'd user, or have accepted a follow request from the auth'd user.

47 weeks 1 day ago
orkodev
@orkodev orko dev

Thanks for your help here @kurrik. Looks like something custom will be required.

47 weeks 17 hours ago