Lebanese Parliament API (nouwweb)

About

This is an API to query information about Lebanese members of parliament. The current data reflects the 2009 Parliament. The project is a joint effort by SMEX and Lamba Labs.

Important links:

Usage

The API is very simple to use and follows REST parameter conventions. A request to the API will return a JSON list of results according to the URL param string.

Users can either get a list of values such as the list of districts at the endpoint /districts, or search for a subset of members of parliament using the endpoint /search.

For example, here’s the list of legislators that have a mobile phone in the district Beirut I

curl 'http://api.openleb.io/search?mobile=true&district=Beirut%20I&prettyprint=true'

API details:

Lists

The API provides for four endpoints that will generate lists of data. These are useful for secondary queries to the /search endpoint.

/names

Returns the list of names of the 2009 legislators in English and in Arabic.

/districts

Returns the list of districts and the number of legislators in that district.

/parties

Returns the list of political parties and the number of legislators of that party. Some parliamentary members belong to two parties. The list will account for that by creating a duplicate listing that includes both parties.

Legislator belongs to A and B then the list will be:
- A
- B
- A,B
- ...

/sects

Returns the list of sects and the number of legislators that are part of that sect.

Contributing

To contribute, fork the [github repo](http://github.com/openleb/nouwweb) or [raise an issue](http://github.com/openleb/issues). You can also suggest changes on our mailing list [here](https://groups.google.com/forum/#!forum/openleb)

Authors

Indices and tables