New answers tagged discussion
0
The API only returns data in JSON format - you must perform any conversion yourself.
Here is the source code for a PHP app I wrote a while back that converts the JSON returned by the API to XML:
http://quickmediasolutions.com/pastebin/1/stack2xml-source-code
It expects two GET variables to be set:
method - the API route to use (for example, ...
2
JSON is faster and more compact, so it is easier on the server, and easier to parse in most application languages -- while still being human-readable.
Since the API is returning data, rather than markup, JSON is a much better choice than XML.
If you insist on XML, there are a great many ways to convert the data yourself, without loading the API ...
1
I think you're looking for:
/users/{id}/tags/{tags}/top-answers
/users/{id}/tags/{tags}/top-questions
Top 50 recent answers are included