Data.parliament.uk

Data.parliament.uk

Government

Contains live datasets including information about petitions, bills, MP votes, attendance and more

Visit API🔁 Alternatives

📚 Documentation & Examples

Everything you need to integrate with Data.parliament.uk

🚀 Quick Start Examples

Data.parliament.uk Javascript Examplejavascript
// Data.parliament.uk API Example
const response = await fetch('https://explore.data.parliament.uk/?learnmore=Members', {
    method: 'GET',
    headers: {
        'Content-Type': 'application/json'
    }
});

const data = await response.json();
console.log(data);

The API provides access to comprehensive live datasets that include vital information about petitions, bills, MP votes, and attendance records. This data is invaluable for researchers, journalists, and civic tech developers who are looking to analyze parliamentary activities or develop tools that track legislative processes. With a robust and user-friendly interface, users can easily explore and integrate real-time legislative data into their applications, helping to promote transparency and engagement in the political landscape. For more detailed insights and usage guidelines, users can refer to the documentation available at Explore Data Parliament.

Utilizing this API comes with numerous advantages. Here are five key benefits of using it:

  • Access to real-time datasets for accurate and up-to-date information.
  • Comprehensive coverage of parliamentary activities, including voting records and attendance.
  • Enhanced transparency in governance, empowering citizens and developers alike.
  • Potential to drive civic engagement through innovative applications and tools.
  • User-friendly documentation and support, making integration seamless for developers.

Here’s a JavaScript code example for calling the API:

fetch('https://api.parliament.uk/datasets/your-endpoint-here')
  .then(response => response.json())
  .then(data => {
    console.log(data);
  })
  .catch(error => {
    console.error('Error fetching data:', error);
  });

📊 30-Day Uptime History

Daily uptime tracking showing online vs offline minutes

Mar 15Mar 17Mar 19Mar 21Mar 23Mar 25Mar 27Mar 29Mar 31Apr 2Apr 4Apr 6Apr 8Apr 10Apr 1304008001440Minutes
Online
Offline

Related APIs in Government