I am expecting top answers for a particular tag here. But it returns user details.
Is anything wrong here?
Using:
/2.2/tags/java/top-answerers/all_time?site=stackoverflow
I am expecting top answers for a particular tag here. But it returns user details.
Is anything wrong here?
Using:
/2.2/tags/java/top-answerers/all_time?site=stackoverflow
Notice that the route used has /top-answerers/. The doc page states:
Returns the top 30 answerers active in a single tag, of either all-time or the last 30 days.
(Emphasis added)
So, that route is returning what it should.
If you really want the top answers for a tag, use the /search/excerpts
route and set:
sort=votes
order=desc
q=is:answer
For example, this gets the top 30 answers for the Java tag:
/2.2/search/excerpts?order=desc&sort=votes&q=is:answer&tagged=java&site=stackoverflow