Twitter RSS

image

Twitter RSS/Atom feeds can still be found here

http://search.twitter.com/search.atom?q=hello and http://search.twitter.com/search.rss?q=hello

For profiles searches use:

https://api.twitter.com/1/favorites.rss?screen_name=jas 

https://api.twitter.com/1/statuses/user_timeline.rss?screen_name=jas

To create a custom RSS/Atom feed all you have to do is change the last word in the above address (in this case hello) to the term you are searching for.

As an example, http://search.twitter.com/search.rss?q=xxxxxxxxx

But if you have a more complicated search you may need to “URL encode” your search terms. What this means is, if you are looking for any tweets with a specific #tag or tweets from a specific @user you will first need to change the # and @ signs into something Twitter can understand. This page over at Albion Research will do this automatically for you, all you have to do is copy in the search term and press “Encode” then copy the code it gives you into the address.

For hashtag searches, you need to put a “%23? before the word. For example, if you’re searching for #epicwin, the URLs would be

http://search.twitter.com/search.atom?q=search%23epicwin
http://search.twitter.com/search.rss?q=search%23epicwin

Twitter’s search API provides these links as examples for creating advanced search RSS/Atom feeds.  You can change the search terms to customise your search.

Now, this is where it gets complicated, say you want to search for tweets from a specific location containing a hastag. To do this you will have find the geocode for the location.  As a starter the basic address will look something like this, http://search.twitter.com/search.atom?geocode=40.757929%2C-73.985506%2C25km.

Imagine you want to see all the #technology tweets coming from within 25km of Dublin, Ireland.First visit this page and input Dublin, Ireland as a search term. This will give you two numbers – 53.344104 and -6.2674937 – this is the Latitude and Longitude for Dublin.

To turn this into a search RSS/Atom feed simply include these numbers in the above address, like this, http://search.twitter.com/search.atom?geocode:53.344104%2C-6.2674937%2C25km.  The %2C25km in the address limits the search to users within 25km of Dublin, for miles change km to mi.

To search for any tweets using the #tag #technology within 25km of Dublin add %2C%23technology (“%2C” is a URL encoded comma and %23 is a URL encoded #). http://search.twitter.com/search.atom?geocode=40.757929%2C-73.985506%2C25km%2C%23technology

Author: Jas Dhaliwal

Jas Dhaliwal is a highly experienced International Social Media Strategist. He specializes in building and engaging with social communities across the web. Born and bred in London, he is passionate about technology and social anthropology. You can follow @Jas on Twitter