Main content
Find your MP
API
The Find Your MP service provides output in several formats in addition to HTML - XML, JSON, Javascript, plain text, comma separated values and YAML.
You can query the service using the following URL format: http://findyourmp.parliament.uk/api/search?q=YOUR_SEARCH_TERM&format=YOUR_DESIRED_FORMAT, where YOUR_SEARCH_TERM should be replaced with whatever you wish to search for and YOUR_DESIRED_FORMAT with one of XML, JSON, JS, TEXT, CSV, or YAML.
There are currently no usage limits to the API, but they may be introduced in future.
URL:
http://findyourmp.parliament.uk/api/search?q=&f=
