3

I am trying to figure out how to get the 10 most recent questions from the Stack Overflow site, that have been answered, based on a given tag (such as 'Java').

I looked at the documentation but I didn't get a lot of help from it. I see that the API has an 'ids' URI path that can be entered but what does this mean?

2
  • By "have been answered", most people mean that the question has an accepted answer. Is that what you mean here? Sep 26, 2015 at 3:28
  • That is indeed what I mean.
    – Locke
    Sep 26, 2015 at 3:36

1 Answer 1

2

You would use either:

Then:

  1. Set the tagged parameter to your tag.

  2. Set the accepted parameter to True, if you want questions with accepted answers...
    OR
    Set answers to 1, if you want questions that have any old answer at all.

  3. Set pagesize to 10.

  4. Set order to desc.

  5. Set sort to creation.


For example, the following query gets the latest ten questions, that have answers, in the swank-clojure tag:

/2.2/search/advanced?pagesize=10&order=desc&sort=creation&accepted=True&tagged=swank-clojure


Here is a link to a live demo of that query.

You must log in to answer this question.

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