API endpoint that allows users to be viewed.

Genders are `{0:'unknown', 1:'male', 2:'female'}

eg http://localhost:8000/api/users/?count_questions__gte=5 to get only users who have asked at least 5 questions

people following me: http://localhost:8000/api/users/?following_users__following=1

people I follow: http://localhost:8000/api/users/?follower_users__user=1

or shorthand for the same:

people following 1: http://localhost:8000/api/users/?is_following=1

people 1 follows: http://localhost:8000/api/users/?is_followed_by=1

Custom Compare filtering & sorting:

we can filter for users who have previously been compared, with a minimum overlap, a pick a sorting method based on their cached compare

http://localhost:8000/api/users/?compare_check={{ userid }},{{ minimum_overlap }},{{ sorting_method }}

eg: http://localhost:8000/api/users/?page=1&page_size=15&compare_check=1,20,compares__difference_percent

Demographics

check out /demographics to see demographic information about a query

eg http://localhost:8000/api/users/demographics/?count_questions__gte=5 to get demographic information on the first example

you may also set a start date, and number of steps on a demographic query

Geographics

check out /geographics to see demographic information about a query

eg http://localhost:8000/api/users/geographics/?count_questions__gte=5 to get geographics information on the first example

GET /api/users/18275/
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 18275,
    "username": "IrisWhite",
    "first_name": "Iris",
    "last_name": "White",
    "url": "https://api.represent.me/api/users/18275/",
    "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/profile_pic_18275.jpg",
    "age": 78,
    "latest_compare": [],
    "follow": [],
    "locations": [
        "https://api.represent.me/api/user_geos/750501/",
        "https://api.represent.me/api/user_geos/750500/",
        "https://api.represent.me/api/user_geos/750499/",
        "https://api.represent.me/api/user_geos/750498/",
        "https://api.represent.me/api/user_geos/750497/"
    ],
    "bio": "",
    "created_at": "2017-06-02T19:24:23.694462Z",
    "modified_at": "2019-04-15T15:54:59.104063Z",
    "is_deleted": false,
    "country": 59,
    "country_info": {
        "id": 59,
        "ID": "GBR",
        "name": "United Kingdom",
        "m_type": "country",
        "location": {
            "type": "Point",
            "coordinates": [
                -2.8869514831036756,
                54.14704818919766
            ]
        },
        "members_count": 9093,
        "question_count": 923,
        "created_at": "2016-03-20T04:26:45.483907Z",
        "type_description": null,
        "parent": null,
        "parent_url": null,
        "politicians": [],
        "modified_at": "2019-10-01T16:01:15.905104Z"
    },
    "region": 45690,
    "region_info": {
        "id": 45690,
        "ID": "GBR_REGION_ENG",
        "name": "England",
        "m_type": "region",
        "location": {
            "type": "Point",
            "coordinates": [
                -1.4587100703941027,
                52.59501517841384
            ]
        },
        "members_count": 7875,
        "question_count": 13,
        "created_at": "2017-03-17T16:31:15.805339Z",
        "type_description": "Constituent Country",
        "parent": 59,
        "parent_url": "https://api.represent.me/api/simple_geos/59/?format=api",
        "politicians": [],
        "modified_at": "2019-10-01T16:01:15.883160Z"
    },
    "last_answer_time": "2017-06-07T09:39:37.258712Z",
    "politician": 1493,
    "politician_info": {
        "id": 1493,
        "ID": null,
        "name": "Iris White",
        "sort_name": "",
        "email": "iris@globalhealth.plus.com",
        "twitter": "N/A",
        "facebook": "",
        "group": "Christian Peoples Alliance",
        "group_id": "",
        "area_id": "",
        "area": "",
        "chamber": "",
        "term": "",
        "start_date": "2017",
        "end_date": null,
        "image": null,
        "gender": "",
        "country": "59",
        "type": "candidate",
        "linkedin": "https://www.linkedin.com/feed/",
        "facebook_page": "https://www.facebook.com/iris.white.3975",
        "fundraising_page": "",
        "cv": null,
        "statement": "Rev Iris White (Rev), the Christian People Alliance (CPA)\n\nWe are not here to preach but to highlight and oppose some serious issues affecting the economy of the UK.  Especially the NHS.  Born 1940 I am still a very proactive member of society.  Self-employed most of my working life. Last 15 years I ran my own health products business, prior to which I ran my own care home for 16 years.  Currently I have secured a voluntary position locally with the PDSA.  I am a community person.\nWhat are your top 3 priorities for North Thanet?\nThe NHS – as well as keeping QEQM Hospital in focus.  Whilst we, it seems, under the Conservatives, are to expect a new training hospital project in Canterbury, the question of a trauma unit set outside our immediate area, will also be under our scrutiny.  We aim to keep QEQM activated in all areas and this can be done by disarming the Trident project costing millions a year by seeing in place a means of new technology that would in the event of attack, divert a missile into the ocean.  A great deal of funding would then be released that could help the NHS immensely.  Not only this but also opposing abortions – over 186,000 a year – some of which are funded.  A real issue to be opposed is the abortion law.  QEQM is a priority service in itself and it needs cash inflow to update it.\nHousing the homeless. – Big challenge but let’s start by looking at the Manston issue versus Westwood.  The land at Manston I personally feel would create a wonderful ‘Bluewater’ style shopping arena and add to job increase.  Incidentally we oppose the zero hours contract currently in use.  Looking at Westwood area it would seem wiser because of the extent of housing already being produced there, to move the shopping areas to Manston as mentioned and  evolve the space for housing.  One idea I have is purpose built studio style apartments which could be rented (or purchased).  These projects are currently running successfully in the market in the Manchester area and surrounding districts.  Investors are making this possible.  However I also feel the Council needs to take on council housing and the studio apartments would be a great way to go.\nWhat are the most important economic factors for North Thanet and how do you aim to boost them? (i.e. tourism)\nMentioned some of the economic factors above.  Tourism for instance would be boosted with a ‘Bluewater’ Style shopping arena.  People will travel for day out trips, industry would be boosted in the catering field as well as other outlets. But again pulling back the billions of pounds spent on the issues already mentioned e.g.\n£50 billion being spent on maintaining Trident – divert this into the NHS\nIntroduce a 5% Turnover Tax ensuring large multiple-nationals pay their way in society.\nEnsure benefits for the disabled and mentally ill are maintained and not removed.\nProvide emergency benefits for applicants while their claim is being assessed\nReallocate foreign aid to those who really need it – eg refugees in camps – and away from           nuclear power or those countries which persecute Christians eg The £486 million to Pakistan\nSupport marriages and families whose breakdown is costing the nation £48 billion a year\nHave pro-life stance, saving 186,000 babies a year from being aborted\nWhat experience would you bring to the role of MP?\nFirst and foremost I am a Christian and I bring Christian morals to the fore for the good of Thanet indeed, the whole nation.\nI am grounded in caring for people.\nI began my working life as a nurse so I know the inside of NHS life as well as the on outside as patient on many occasions where I have valued hospital availability and treatment and benefitted from not being ambulanced off to Ashford or Canterbury  in the several emergencies I have personally experienced.\nI served a 3 year term on the board of Governors for the South West Ambulance Trust and was re-elected by constituents for a 2nd term. During which time I held the positions of Deputy Lead and Lead Governor having won the respect of my peers.\nI hold a BA degree in theology and pastoring etc.\nI am ordained.\nI am also a qualified Nutritional Therapist; A qualified Bereavement Counsellor; A qualified Veterinary Support Assistant diploma (O.A. Dip.) Currently studying Level 3 Veterinary Nursing. Completed a course in Safeguarding Vulnerable Adults/Mental Capacity Act/Deprivation of Lability Safeguards/Domestic Abuse and I have also been a hospital Chaplain.\nI would like to see younger people follow a similar approach and look at such training courses that are economically viable, in order to broader their own horizon maybe to the level of self-employment\nI am still a member of the University of Life.\nI currently write for HEART Christian newspaper which has a 25,000 print run and goes out to over 900 churches across Kent and Sussex London and is spreading nationally."
    },
    "is_email_verified": true,
    "is_admin_verified": false,
    "is_facebook_verified": true,
    "is_google_verified": false,
    "is_twitter_verified": false,
    "is_linkedin_verified": false,
    "is_stripe_verified": false,
    "verification_count": 2,
    "verification_score": 77,
    "count_questions": 0,
    "count_votes": 222,
    "count_question_votes": 195,
    "count_friends": 0,
    "count_comment_votes": 0,
    "count_choice_votes": 27,
    "count_group_memberships": 1,
    "count_following_tags": 1,
    "count_comments": 4,
    "count_following_users": 1,
    "count_followers": 2,
    "karma": 0
}