It's a project including a simple RESTful API to retrieve data from CEIC and USGS system through simple extractor. Because different earthquake monitor system provides different format of data, and they usually include data from different stations, we have to visit various website to get messages about earthquake that has happened all around the globe. Fuck, right? So, it took me little time to build this simple RESTful service on Github.On one hand, we cannot run any CGI here, while on the other hand, we don't have to provide any write operation api for users (it's only a data delivering platform). So, I decided that it can only support GET method, and data updating will only be completed through git commit operation. The data extractor will run every five minutes and push the data to Github, see, free storage and free network traffic!
URL: https: // earthquick.github.io / data / <time> / <minmag> /
Method: GET
Params:
Response:
[{"latitude":38.7883339,"timestamp":1479103072,"magnitude":1.07,"location":"1km NNE of The Geysers, California","longitude":-122.7506638},...]
PS. location property is encoded in unicode when containing chinese
Still WIP.