I am using the
/events route in the API and it returns all events from Stack Overflow.
But I want to filter based on
event_type. Is there any way to do that?
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It only takes a minute to sign up.Sign up to join this community
There is currently no method to filter events by
For now, just load all the events and filter through the
event_type values afterwards. Since the
/events route only covers the last 15 minutes, it will only take 2 to 10 pages to get all the unfiltered results on Stack Overflow (the busiest site).
However, your options increase depending on what you want to filter for.
If you are interested in the
user_created event types; merely call the:
route(s), respectively, but:
fromdatethat is 15 minutes in the past. (
fromdateis really a date plus time, to the nearest second.)
Unfortunately, if you want to filter for
post_edited events, you are out of luck. There's not really a good way to work around that (yet).