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


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


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/744/
Content-Type: application/json
Vary: Accept

    "id": 744,
    "username": "sian_berry",
    "first_name": "Sian",
    "last_name": "Berry",
    "url": "https://api.represent.me/api/users/744/",
    "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/profile_pic_744.jpg",
    "age": 45,
    "latest_compare": [],
    "follow": [],
    "locations": [],
    "bio": "I’m Sian Berry, Green candidate for London Mayor.",
    "created_at": "2015-07-17T13:09:17Z",
    "modified_at": "2019-05-29T16:43:38.410773Z",
    "is_deleted": false,
    "country": null,
    "country_info": null,
    "region": null,
    "region_info": null,
    "last_answer_time": "2016-10-28T16:08:33Z",
    "politician": 1527,
    "politician_info": {
        "id": 1527,
        "ID": "",
        "name": "Sian Berry",
        "sort_name": "",
        "email": "action@sianberry.london",
        "twitter": "@sianberry",
        "facebook": "",
        "group": "Green",
        "group_id": "",
        "area_id": "45260",
        "area": "Holborn & St Pancras",
        "chamber": "",
        "term": "",
        "start_date": "",
        "end_date": "",
        "image": "",
        "gender": "Female",
        "country": "59",
        "type": "candidate",
        "linkedin": "",
        "facebook_page": "",
        "fundraising_page": "",
        "cv": null,
        "statement": "Green London Assembly member. Stood for London Mayor 2008 and 2016: http://sianberry.london . Camden Councillor and GE 2017 candidate for Holborn & St Pancras."
    "is_email_verified": true,
    "is_admin_verified": true,
    "is_facebook_verified": true,
    "is_google_verified": false,
    "is_twitter_verified": false,
    "is_linkedin_verified": false,
    "is_stripe_verified": false,
    "verification_count": 3,
    "verification_score": 100,
    "count_questions": 44,
    "count_votes": 256,
    "count_question_votes": 236,
    "count_friends": 10,
    "count_comment_votes": 0,
    "count_choice_votes": 20,
    "count_group_memberships": 4,
    "count_following_tags": 3,
    "count_comments": 0,
    "count_following_users": 1,
    "count_followers": 19,
    "karma": 0