Get XML from a hashtag search


#1

Is it possible to get an XML from a hashtag search?

for example, I want to get twits with hashtag “twitterapi” in an XML

Thanks!


#2

We don’t have a direct XML output for the Search API, but both ATOM and RSS are XML-based responses.

A request such as:

GET http://search.twitter.com/search.atom?q=%23twitterapi

will yield you XML-based results for the hashtag #twitterapi


#3

ok, I think it is bette to use the rss one, so with this:
http://search.twitter.com/search.rss?q=twitterapi

Then I realized, that I had to save that file as a .txt and after change its extension to .xml so I was able to parse the file with Actionscript 3 (my final aim)

Thank you very much!


#4

Trato de entender de a poco !!!


#5

I have 2 questions about RSS search lists:

  1. When I save the search as xml file, the geo information of tweets seems to be missing. Is there a way to include this information?
  2. Is there a way to include older tweets in the search? I couldn’t find any operator for that.
    So far, my search query looks like this:
    http://search.twitter.com/search.atom?q=geocode:52.524268%2C-13.40629%2C25km%23hastag1%2C%20OR%20%23hashtag2

Thanks!


#6

nice…but is there a way automatically to write this to and already created xml file in PHP.That wud make things super easy…


#7

Any idea why I am getting no results from rss?
https://search.twitter.com/search.rss?q=%23powerthemorning

Yet, works just fine searching twitter.
https://twitter.com/search?q=%23powerthemorning


#8
  1. You should definitely find a different way to get search results – the RSS feed will cease functioning on May 7, 2013 when API v1 retires.

  2. The search index available on the site is different than the search index available via the API. The API only goes back about 7 days and is not an exhaustive index of all public tweets.


#9

This is what I need but it has stopped working, perhaps it stopped as recently as yesterday (5 June 2013). It was working four days ago.


#10

Oh I only just discovered this now!

So how do I fix it so that the RSS Twitter search works again?

Incidentally the old version was working up until a few days ago.


#11

Today (Thu 2013-06-06 07:09) Twitter updated the doc page for twitter api (previos update on this page was on 2012-08-25). They changed the item “limitations” (see that page).
They added the following point:
“In API v1.1, the Search API requires some form ofauthentication – either OAuth 1.0A or app-only auth”
(It wasn’t in previos version of doc)


#12

Today (Thu 2013-06-06 07:09) Twitter updated the doc page for twitter api (previos update on this page was on 2012-08-25). They changed the item “limitations” (see that page).
They added the following point:
“In API v1.1, the Search API requires some form ofauthentication – either OAuth 1.0A or app-only auth”
(It wasn’t in previos version of doc)


#13

https://dev.twitter.com/blog/api-v1-is-retired


#14