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

    "id": 4109,
    "username": "eleanor_field",
    "first_name": "Eleanor",
    "last_name": "Field",
    "url": "https://api.represent.me/api/users/4109/",
    "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/profile_pic_4109.jpg",
    "age": 47,
    "latest_compare": [],
    "follow": [],
    "locations": [
    "bio": "Prospective Parliamentary Candidate for Bath Green Party.  Standing up as an ordinary working mum; I want a green legacy for future generations.",
    "created_at": "2015-09-28T17:29:20.046000Z",
    "modified_at": "2019-04-15T15:53:11.125163Z",
    "is_deleted": false,
    "country": 59,
    "country_info": {
        "id": 59,
        "ID": "GBR",
        "name": "United Kingdom",
        "m_type": "country",
        "location": {
            "type": "Point",
            "coordinates": [
        "members_count": 9085,
        "question_count": 923,
        "created_at": "2016-03-20T04:26:45.483907Z",
        "type_description": null,
        "parent": null,
        "parent_url": null,
        "politicians": [],
        "modified_at": "2019-07-27T09:51:07.091181Z"
    "region": 45690,
    "region_info": {
        "id": 45690,
        "ID": "GBR_REGION_ENG",
        "name": "England",
        "m_type": "region",
        "location": {
            "type": "Point",
            "coordinates": [
        "members_count": 7867,
        "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-07-27T09:51:07.055081Z"
    "last_answer_time": "2017-08-11T22:12:33.581335Z",
    "politician": 1443,
    "politician_info": {
        "id": 1443,
        "ID": null,
        "name": "Eleanor Field",
        "sort_name": "",
        "email": "eleanorfield@hotmail.com",
        "twitter": "@GreenElField",
        "facebook": "",
        "group": "Green",
        "group_id": "",
        "area_id": "",
        "area": "Bath",
        "chamber": "",
        "term": "",
        "start_date": null,
        "end_date": null,
        "image": null,
        "gender": "",
        "country": "",
        "type": "candidate",
        "linkedin": null,
        "facebook_page": "https://www.facebook.com/BathGreens/",
        "fundraising_page": "http://www.crowdfunder.co.uk/eleanor-in-bath-help-greens-win-in-bath",
        "cv": null,
        "statement": "Our biggest problems in Bath are the cost of housing, an air pollution and air quality crisis, and overcrowded, expensive transport. Bath as a city voted to Remain and our local MP has since ignored our wishes.  Eleanor will tackle these problems at the root, rather than tinkering nervously at the edges like other candidates."
    "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": 1,
    "count_votes": 265,
    "count_question_votes": 238,
    "count_friends": 4,
    "count_comment_votes": 0,
    "count_choice_votes": 27,
    "count_group_memberships": 2,
    "count_following_tags": 1,
    "count_comments": 0,
    "count_following_users": 1,
    "count_followers": 2,
    "karma": 0