# Members API API

> An API which retrieves Members data.

Members API is an open data API from parliament.uk. It needs no API key. It is served over HTTPS. Its OpenAPI description documents 43 endpoints.

## At a glance

- Category: [Open Data](https://www.openparable.com/apis/category/open-data)
- Provider: parliament.uk
- Authentication: None (no API key)
- HTTPS: Yes
- CORS: Not stated
- Documentation: https://www.parliament.uk/
- OpenAPI description: https://api.apis.guru/v2/specs/parliament.uk/members/v1/openapi.json
- Version: v1
- Specification updated: 2023-03-03

## Endpoints

- `GET /api/Location/Browse/{locationType}/{locationName}` — Returns a list of locations, both parent and child
- `GET /api/Location/Constituency/Search` — Returns a list of constituencies
- `GET /api/Location/Constituency/{id}` — Returns a constituency by ID
- `GET /api/Location/Constituency/{id}/ElectionResult/Latest` — Returns latest election result by constituency id
- `GET /api/Location/Constituency/{id}/ElectionResult/{electionId}` — Returns an election result by constituency and election id
- `GET /api/Location/Constituency/{id}/ElectionResults` — Returns a list of election results by constituency ID
- `GET /api/Location/Constituency/{id}/Geometry` — Returns geometry by constituency ID
- `GET /api/Location/Constituency/{id}/Representations` — Returns a list of representations by constituency ID
- `GET /api/Location/Constituency/{id}/Synopsis` — Returns a synopsis by constituency ID
- `GET /api/LordsInterests/Register` — Returns a list of registered interests
- `GET /api/LordsInterests/Staff` — Returns a list of staff
- `GET /api/Members/History` — Return members by ID with list of their historical names, parties and memberships
- `GET /api/Members/Search` — Returns a list of current members of the Commons or Lords
- `GET /api/Members/SearchHistorical` — Returns a list of members of the Commons or Lords
- `GET /api/Members/{id}` — Return member by ID
- `GET /api/Members/{id}/Biography` — Return biography of member by ID
- `GET /api/Members/{id}/Contact` — Return list of contact details of member by ID
- `GET /api/Members/{id}/ContributionSummary` — Return contribution summary of member by ID
- `GET /api/Members/{id}/Edms` — Return list of early day motions of member by ID
- `GET /api/Members/{id}/Experience` — Return experience of member by ID
- `GET /api/Members/{id}/Focus` — Return list of areas of focus of member by ID
- `GET /api/Members/{id}/LatestElectionResult` — Return latest election result of member by ID
- `GET /api/Members/{id}/Portrait` — Return portrait of member by ID
- `GET /api/Members/{id}/PortraitUrl` — Return portrait url of member by ID
- `GET /api/Members/{id}/RegisteredInterests` — Return list of registered interests of member by ID
- `GET /api/Members/{id}/Staff` — Return list of staff of member by ID
- `GET /api/Members/{id}/Synopsis` — Return synopsis of member by ID
- `GET /api/Members/{id}/Thumbnail` — Return thumbnail of member by ID
- `GET /api/Members/{id}/ThumbnailUrl` — Return thumbnail url of member by ID
- `GET /api/Members/{id}/Voting` — Return list of votes by member by ID
- `GET /api/Members/{id}/WrittenQuestions` — Return list of written questions by member by ID
- `GET /api/Parties/GetActive/{house}` — Returns a list of current parties with at least one active member.
- `GET /api/Parties/LordsByType/{forDate}` — Returns the composition of the House of Lords by peerage type.
- `GET /api/Parties/StateOfTheParties/{house}/{forDate}` — Returns current state of parties
- `GET /api/Posts/Departments/{type}` — Returns a list of departments.
- `GET /api/Posts/GovernmentPosts` — Returns a list of government posts.
- `GET /api/Posts/OppositionPosts` — Returns a list of opposition posts.
- `GET /api/Posts/SpeakerAndDeputies/{forDate}` — Returns a list containing the speaker and deputy speakers.
- `GET /api/Posts/Spokespersons` — Returns a list of spokespersons.
- `GET /api/Reference/AnsweringBodies` — Returns a list of answering bodies.
- `GET /api/Reference/Departments` — Returns a list of departments.
- `GET /api/Reference/Departments/{id}/Logo` — Returns department logo.
- `GET /api/Reference/PolicyInterests` — Returns a list of policy interest.

## Questions

### Does the Members API API need an API key?

No. The Members API API can be called without an API key or sign-up, which makes it handy for prototypes and front-end demos.

### Does the Members API API support HTTPS?

Yes, the Members API API is served over HTTPS.

### How many endpoints does the Members API API have?

Its OpenAPI description lists 43 endpoints in version v1. All of them are shown on this page.

### What are alternatives to the Members API API?

Other Open Data APIs include Search Services, Wayback API, Wikipedia, Nasdaq Data Link, University of Oslo.

## Similar open data APIs

- [Search Services](https://www.openparable.com/apis/search-services): API for Internet Archive's Search-related services
- [Wayback API](https://www.openparable.com/apis/wayback): API for Internet Archive's Wayback Machine
- [Wikipedia](https://www.openparable.com/apis/wikipedia): Mediawiki Encyclopedia
- [Nasdaq Data Link](https://www.openparable.com/apis/nasdaq-data-link): The source for financial, economic, and alternative datasets, serving investment professionals.
- [University of Oslo](https://www.openparable.com/apis/university-of-oslo): Courses, lecture videos, detailed information for courses etc. for the University of Oslo (Norway)
- [Data API](https://www.openparable.com/apis/data): Serves the Clever Data API
- [Kaggle](https://www.openparable.com/apis/kaggle): Create and interact with Datasets, Notebooks, and connect with Kaggle
- [CollegeScoreCard.ed.gov](https://www.openparable.com/apis/collegescorecard-ed-gov): Data on higher education institutions in the United States
- [U.S. EPA Enforcement and Compliance History Online (ECHO) - All Data](https://www.openparable.com/apis/u-s-epa-enforcement-and-compliance-history-online-echo-all-data): Enforcement and Compliance History Online (ECHO) is a tool developed and maintained by EPA's Office of Enforcement and Compliance Assurance for public use. ECHO provides integrated compliance and enforcement information for over 1 million regulated facilities nationwide. ECHO Rest Services provide multiple service endpoints, each with specific capabilities, to search and retrieve data on facilities regulated as Clean Air Act (CAA) stationary sources, Clean Water Act (CWA) dischargers, Resource Conservation and Recovery Act (RCRA) hazardous waste generators/handlers, and Safe Drinking Water Act (SDWA) public water systems. Data of interest from other EPA sources, such as the Toxics Release Inventory, is also supplied for context. \ The get_facilities, get_map, get_qid, and get_download end points are meant to be used together, while the enhanced get_facility_info end point is self contained. The get_facility_info end point returns either an array of state, county or zip clusters with summary statistics per cluster or an array of facilities. \ The recommended use scenario for get_facilities, get_qid, get_map, and get_downoad is: \ <b>1)</b> Use get_facilities to validate passed query parameters, obtain summary statistics and to obtain a query_id (QID). QIDs are time sensitive and will be valid for approximately 30 minutes. <b>2)</b> Use get_qid, with the returned QID, to paginate through arrays of facility results. <b>3)</b> Use get_map, with the returned QID, to zoom in/out and pan on the clustered and individual facility coordinates that meet the QID query criteria. <b>4)</b> Use get_download, with the returned QID, to generate a Comma Separated Value (CSV) file of facility information that meets the QID query criteria. \ \ Use the qcolumns parameter to customize your search results. Use the Metadata service endpoint for a list of available output objects, their Column Ids, and their definitions to help you build your customized output. \ Additional ECHO Resources: <a href="https://echo.epa.gov/tools/web-services">Web Services</a>, <a href="https://echo.epa.gov/resources/echo-data/about-the-data">About ECHO's Data</a>, <a href="https://echo.epa.gov/tools/data-downloads">Data Downloads</a>
- [Authorized Partner API Specification](https://www.openparable.com/apis/authorized-partner-specification): To access files in user’s DigiLocker account from your application, you must first obtain user’s authorization.
- [GENESIS](https://www.openparable.com/apis/genesis): Federal Statistical Office Germany
- [Scoop.it](https://www.openparable.com/apis/scoop-it): Content Curation Service

Listed from: APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/members (OpenParable). Cite the canonical URL above.
