Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I get questions sorted by Question_Id in descending? (Sorted by creation is working) and how to get questions higher than given ID (or higher than last questions creation), my idea is to get only those new questions which are not in DOM yet.

I am new to API and learning to use API with JavaScript. I have tried /questions & /search

share|improve this question

If all you're looking to do is get questions that were asked after a certain date, then simply use the fromdate parameter. According to the API docs:

fromdate – Unix timestamp of the minimum creation date on a returned item.
    unix epoch date, range [0, 253,402,300,799]

By specifying a timestamp for this parameter, you ensure that all questions returned will have a creation date greater than or equal to the timestamp.

share|improve this answer
Does this implies that a question with later date will have greater ID? – Eimantas Oct 28 '11 at 10:29
@Eimantas: This is true in most cases. – Nathan Osman Oct 28 '11 at 17:46

You must log in to answer this question.

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