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

{
    "id": 20628,
    "username": "bseri",
    "first_name": "Bruno",
    "last_name": "",
    "url": "https://api.represent.me/api/users/20628/",
    "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/prof_initials_63c3ff2d010d4cf8bb28a76d5fbc1bb6.png",
    "age": 21,
    "latest_compare": [],
    "follow": [],
    "locations": [
        "https://api.represent.me/api/user_geos/759578/",
        "https://api.represent.me/api/user_geos/759577/"
    ],
    "bio": "",
    "created_at": "2018-07-24T22:21:17.862326Z",
    "modified_at": "2019-04-15T15:52:37.782124Z",
    "is_deleted": false,
    "country": 25,
    "country_info": {
        "id": 25,
        "ID": "BRA",
        "name": "Brazil",
        "m_type": "country",
        "location": {
            "type": "Point",
            "coordinates": [
                -53.092482362387045,
                -10.78085882890515
            ]
        },
        "members_count": 13,
        "question_count": 1,
        "created_at": "2016-03-20T04:26:45.400714Z",
        "type_description": null,
        "parent": null,
        "parent_url": null,
        "politicians": [],
        "modified_at": "2018-07-24T22:24:17.334522Z"
    },
    "region": 968,
    "region_info": {
        "id": 968,
        "ID": "2023",
        "name": "São Paulo",
        "m_type": "region",
        "location": {
            "type": "Point",
            "coordinates": [
                -48.731456755336566,
                -22.25841366636023
            ]
        },
        "members_count": 7,
        "question_count": 0,
        "created_at": "2016-03-20T04:26:48.459129Z",
        "type_description": null,
        "parent": 25,
        "parent_url": "https://api.represent.me/api/simple_geos/25/",
        "politicians": [],
        "modified_at": "2018-07-24T22:24:17.318556Z"
    },
    "last_answer_time": "2018-07-24T22:28:04.498000Z",
    "politician": null,
    "politician_info": null,
    "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": 26,
    "count_question_votes": 23,
    "count_friends": 0,
    "count_comment_votes": 0,
    "count_choice_votes": 3,
    "count_group_memberships": 1,
    "count_following_tags": 1,
    "count_comments": 0,
    "count_following_users": 1,
    "count_followers": 0,
    "karma": 0
}