CINXE.COM

TheyWorkForYou

<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>TheyWorkForYou</title> <meta name="viewport" content="initial-scale=1"> <meta name="description" content="Making it easy to keep an eye on the UK&rsquo;s parliaments. Discover who represents you, how they&rsquo;ve voted and what they&rsquo;ve said in debates."> <meta name="keywords" content="Hansard, Official Report, Parliament, government, House of Commons, House of Lords, MP, Peer, Member of Parliament, MPs, Peers, Lords, Commons, Scottish Parliament, Northern Ireland Assembly, MSP, MLA, MSPs, MLAs, London Assembly Members, MS, MSs, Welsh Parliament, Senedd Cymru, Senedd, Member of the Senedd"> <link rel="author" title="Send feedback" href="mailto:support&#64;theyworkforyou.com"> <link rel="home" title="Home" href="https://www.theyworkforyou.com/"> <meta property="og:site_name" content="TheyWorkForYou"> <meta property="og:url" content="https://www.theyworkforyou.com/api/"> <meta property="og:title" content="TheyWorkForYou"> <meta property="og:type" content="website"> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:site" content="@theyworkforyou"> <meta name="twitter:creator" content="@theyworkforyou"> <meta property="og:image" content="https://www.theyworkforyou.com/images/og/default.jpg"> <meta property="og:image:type" content="image/jpeg"> <meta property="og:image:width" content="1200"> <meta property="og:image:height" content="630"> <meta property="og:description" content="Making it easy to keep an eye on the UK&rsquo;s parliaments. Discover who represents you, how they&rsquo;ve voted and what they&rsquo;ve said in debates."> <meta property="fb:app_id" content="734726803296567"> <script>document.documentElement.className = 'js';</script> <link rel="start" title="Home" href="/"> <link rel="stylesheet" href="/style/stylesheets/app.css?1743003054" type="text/css"> <link rel="apple-touch-icon" href="/images/apple-touch-60.png" /> <link rel="apple-touch-icon" sizes="76x76" href="/images/apple-touch-76.png" /> <link rel="apple-touch-icon" sizes="120x120" href="/images/apple-touch-120.png" /> <link rel="apple-touch-icon" sizes="152x152" href="/images/apple-touch-152.png" /> <script async src="/js/loading-attribute-polyfill.min.js?1743003007"></script> <!-- Google tag (gtag.js) --> <script defer>Object.defineProperty(document,"cookie",{get:function(){var t=Object.getOwnPropertyDescriptor(Document.prototype,"cookie").get.call(document);return t.trim().length>0&&(t+="; "),t+="_ga=GA1.1."+Math.floor(1e9*Math.random())+"."+Math.floor(1e9*Math.random())},set:function(t){t.trim().startsWith("_ga")||Object.getOwnPropertyDescriptor(Document.prototype,"cookie").set.call(document,t)}});</script> <script defer src="https://www.googletagmanager.com/gtag/js?id=G-W8M9N1MJFT"></script> <script> var client_id = Math.floor(Math.random() * 1000000000) + '.' + Math.floor(Math.random() * 1000000000); window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config','G-W8M9N1MJFT', {'client_id': client_id, 'cookie_expires': 1 }); </script> <script> (function (i,s,o,g,r,a,m) {i['GoogleAnalyticsObject']=r;i[r]=i[r]||function () { (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-660910-1', {'storage':'none'}); ga('set', 'anonymizeIp', true); ga('send', 'pageview'); </script> </head> <body> <header class="site-header"> <div class="site-header__row"> <a href="https://www.mysociety.org/" id="mysociety-badge" aria-label="A service from mySociety"> <img class="badge-desktop" src="/style/img/badge-mysociety-desktop@2x.png" width="60" height="80" alt="A service from mySociety"> <img class="badge-mobile" src="/style/img/badge-mysociety-mobile@2x.png" width="48" height="60" alt="A service from mySociety"> </a> <h1 class="site-header__logo"> <a href="/" aria-label="Go to TheyWorkForYou homepage"> TheyWorkFor<strong>You</strong> </a> </h1> <a href="#main-nav" class="site-header__mobile-nav-toggle js-toggle"> Menu <span></span> </a> </div> </header> <nav class="site-nav" id="main-nav"> <div class="site-nav__primary"> <div class="site-nav__row"> <div class="site-nav__assembly"> <a href="#nav-assemblies" class="site-nav__dropdown-toggle js-toggle js-toggle-until-click-outside"> UK Parliament </a> <ul id="nav-assemblies" class="site-nav__assembly__dropdown" aria-label="Available assemblies"> <li><a href="/" title="Houses of Parliament debates, Written Answers, Statements, Westminster Hall debates, and Bill Committees" class=""> UK Parliament </a></li> <li><a href="/scotland/" title="Scottish education, health, agriculture, justice, prisons and other devolved areas. Some tax-varying powers" class=""> Scottish Parliament </a></li> <li><a href="/ni/" title="Full authority over <em>transferred matters</em>, which include agriculture, education, employment, the environment and health" class=""> Northern Ireland Assembly </a></li> <li><a href="/senedd/" title="Welsh economic development, transport, finance, local government, health, housing, the Welsh Language and other devolved areas" class=""> Senedd / Welsh Parliament </a></li> </ul> </div> <div class="site-nav__search"> <form action="/search/"> <label for="site-header-search">Search TheyWorkForYou</label> <div class="row collapse"> <div class="small-9 columns"> <input type="search" id="site-header-search" name="q" placeholder="e.g. a postcode, person, or topic"> </div> <div class="small-3 columns"> <button type="submit" class="prefix">Search</button> </div> </div> </form> </div> <div class="site-nav__user"> <ul> <li><a href="/user/login/?ret=%2F" title="If you've already joined, sign in to your account" class=""> Sign in </a></li> <li><a href="/user/?pg=join&amp;ret=%2F" title="Joining is free and allows you to manage your email alerts" class=""> Join </a></li> <li><a href="/contact/" title="" class=""> Contact </a></li> <li><a href="/support-us/" title="" class="donate-button"> Donate </a></li> </ul> </div> </div> </div> <div class="site-nav__secondary"> <div class="site-nav__row"> <div class="site-nav__general"> <ul> </ul> </div> </div> </div> </nav> <div class="banner"> <div class="full-page__row"> <div class="banner__content"> We now cover the registers of interests for all the UK's Parliaments <a class="button button--small content__button button--negative" href="https://www.theyworkforyou.com/interests/">Read more</a> </div> </div> </div> <div class="hero-api"> <div class="row"> <div class="hero-api__container"> <h1>Easy access to parliamentary information </h1> <p class="lead"> for your web project, campaign, research or news story </p> <a href="/api/key" class="button">Sign up &rarr;</a> </div> </div> </div> <div class="intro"> <div class="row"> <div class="intro__header"> <h2>Do you need to&hellip;</h2> </div> <div class="intro__col">Display tailored content that reflects which constituency a user is in?</div> <div class="intro__col">Analyse spoken parliamentary debates, in bulk?</div> <div class="intro__col">Publish accurate information about MPs, MLAs or MSPs?</div> <div class="intro__col">Find a quick and easy way to integrate parliamentary data in your project?</div> </div> </div> <div class="try-api"> <div class="row collapse"> <form action="/api/docs/getMP?#output"> <div class="mp-search__form"> <label for="postcode" class="api-search-label">Try it out - enter a postcode</label> <div class="medium-4 columns"> <input type="hidden" name="output" value="json"> <input name="postcode" id="postcode" class="homepage-search__input" type="text" /> </div> <div class="medium-3 columns"> <input type="submit" value="Search &rarr;" class="button homepage-search__button" /> </div> </div> </form> </div> </div> <div class="simple-api"> <div class="row"> <div class="simple-api__header text-center"> <h2>TheyWorkForYou's API makes it all much simpler</h2> </div> <div class="medium-6 columns"> <i class="simple-api__icon medium-3 small-3 columns"><img src="/style/img/api-page/icon-data.svg" alt=""></i> <p class="medium-9 small-9 columns">An easy way to access data from the UK's parliaments and regional assemblies</p> </div> <div class="medium-6 columns"> <i class="simple-api__icon medium-3 small-3 columns"><img src="/style/img/api-page/icon-self-service.svg" alt=""></i> <p class="medium-9 small-9 columns">Self-service subscription: manage keys and payments online</p> </div> </div> <div class="row"> <div class="medium-6 columns"> <i class="simple-api__icon medium-3 small-3 columns"><img src="/style/img/api-page/icon-quota.svg" alt=""></i> <p class="medium-9 small-9 columns">Adjust your quota as you need it, or cancel at any time</p> </div> <div class="medium-6 columns"> <i class="simple-api__icon medium-3 small-3 columns"><img src="/style/img/api-page/icon-rates.svg" alt=""></i> <p class="medium-9 small-9 columns">Reduced rates/free of charge for non-profit or charitable projects</p> </div> </div> <div class="simple-api__info"> <div class="row"> <div class="simple-api__card"> <div class="simple-api__card-header"> <h3>What is an API?</h3> </div> <div class="simple-api__card-body"> <p>API (Application Programming Interface). Is a program that allows you to query a database — in this case, TheyWorkForYou's vast amount of parliamentary data, updated daily — for information.</p> <p>No more manual searching, spreadsheet formatting or out of date information — let the API bring you the data you need, so you can get straight to work.</p> </div> </div> </div> </div> <div class="simple-api__cta"> <div class="row"> <p>Plans start from £20/mth. <a href="/api/docs/#plans">See plans</a></p> </div> </div> </div> <div class="example-api"> <div class="row"> <h2>What can you do with the TheyWorkForYou API?</h2> <p>Many, many things! Here are some examples:</p> </div> <div class="row"> <div class="example-api__col"> <div class="input"> <div class="input-header"> <p><strong>Input:</strong> Date</p> </div> <img src="/style/img/connection.svg" alt=""> <div class="input-body"> <p><strong>Output:</strong><br> List of MPs, MSPs, MLAs or Lords on that date </p> </div> <div class="input-footer--mobile"> <p><strong>Ideal for:</strong> Researchers checking which Members are relevant to their period of study</p> </div> </div> </div> <div class="example-api__col"> <div class="input"> <div class="input-header"> <p><strong>Input:</strong> Postcode</p> </div> <img src="/style/img/connection.svg" alt=""> <div class="input-body"> <p><strong>Output:</strong><br> Constituency, MP’s name, party, dates, image, position and other basic information </p> </div> <div class="input-footer--mobile"> <p><strong>Ideal for:</strong> Developers who want to ensure the MP information on their website is always up to date, and matches the user’s needs</p> </div> </div> </div> <div class="example-api__col"> <div class="input"> <div class="input-header"> <p><strong>Input:</strong> Constituency name</p> </div> <img src="/style/img/connection.svg" alt=""> <div class="input-body"> <p><strong>Output:</strong><br> Centre point or bounding polygon of that constituency </p> </div> <div class="input-footer--mobile"> <p><strong>Ideal for:</strong> Campaigners matching constituency information to a user’s location</p> </div> </div> </div> <div class="example-api__col"> <div class="input"> <div class="input-header"> <p><strong>Input:</strong> Date</p> </div> <img src="/style/img/connection.svg" alt=""> <div class="input-body"> <p><strong>Output:</strong><br> Debates, written answers, minister statements recorded in Parliament on that date </p> </div> <div class="input-footer--mobile"> <p><strong>Ideal for:</strong> Journalists analysing the text of debates within a set time period; lobbyists checking to see which MPs have an interest in their causey</p> </div> </div> </div> </div> <div class="row hide-from-medium"> <div class="example-api__col"> <div class="input-footer--desktop"> <p><strong>Ideal for:</strong> Researchers checking which Members are relevant to their period of study</p> </div> </div> <div class="example-api__col"> <div class="input-footer--desktop"> <p><strong>Ideal for:</strong> Developers who want to ensure the MP information on their website is always up to date, and matches the user’s needs</p> </div> </div> <div class="example-api__col"> <div class="input-footer--desktop"> <p><strong>Ideal for:</strong> Campaigners matching constituency information to a user’s location</p> </div> </div> <div class="example-api__col"> <div class="input-footer--desktop"> <p><strong>Ideal for:</strong> Journalists analysing the text of debates within a set time period; lobbyists checking to see which MPs have an interest in their causey</p> </div> </div> </div> <div class="row"> <p>To see more examples</p> <a href="/api/docs/" class="button">View the documentation &rarr;</a> </div> </div> <div class="projects"> <div class="row text-center"> <h2>TheyWorkForYou's API powers projects like these:</h2> </div> <div class="row"> <div class="projects__col"> <p>British Canoeing's Clear Waters campaign encourages supporters to sign a petition and then displays on a map how many have signed from each constituency.</p> <p><a href="https://clearaccessclearwaters.org.uk/">See it in action</a></p> <img src="/style/img/api-page/british-canoeing-screenshot.png" alt=""> <img src="/style/img/api-page/british-canoeing-logo.png" class="projects-logo" alt=""> </div> <div class="projects__col"> <p>The Centre for Analysis of Risk and Regulation (CARR) analysed parliamentary speeches over 50 years as part of their research into whether there had been a rise in the use of statistics and numbers in political discourse.</p> <p><a href="https://www.lse.ac.uk/accounting/assets/Documents/news/carr-report-for-UKSA-final.pdf">Find out more (PDF)</a></p> <img src="/style/img/api-page/carr-screenshot.png" alt=""> <img src="/style/img/api-page/carr-logo.png" class="projects-logo" alt=""> </div> <div class="projects__col"> <p>Carbon Brief looked into the use of the phrases "climate change", "global warming" and "greenhouse effect" by different political parties as well as individual MPs for this longform analysis.</p> <p><a href="https://www.carbonbrief.org/analysis-the-uk-politicians-who-talk-the-most-about-climate-change">Find out more</a></p> <img src="/style/img/api-page/CarbonBrief-screenshot.png" alt=""> <img src="/style/img/api-page/CarbonBrief-logo.png" class="projects-logo" alt=""> </div> <div class="projects__col"> <p>Money Advice Trust's StopTheKnock campaign used the API as one piece of the code behind this map project, showing the number of times council bailiffs were sent to collect on debts within each area.</p> <p><a href="https://www.stoptheknock.org/">See it in action</a></p> <img src="/style/img/api-page/stop-the-knock-screenshot.png" alt=""> <img src="/style/img/api-page/stop-the-knock-logo.png" class="projects-logo" alt=""> </div> </div> </div> <div class="quote-block text-center"> <div class="quote-wrap"> <p>“The API is a very useful tool that has saved us days of development work. It is the backbone to our online petition process.”</p> <p> <cite>Head of Digital, British Canoeing</cite></p> </div> </div> <div class="get-started text-center"> <div class="row"> <p>Get started.</p> <a href="key" class="button">Sign up</a> </div> <div class="row"> <div class="get-started__list-wrap"> <ul> <li><a href="/api/docs">Documentation</a></li> <li><a href="/api/terms">Terms and conditions</a></li> </ul> </div> </div> </div> <div id="footer" class="mysoc-footer" role="contentinfo"> <div class="row"> <div class="medium-5 columns"> <h2 class="mysoc-footer__site-name">TheyWorkForYou</h2> <div class="mysoc-footer__site-description"> <p>Making it easy to keep an eye on the UK’s parliaments. Discover who represents you, how they’ve voted and what they’ve said in debates – simply and clearly.</p> </div> <form method="post" class="footer__newsletter-form" action="//mysociety.us9.list-manage.com/subscribe/post?u=53d0d2026dea615ed488a8834&amp;id=287dc28511" onsubmit="trackFormSubmit(this, 'FooterNewsletterSignup', 'submit', null); return false;"> <p>Sign up to mySociety’s newsletter</p> <div class="row collapse"> <div class="small-8 columns"> <input type="email" placeholder="Your email address" name="EMAIL"/> </div> <div class="small-4 columns"> <label style="position: absolute; left: -5000px;"> Leave this box empty: <input type="text" name="b_53d0d2026dea615ed488a8834_287dc28511" tabindex="-1" value="" /> </label> <input type="hidden" name="group[11745][32]" value="1"> <input type="submit" value="Subscribe" name="subscribe" class="button prefix"> </div> </div> <p><a href="https://www.mysociety.org/privacy#newsletter">Your data</a></p> </form> </div> <div class="medium-4 columns"> <nav class="mysoc-footer__links"> <ul> <li role="presentation"><a href="/help/" title="" class="">Help - Frequently Asked Questions</a></li> <li role="presentation"><a href="/about/" title="" class="">About us</a></li> <li role="presentation"><a href="/help/linktous/" title="How to link to us" class="">Link to us</a></li> <li role="presentation"><a href="https://www.mysociety.org/category/projects/theyworkforyou/" title="" class="">News</a></li> <li role="presentation"><a href="/privacy/" title="" class="">Privacy Policy</a></li> </ul> <ul> <li role="presentation"><a href="https://github.com/mysociety/theyworkforyou" title="TheyWorkForYou Source code" class="">Source code</a></li> <li role="presentation"><a href="/api/" title="API - Query the TheyWorkForYou database" class="">API</a></li> <li role="presentation"><a href="https://parser.theyworkforyou.com" title="Raw data (XML) - the data behind TheyWorkForYou and Public Whip" class="">Raw Data</a></li> <li role="presentation"><a href="https://groups.google.com/a/mysociety.org/forum/#!forum/theyworkforyou" title="" class="">Developer mailing list</a></li> <li role="presentation"><a href="/contact/" title="" class="">Contact</a></li> </ul> </nav> </div> <div class="medium-3 columns"> <div class="mysoc-footer__donate"> <p>This site is not publicly funded. Support our mission of making UK politics more transparent and accessible.</p> <a href=/support-us/?utm_source=theyworkforyou.com&utm_content=footer+donate+now&utm_medium=link&utm_campaign=mysoc_footer" class="mysoc-footer__donate__button">Donate now</a> </div> </div> </div> <div class="row"> <hr class="mysoc-footer__divider" role="presentation"> </div> <div class="row"> <div class="medium-5 columns"> <div class="mysoc-footer__orgs"> <p class="mysoc-footer__org"> Built by <a href="https://www.mysociety.org?utm_source=theyworkforyou.com&utm_content=footer+logo&utm_medium=link&utm_campaign=mysoc_footer" class="mysoc-footer__org__logo mysoc-footer__org__logo--mysociety">mySociety</a> </p> </div> </div> <div class="medium-4 columns"> <div class="mysoc-footer__legal"> <p><a href="https://www.mysociety.org?utm_source=theyworkforyou.com&utm_content=footer+full+legal+details&utm_medium=link&utm_campaign=mysoc_footer">mySociety</a> is a registered charity in England and Wales (1076346) and a limited company (03277032). We provide commercial services through our wholly owned subsidiary <a href="https://www.societyworks.org?utm_source=theyworkforyou.com&utm_content=footer+full+legal+details&utm_medium=link&utm_campaign=mysoc_footer">SocietyWorks Ltd</a> (05798215).</p> </div> </div> <div class="medium-3 columns"> <ul class="mysoc-footer__badges"> <li role="presentation"><a href="https://github.com/mysociety/theyworkforyou" class="mysoc-footer__badge mysoc-footer__badge--github">Github</a></li> <li role="presentation"><a href="https://twitter.com/theyworkforyou" class="mysoc-footer__badge mysoc-footer__badge--twitter">Twitter</a></li> <li role="presentation"><a href="https://www.facebook.com/TheyWorkForYou" class="mysoc-footer__badge mysoc-footer__badge--facebook">Facebook</a></li> </ul> </div> </div> </div> <!-- end #footer --> </div> <!-- end #container --> <script src="/js/jquery-1.11.3.min.js?1743003007"></script> <script src="/js/jquery.cookie.js?1743003007"></script> <script src="/js/accessible-autocomplete.min.js?1743003007"></script> <script src="/js/main.js?1743003007"></script> <script> window.twttr = (function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], t = window.twttr || {}; if (d.getElementById(id)) return t; js = d.createElement(s); js.id = id; js.src = "https://platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); t._e = []; t.ready = function(f) { t._e.push(f); }; return t; }(document, "script", "twitter-wjs")); twttr.ready(function() { twttr.events.bind('tweet', function() { ga('send', 'social', 'twitter', 'tweet', window.location.href); }); twttr.events.bind('follow', function() { ga('send', 'social', 'twitter', 'follow', window.location.href); }); }); window.fbAsyncInit = function () { FB.init({ appId: "734726803296567", autoLogAppEvents: true, xfbml: true, version: 'v9.0' }); FB.Event.subscribe('edge.create', function (targetUrl) { ga('send', 'social', 'facebook', 'like', targetUrl); }); FB.Event.subscribe('edge.remove', function (targetUrl) { ga('send', 'social', 'facebook', 'unlike', targetUrl); }); FB.Event.subscribe('message.send', function (targetUrl) { ga('send', 'social', 'facebook', 'share', targetUrl); }); }; </script> <script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_GB/sdk.js"></script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10