I'm using the Questions Advanced Search API to retrieve Stack Overflow questions with a specific tag that were created in the last 15 minutes.

I've written a script which runs every fifteen minutes and mostly retrieves the newly-created questions that I expect. However, I've noticed that the API doesn't reliably include questions that were created without my tag, but were then edited within the grace period to include my tag after creation.

How soon should I reasonably expect the Questions Advanced Search API endpoint to report these types of ninja-edited questions? I'm considering deliberately putting a 15-minute fromdate/todate delay in my script to give the API time to incorporate ninja edits, but can I safely use a smaller threshold instead?

  • 2
    When we do a tag clean-up it takes a minute or two until we don't get stale search results, so I assume a job runs every minute or so. I don't know if the API endpoints are as much live as the sites. Needs a dev to confirm.
    – rene
    Jan 19 at 18:39
  • 1
    Reporting back: a fifteen-minute delay has been working well for my script.
    – Adil B
    Feb 3 at 21:54


You must log in to answer this question.

Browse other questions tagged .