The Inside Scoop on Yahoo Answers RSS & API Calls
Yahoo Answers is a great place to go to get questions answered on almost any topic. There is a great community of knowledgeable people combined with a scoring system to make sure that the best Answers get the credit.
Like Twitter and other social sites, it's also a great place to go to research trends. After all, people ask questions about the things that are important to them - day in, and day out.
This Lens helps mashup enthusiasts automate that process of digging up the keyword and niche gold by explaining the anatomy of the Yahoo Answers RSS feed queries.
These can then be fed into Yahoo Pipes, or your favorite AJAX style RSS/XML processor.
Top Yahoo! Answers API Tips
If you just need ONE feed, use the Yahoo Answers! Advanced Search function to set the options, and then use the XML button to access the RSS fee code. Simple! (Yahoo! Answers Advanced Search)
The RSS Query
How to Tap into the Yahoo Answers Database using RSS

The basic query is very easy to construct, and results in an XML feed (RSS) of the current state of the Yahoo Answers database. It can be queried in a number of ways, and the basic form is as follows:
http://answers.yahoo.com/rss/searchq?p=squidoo
The italicized part never changes, and in the above example we have only included one option : the query search term.
This will return an XML feed, but there are many more parameters that we can add to change the way that Yahoo! Answers searches its database.
The complete list of possible options is:
- p : look for the following words
- pn : look for items without these words
- ps : how to use the query words
- tab : the status of the Answers to check
- scope : the type of Answers to query for
- mc : the category to look in
- asktime : the timescale to look for
Get XML/RSS Answers
Just Enough Web Programming with XHTML, PHP, and MySQL
Amazon Price: $15.63 (as of 11/27/2009)![]()
For an insight into web development with XML, RSS, AJAX and related technologies this book delivers just enough for you to get started, but not enough to overwhelm you with detail.
The ps and pn Options
How to exclude words and select how the included words are searched for.

The pn option can be used to exclude words from the query. So, to ask Answers to return details of 'squidoo' but not 'squid', we could use the following options:
- p=squidoo&pn=squid
- ps=1 : All Words
- ps=2 : Any Words
- ps=3 : Exact Phrase
- p=giant+squid&ps=3
So, the complete URL is:
http://answers.yahoo.com/rss/searchq?p=giant+squid&ps=3
You will note that these are just simple URLs (web addresses) like any others. They can be cut and pasted into a browsers address bar, and will return a piece of well-formed (XML) information that can be viewed with most modern browsers.
The tab and scope Options
Choosing what areas of Answers are searched, as well as what kinds of Question.

Let's assume that you want to look for only those questions that have been Answered satisfactorily. One reason for doing this might be as a part of an eBook research project.
Often, some of the best ideas come from other people's problems. But, we only want to see those that are actually resolved : so that we have both parts of the equation.
To do this, we use the tab option:- tab=0 : All items
- tab=1 : Resolved items
- tab=2 : Undecided items
- tab=3 : Open items
http://answers.yahoo.com/rss/searchq?p=keyword+research&ps=3&tab=1
Note that in the above query, we have also limited the search to the exact phrase using the ps option.
Let's assume that the above yields a long list of questions and answers, so we decide that, actually, we only want to search the Best Answers for the keywords.
This will enable us, we assume, to ensure good quality whilst also receiving Answers that ask questions not explicitly> about keyword research, but which contain the phrase.
To do this, we use the scope option:- scope= : All parts
- scope=subject : The Question
- scope=bestanswer : The Best Answers only
http://answers.yahoo.com/rss/searchq?p=keyword+research&ps=3&tab=1&scope=bestanswer
These can be used in any combination, and can be present, but blank (i.e. scope=), or absent.
The mc and asktime Options
Narrowing the category and choosing a timeframe.

The mc option allows for the selection of a specific category. There are so many of these that it is best to actually use the Answers advanced search function to build a default query on a category, and copy and paste the mc value from the resulting URL.
The asktime is a little simpler to use, and allows a query to specify the timeframe within which the items should fall. The possible values are:
- asktime= : Any
- asktime=0 : Less than 7 days old
- asktime=1 : 7 to 30 days old
- asktime=2 : 30 to 60 days old
- asktime=3 : 60 to 90 days old
- asktime=4 : Over 90 days old.
All Your Yahoo! Answers Questions Answered... By Yahoo! Answers!
Fetching RSS feed... please stand byFollow LeckyT on Twitter
My Latest Tweets on Yahoo, Keyword Research and Web 2.0

- aka Twitter
- 0 followers
- 0 following
-
- ? Crazy Frog / U Can't Touch This? Aaargh.
-
- Snickers in the freezer - c u in 10!!
-
- Genius : http://tinyurl.com/cc2vyl (DaftPunk vs. Benny Benassi on the Tube [of You])
-
- #BBC Radio 1 : EastEnders Sitar Theme Tune. Magic!
-
- is looking for a good, free, license unrestricted voice generator; and ideas?
by LeckyT
Web 2.0 RSS and Mashup development is my latest hot topic.
Expect to be reading about my new book soon. Meanwhile, let's carve up those APIs!
(more)




