3

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

1 Answer 1

3

Notice that the route used has /top-answerers/. The doc page states:

Returns the top 30 answer​ers 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:

  1. sort=votes
  2. order=desc
  3. q=is:answer
  4. An appropriate filter (follow the example link, below)

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

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .