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/18264/
HTTP 200 OK
Allow: GET, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 18264,
    "username": "russellshawhiggs_12",
    "first_name": "Russell Shaw",
    "last_name": "Higgs",
    "url": "https://api.represent.me/api/users/18264/",
    "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/91e64dc2-33ec-44a0-a79b-ccd2ec6d8371.png",
    "age": 59,
    "latest_compare": [],
    "follow": [],
    "locations": [
        "https://api.represent.me/api/user_geos/754321/",
        "https://api.represent.me/api/user_geos/754320/",
        "https://api.represent.me/api/user_geos/754319/",
        "https://api.represent.me/api/user_geos/754318/",
        "https://api.represent.me/api/user_geos/754317/",
        "https://api.represent.me/api/user_geos/754316/"
    ],
    "bio": "I am a self employed Artist and an experienced Political Activist. I have lived in Hackney on the Pembury Estate since 1995.",
    "created_at": "2017-06-02T18:46:46.756826Z",
    "modified_at": "2019-04-15T15:53:07.357408Z",
    "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/",
        "politicians": [],
        "modified_at": "2019-10-01T16:01:15.883160Z"
    },
    "last_answer_time": "2017-06-04T11:33:49.456600Z",
    "politician": 1451,
    "politician_info": {
        "id": 1451,
        "ID": null,
        "name": "Russell Shaw Higgs",
        "sort_name": "",
        "email": "russellshawhiggs@gmail.com",
        "twitter": "@citizen_higgs",
        "facebook": "",
        "group": "Independent",
        "group_id": "",
        "area_id": "45231",
        "area": "Hackney South and Shoreditch",
        "chamber": "",
        "term": "",
        "start_date": "2017",
        "end_date": null,
        "image": null,
        "gender": "",
        "country": "59",
        "type": "candidate",
        "linkedin": null,
        "facebook_page": "https://www.facebook.com/russellhiggs",
        "fundraising_page": null,
        "cv": null,
        "statement": "I am a passionate advocate of an UNCONDITIONAL BASIC INCOME. Images of my UBI street posters have featured online in numerous international articles. \n\nI also believe in SORTITION - replacing all career party politicians with a more diverse assortment of citizen representatives via lottery. \n\nThe priority of my EDUCATION policy is, that the main purpose of schools should be to encourage and assist children towards becoming self directed adults in an active democracy. \n\nAnd I believe that daily mainstream news and infotainment should take a responsible and active role in encouraging COMPASSION and KINDNESS, as a foundation of political decision making and our day to day lives.\n\nPlus, no censorship of the internet. Censorship is not the answer to anything.\n\nMANIFESTO VIDEO PLAYLIST [https://www.youtube.com/playlist?list=PLHs994SOAEHqNNWUStvtbDH48GD608mrX](https://www.youtube.com/playlist?list=PLHs994SOAEHqNNWUStvtbDH48GD608mrX)\n\n[WIKIPEDIA](https://en.wikipedia.org/wiki/Russell_Shaw_Higgs)"
    },
    "is_email_verified": true,
    "is_admin_verified": false,
    "is_facebook_verified": false,
    "is_google_verified": false,
    "is_twitter_verified": false,
    "is_linkedin_verified": false,
    "is_stripe_verified": false,
    "verification_count": 1,
    "verification_score": 59,
    "count_questions": 0,
    "count_votes": 146,
    "count_question_votes": 124,
    "count_friends": 0,
    "count_comment_votes": 0,
    "count_choice_votes": 22,
    "count_group_memberships": 1,
    "count_following_tags": 1,
    "count_comments": 1,
    "count_following_users": 1,
    "count_followers": 3,
    "karma": 0
}