Hi Oonitarians!
We are glad to announce the release of the stable version of OONI's new measurement API, which is available here: https://api.ooni.io/.
The OONI API is based on the stable release of our data processing pipeline, which has been re-engineered over the last year to detect censorship events around the world faster and more accurately.
We added the following to the OONI API:
* API endpoints for listing and filtering anomalous measurements
* API endpoints for downloading full reports
We changed the following:
* Reverse sorting in `by_date` view and hide measurements from time travellers
* Better API documentation thanks to redoc based on OpenAPI 2.0
* Improve request validation thanks to connexion base on OpenAPI
* Oonify the UI
* Better testing
Some of the fun things you can do with this new API include, easily searching through OONI measurements to find those containing anomalies.
As an example, with the following one liner (assuming you have curl and jq) you can get a sample of censored websites in India:
$ curl 'https://api.ooni.io/api/v1/measurements?probe_cc=IN&confirmed=true' | jq -r '.results[].input' | sort | uniq | head -n 5
http://0bin.nethttp://archive.orghttp://hastebin.comhttp://mp3.com/http://pastebin.com
Have fun!
~ Arturo