API endpoint that allows politicians to be viewed and edited.

Fields for search: ID, name, sort_name, email, twitter, facebook

to find by name:

http://localhost:8000/api/simple_politicians/?search=Lincoln

POST

all fields are strings

{
"ID": "",
"name": "John Snow",
"sort_name": "",
"email": "johnsnow@games.com",
"twitter": "",
"facebook": "",
"group": "",
"group_id": "",
"area_id": "",
"area": "",
"chamber": "",
"term": "",
"start_date": "",
"end_date": "",
"image": "",
"gender": "",
"country": "",
"type": ""
}
GET /api/simple_politicians/?ordering=name
HTTP 200 OK
Allow: GET, POST, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "count": 882,
    "next": "https://api.represent.me/api/simple_politicians/?ordering=name&page=2",
    "previous": null,
    "next_id": 2,
    "previous_id": null,
    "results": [
        {
            "id": 342,
            "ID": "e0b61cab-a183-4a44-bb0a-81f25fda8de3",
            "name": "Adam B. Schiff",
            "sort_name": "Schiff, Adam",
            "email": "",
            "twitter": "RepAdamSchiff",
            "facebook": "RepAdamSchiff",
            "group": "Democrat",
            "group_id": "democrat",
            "area_id": "ocd-division/country:us/state:ca/cd:28",
            "area": "California's 28th congressional district",
            "chamber": "House of Representatives",
            "term": "115",
            "start_date": "",
            "end_date": "",
            "image": "https://theunitedstates.io/images/congress/original/S001150.jpg",
            "gender": "male",
            "country": "170",
            "type": "Senator",
            "linkedin": null,
            "facebook_page": null,
            "fundraising_page": null,
            "cv": null,
            "statement": ""
        },
        {
            "id": 1486,
            "ID": null,
            "name": "Adam Coevorden",
            "sort_name": "",
            "email": "adamvanky@gmail.com",
            "twitter": "@AdamGreenChelt",
            "facebook": "",
            "group": "Green",
            "group_id": "",
            "area_id": "45140",
            "area": "Cheltenham",
            "chamber": "",
            "term": "",
            "start_date": "2017",
            "end_date": null,
            "image": null,
            "gender": "",
            "country": "59",
            "type": "candidate",
            "linkedin": "https://www.linkedin.com/in/adamvc/",
            "facebook_page": "https://www.facebook.com/greenpartycheltenham",
            "fundraising_page": "http://www.crowdfunder.co.uk/cheltenham-green-party-election-campaign-2017",
            "cv": null,
            "statement": "I was born in Cheltenham 33 years ago, attending Pate’s Grammar School before moving on to study politics at the University of York. I spent six years working for Ecotricity, the renewable energy company based in Stroud, and I now work at the Higher Education Statistics Agency in Cheltenham. I live in Hatherley with my wife Jessica and our young children Alex and Martha.\n\nI grew up in Hester’s Way, so I know that affluence and privilege is only one side of Cheltenham. In 2017 there are people depending on food banks to feed their families and our blinkered government believes the solution is tax cuts for the rich and privatisation.\n\nI joined the Green Party at University, realising the major parties had nothing of value to say about social justice or the environment. I’m very proud to stand for parliament for a party that opposes selling off our public services, that believes free education and healthcare is a right, climate change should be tackled and poverty should be a thing of the past.\n\nThe Green Party is serious about standing up for a better future. A Green vote in 2017 will not just be an act of protest, but a real chance to bring in a new kind of politics."
        },
        {
            "id": 343,
            "ID": "159bbcc4-afee-4a5d-9097-e2be4d8ca9c7",
            "name": "Adam Kinzinger",
            "sort_name": "Kinzinger, Adam",
            "email": "",
            "twitter": "RepKinzinger",
            "facebook": "RepKinzinger",
            "group": "Republican",
            "group_id": "republican",
            "area_id": "ocd-division/country:us/state:il/cd:16",
            "area": "Illinois's 16th congressional district",
            "chamber": "House of Representatives",
            "term": "115",
            "start_date": "",
            "end_date": "",
            "image": "https://theunitedstates.io/images/congress/original/K000378.jpg",
            "gender": "male",
            "country": "170",
            "type": "Senator",
            "linkedin": null,
            "facebook_page": null,
            "fundraising_page": null,
            "cv": null,
            "statement": ""
        },
        {
            "id": 344,
            "ID": "fed6fe02-7935-4711-a190-fed9abd0a5ae",
            "name": "Adam Smith",
            "sort_name": "Smith, Adam",
            "email": "",
            "twitter": "RepAdamSmith",
            "facebook": "RepAdamSmith",
            "group": "Democrat",
            "group_id": "democrat",
            "area_id": "ocd-division/country:us/state:wa/cd:9",
            "area": "Washington's 9th congressional district",
            "chamber": "House of Representatives",
            "term": "115",
            "start_date": "",
            "end_date": "",
            "image": "https://theunitedstates.io/images/congress/original/S000510.jpg",
            "gender": "male",
            "country": "170",
            "type": "Senator",
            "linkedin": null,
            "facebook_page": null,
            "fundraising_page": null,
            "cv": null,
            "statement": ""
        },
        {
            "id": 1,
            "ID": "c153ec2d-cc60-4ec5-bf31-dc227e6ee1a0",
            "name": "Adam Vaughan",
            "sort_name": "Adam Vaughan",
            "email": "Adam.Vaughan@parl.gc.ca",
            "twitter": "TOAdamVaughan",
            "facebook": "",
            "group": "Liberal",
            "group_id": "liberal",
            "area_id": "area/ontario_(spadina—fort_york)",
            "area": "Ontario (Spadina—Fort York)",
            "chamber": "House of Commons",
            "term": "42",
            "start_date": "",
            "end_date": "",
            "image": "http://www.parl.gc.ca/Parliamentarians/Images/OfficialMPPhotos/41/VaughanAdam_Lib.jpg",
            "gender": "male",
            "country": "29",
            "type": "MP",
            "linkedin": null,
            "facebook_page": null,
            "fundraising_page": null,
            "cv": null,
            "statement": ""
        },
        {
            "id": 1473,
            "ID": null,
            "name": "ade_75",
            "sort_name": "",
            "email": "ade@solihull-libdems.org.uk",
            "twitter": "@a_adeyemo",
            "facebook": "",
            "group": "Liberal Democrat",
            "group_id": "",
            "area_id": "45441",
            "area": "Solihull",
            "chamber": "",
            "term": "",
            "start_date": "2017",
            "end_date": null,
            "image": null,
            "gender": "",
            "country": "59",
            "type": "candidate",
            "linkedin": null,
            "facebook_page": "http://www.facebook.com/AdeLibDem/",
            "fundraising_page": "http://www.solihull-libdems.org.uk/",
            "cv": null,
            "statement": "We are not getting a good deal in Solihull at the moment. I entered politics because I care deeply about our town and borough. I’ve lived here for over 20 years and understand why we need to look after our residents’ education, health, homes, businesses and long-term prosperity. Solihull deserves better!"
        },
        {
            "id": 340,
            "ID": "eaf0104e-b8ae-4336-a353-ca5228fe2752",
            "name": "A. Donald McEachin",
            "sort_name": "McEachin, A.",
            "email": "",
            "twitter": "",
            "facebook": "",
            "group": "Democrat",
            "group_id": "democrat",
            "area_id": "ocd-division/country:us/state:va/cd:4",
            "area": "Virginia's 4th congressional district",
            "chamber": "House of Representatives",
            "term": "115",
            "start_date": "",
            "end_date": "",
            "image": "https://theunitedstates.io/images/congress/original/M001200.jpg",
            "gender": "male",
            "country": "170",
            "type": "Senator",
            "linkedin": null,
            "facebook_page": null,
            "fundraising_page": null,
            "cv": null,
            "statement": ""
        },
        {
            "id": 341,
            "ID": "c5441370-42c5-4d83-b73e-6130cc4910cc",
            "name": "A. Drew Ferguson IV",
            "sort_name": "Ferguson, A.",
            "email": "",
            "twitter": "",
            "facebook": "",
            "group": "Republican",
            "group_id": "republican",
            "area_id": "ocd-division/country:us/state:ga/cd:3",
            "area": "Georgia's 3rd congressional district",
            "chamber": "House of Representatives",
            "term": "115",
            "start_date": "",
            "end_date": "",
            "image": "https://theunitedstates.io/images/congress/original/F000465.jpg",
            "gender": "male",
            "country": "170",
            "type": "Senator",
            "linkedin": null,
            "facebook_page": null,
            "fundraising_page": null,
            "cv": null,
            "statement": ""
        },
        {
            "id": 1501,
            "ID": null,
            "name": "Adrian Holmes",
            "sort_name": "",
            "email": "ash_norwich@yahoo.com",
            "twitter": "@AdriansHolmes",
            "facebook": "",
            "group": "Green",
            "group_id": "",
            "area_id": "45373",
            "area": "Norwich North",
            "chamber": "",
            "term": "",
            "start_date": "2017",
            "end_date": null,
            "image": null,
            "gender": "",
            "country": "59",
            "type": "candidate",
            "linkedin": null,
            "facebook_page": "https://www.facebook.com/adrian.holmes.965",
            "fundraising_page": null,
            "cv": null,
            "statement": "Hi.I am Adrian Holmes, a former city councillor and I'm standing for the Green Party in Norwich North. I grew up in Norfolk and went to local state schools before graduating as a geophysicist. We are facing a crisis that will affect the future of everybody in the UK and the rest of the world. We have to tackle global warming now for the sake of future generations. We can't do that without a more inclusive, fairer society, where everybody has  \na decent standard of living and access to free public healthcare and education.\nAs a parent, I understand the problems young people are facing today, whether in finding work or continuing their education. Equally, I understand the challenges facing carers having to take time off work to look after elderly or infirm relatives. We need a financial safety net that supports all of us, whatever we do.The Green Party is unique in supporting the introduction of a basic income for all. The government would pay every citizen a small amount of money to provide that safety net. With a basic income we could eradicate poverty in this country overnight. Parts of Norwich North have child poverty levels of over 40% and I find this wholly unacceptable. We need a radical alternative to the status quo politics of other parties, to fight inequality and poverty. If you want to elect a real alternative voice to the mainstream, please vote for me on June 8th."
        },
        {
            "id": 346,
            "ID": "3ed25308-f36d-42f3-a684-3ce32eb2d8c2",
            "name": "Adriano Espaillat",
            "sort_name": "Espaillat, Adriano",
            "email": "",
            "twitter": "",
            "facebook": "",
            "group": "Democrat",
            "group_id": "democrat",
            "area_id": "ocd-division/country:us/state:ny/cd:13",
            "area": "New York's 13th congressional district",
            "chamber": "House of Representatives",
            "term": "115",
            "start_date": "",
            "end_date": "",
            "image": "https://theunitedstates.io/images/congress/original/E000297.jpg",
            "gender": "male",
            "country": "170",
            "type": "Senator",
            "linkedin": null,
            "facebook_page": null,
            "fundraising_page": null,
            "cv": null,
            "statement": ""
        }
    ]
}