Serve a version of the Glottolog database via Datasette as a REST-ful API.
- Request:
>>> languoid?label__contains=greek
- Response: (truncated for most pertinent information)
{
"rows": [
{
"id": "anci1242",
"label": "Ancient Greek",
"type": "language",
"status": "extinct",
"parent": "indo1319",
"family": "east2798",
"latitude": 39.8155,
"longitude": 21.9129,
"iso639P3code": "grc",
"child_family_count": 0,
"child_language_count": 0,
"child_dialect_count": 6
}, ...
],
"table_rows_count": 23495,
"filtered_table_rows_count": 23,
"next": null,
"next_url": null,
"query_ms": 15.398740768432617,
"source": "Glottolog",
"source_url": "http://glottolog.org/meta/downloads/",
"license": "CC BY 4.0",
"license_url": "https://creativecommons.org/licenses/by/4.0/"
}
The full Datasette API docs explain a bit more about the options: http://datasette.readthedocs.io/en/latest/. Most parameters however are just based on the column names in the tables.
Note that thanks to the versioned API-system, future version of the data model are not necessarily compatible.
Pull requests are welcome.