<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Baptiste,<div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class="">On 15 Apr 2016, at 18:11, Baptiste Jonglez <<a href="mailto:bjonglez@illyse.org" class="">bjonglez@illyse.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">Hi,<br class=""><br class="">I would like to find measurements matching some specific conditions, so I<br class="">tried to use the measurement API documented here:<br class=""><br class=""> <a href="https://atlas.ripe.net/docs/rest/" class="">https://atlas.ripe.net/docs/rest/</a><br class=""><br class="">However, filters don't seem to have the intended effect. For instance, I<br class="">tried to restrict to a specific range of starting time:<br class=""><br class=""> <a href="https://atlas.ripe.net/api/v1/measurement/?start_time__gte=1443654000&start_time_lte=1446336000" class="">https://atlas.ripe.net/api/v1/measurement/?start_time__gte=1443654000&start_time_lte=1446336000</a><br class=""></div></div></blockquote><div>There is small type in your start_time__lte query-parameter. It should have double underscores between `start_time` and `lte`. It will work then </div><br class=""><blockquote type="cite" class=""><div class=""><div class="">but looking at the first result (measurement ID 1411440), its start time<br class="">is 1564618500, which is way outside of the requested range.<br class=""><br class="">Similarly when filtering by type:<br class=""><br class=""> <a href="https://atlas.ripe.net/api/v1/measurement/?type=2" class="">https://atlas.ripe.net/api/v1/measurement/?type=2</a><br class=""></div></div></blockquote><div>type should be the name of the type as a string `?type=tracertoue`</div><div><br class=""></div><div>Also, I would like to advise you to use the v2 API from now on, we’re going to deprecate v1.</div><div><br class=""></div><div>There is a manual for V2 at <a href="https://atlas.ripe.net/docs/api/v2/tutorial/" class="">https://atlas.ripe.net/docs/api/v2/tutorial/</a> and there is reference documentation at <a href="https://atlas.ripe.net/docs/api/v2/reference/" class="">https://atlas.ripe.net/docs/api/v2/reference/</a>. This is till in beta, url’s for the documentation will change but it will be available then be linked from <a href="https://atlas.ripe.net/docs/" class="">https://atlas.ripe.net/docs/</a></div><div><br class=""></div><div>greetings,</div><div><br class=""></div><div>Jasper den Hertog</div></div></div></body></html>