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

{
    "id": 7,
    "username": "eddowding",
    "first_name": "Ed",
    "last_name": "Dowding",
    "url": "https://api.represent.me/api/users/7/",
    "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/profile_pic_7_kD3OzJV.jpg",
    "age": 42,
    "latest_compare": [],
    "follow": [],
    "locations": [
        "https://api.represent.me/api/user_geos/750852/",
        "https://api.represent.me/api/user_geos/750851/",
        "https://api.represent.me/api/user_geos/750850/",
        "https://api.represent.me/api/user_geos/750849/",
        "https://api.represent.me/api/user_geos/750848/"
    ],
    "bio": "Eventually, everything will be recognised as priceless.",
    "created_at": "2015-01-31T09:10:43.588000Z",
    "modified_at": "2019-11-13T14:30:46.576943Z",
    "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": 9104,
        "question_count": 923,
        "created_at": "2016-03-20T04:26:45.483907Z",
        "type_description": null,
        "parent": null,
        "parent_url": null,
        "politicians": [],
        "modified_at": "2019-11-13T14:25:05.807095Z"
    },
    "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": 7886,
        "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-11-13T14:25:05.748012Z"
    },
    "last_answer_time": "2019-10-26T20:41:22.076275Z",
    "politician": null,
    "politician_info": null,
    "is_email_verified": true,
    "is_admin_verified": true,
    "is_facebook_verified": true,
    "is_google_verified": true,
    "is_twitter_verified": true,
    "is_linkedin_verified": true,
    "is_stripe_verified": false,
    "verification_count": 7,
    "verification_score": 100,
    "count_questions": 219,
    "count_votes": 2120,
    "count_question_votes": 1925,
    "count_friends": 162,
    "count_comment_votes": 106,
    "count_choice_votes": 195,
    "count_group_memberships": 37,
    "count_following_tags": 18,
    "count_comments": 76,
    "count_following_users": 132,
    "count_followers": 68,
    "karma": 120
}