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

{
    "count": 20356,
    "next": "https://api.represent.me/api/users/?page=2",
    "previous": null,
    "next_id": 2,
    "previous_id": null,
    "results": [
        {
            "id": 1092,
            "username": "gareth_hay",
            "first_name": "Gareth",
            "last_name": "Hay",
            "url": "https://api.represent.me/api/users/1092/",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/1441472446451.jpg",
            "age": 40,
            "latest_compare": [],
            "follow": [],
            "locations": [
                "https://api.represent.me/api/user_geos/720865/",
                "https://api.represent.me/api/user_geos/720864/",
                "https://api.represent.me/api/user_geos/720863/",
                "https://api.represent.me/api/user_geos/720862/",
                "https://api.represent.me/api/user_geos/720861/"
            ],
            "bio": "",
            "created_at": "2015-09-05T17:01:28.351000Z",
            "modified_at": "2019-04-15T15:54:04.771991Z",
            "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": 9084,
                "question_count": 923,
                "created_at": "2016-03-20T04:26:45.483907Z",
                "type_description": null,
                "parent": null,
                "parent_url": null,
                "politicians": [],
                "modified_at": "2019-07-15T09:12:13.796827Z"
            },
            "region": 45691,
            "region_info": {
                "id": 45691,
                "ID": "GBR_REGION_NIR",
                "name": "N. Ireland",
                "m_type": "region",
                "location": {
                    "type": "Point",
                    "coordinates": [
                        -6.693653617075079,
                        54.608672971781104
                    ]
                },
                "members_count": 137,
                "question_count": 0,
                "created_at": "2017-03-17T16:31:16.126098Z",
                "type_description": "Constituent Country",
                "parent": 59,
                "parent_url": "https://api.represent.me/api/simple_geos/59/?format=api",
                "politicians": [],
                "modified_at": "2018-08-06T00:28:18.826359Z"
            },
            "last_answer_time": "2015-09-05T17:04:49.457000Z",
            "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": 3,
            "count_question_votes": 3,
            "count_friends": 0,
            "count_comment_votes": 0,
            "count_choice_votes": 0,
            "count_group_memberships": 1,
            "count_following_tags": 1,
            "count_comments": 0,
            "count_following_users": 1,
            "count_followers": 0,
            "karma": 0
        },
        {
            "id": 5742,
            "username": "JamesSteel",
            "first_name": "James",
            "last_name": "Steel",
            "url": "https://api.represent.me/api/users/5742/",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/profile_pic_5742.jpg",
            "age": 28,
            "latest_compare": [],
            "follow": [],
            "locations": [],
            "bio": "",
            "created_at": "2016-06-26T01:14:46.105349Z",
            "modified_at": "2019-04-15T15:51:39.244973Z",
            "is_deleted": false,
            "country": null,
            "country_info": null,
            "region": null,
            "region_info": null,
            "last_answer_time": "2016-06-26T01:23:35.241445Z",
            "politician": null,
            "politician_info": null,
            "is_email_verified": false,
            "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": 1,
            "verification_score": 70,
            "count_questions": 0,
            "count_votes": 57,
            "count_question_votes": 55,
            "count_friends": 0,
            "count_comment_votes": 0,
            "count_choice_votes": 2,
            "count_group_memberships": 1,
            "count_following_tags": 1,
            "count_comments": 0,
            "count_following_users": 1,
            "count_followers": 0,
            "karma": 0
        },
        {
            "id": 6125,
            "username": "JonWaghorne",
            "first_name": "Jon",
            "last_name": "Waghorne",
            "url": "https://api.represent.me/api/users/6125/",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/profile_pic_6125.jpg",
            "age": 29,
            "latest_compare": [],
            "follow": [],
            "locations": [],
            "bio": "",
            "created_at": "2016-07-11T08:31:45.479778Z",
            "modified_at": "2019-04-15T15:51:39.255472Z",
            "is_deleted": false,
            "country": null,
            "country_info": null,
            "region": null,
            "region_info": null,
            "last_answer_time": "2016-07-11T08:32:29.024194Z",
            "politician": null,
            "politician_info": null,
            "is_email_verified": false,
            "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": 1,
            "verification_score": 70,
            "count_questions": 0,
            "count_votes": 3,
            "count_question_votes": 3,
            "count_friends": 0,
            "count_comment_votes": 0,
            "count_choice_votes": 0,
            "count_group_memberships": 2,
            "count_following_tags": 1,
            "count_comments": 0,
            "count_following_users": 1,
            "count_followers": 0,
            "karma": 0
        },
        {
            "id": 19862,
            "username": "JenniferJack",
            "first_name": "Jennifer",
            "last_name": "Jack",
            "url": "https://api.represent.me/api/users/19862/",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/profile_pic_19862.jpg",
            "age": 49,
            "latest_compare": [],
            "follow": [],
            "locations": [
                "https://api.represent.me/api/user_geos/754900/",
                "https://api.represent.me/api/user_geos/754899/",
                "https://api.represent.me/api/user_geos/754898/",
                "https://api.represent.me/api/user_geos/754897/",
                "https://api.represent.me/api/user_geos/754896/"
            ],
            "bio": "",
            "created_at": "2017-06-08T01:07:14.901249Z",
            "modified_at": "2019-04-15T15:51:39.265608Z",
            "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": 9084,
                "question_count": 923,
                "created_at": "2016-03-20T04:26:45.483907Z",
                "type_description": null,
                "parent": null,
                "parent_url": null,
                "politicians": [],
                "modified_at": "2019-07-15T09:12:13.796827Z"
            },
            "region": 45692,
            "region_info": {
                "id": 45692,
                "ID": "GBR_REGION_SCT",
                "name": "Scotland",
                "m_type": "region",
                "location": {
                    "type": "Point",
                    "coordinates": [
                        -4.17031149118809,
                        56.82898940564871
                    ]
                },
                "members_count": 660,
                "question_count": 5,
                "created_at": "2017-03-17T16:31:16.499017Z",
                "type_description": "Constituent Country",
                "parent": 59,
                "parent_url": "https://api.represent.me/api/simple_geos/59/?format=api",
                "politicians": [],
                "modified_at": "2019-01-23T06:58:40.346285Z"
            },
            "last_answer_time": "2017-06-08T01:24:05.120216Z",
            "politician": null,
            "politician_info": null,
            "is_email_verified": false,
            "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": 1,
            "verification_score": 70,
            "count_questions": 0,
            "count_votes": 119,
            "count_question_votes": 102,
            "count_friends": 0,
            "count_comment_votes": 0,
            "count_choice_votes": 17,
            "count_group_memberships": 1,
            "count_following_tags": 1,
            "count_comments": 0,
            "count_following_users": 1,
            "count_followers": 0,
            "karma": 0
        },
        {
            "id": 22,
            "username": "stiainĂ­n_jackson",
            "first_name": "StiainĂ­n",
            "last_name": "Jackson",
            "url": "https://api.represent.me/api/users/22/",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/prof_initials_fdecf1a835dc4765b24a6eae55a74d5c.png",
            "age": 37,
            "latest_compare": [],
            "follow": [],
            "locations": [
                "https://api.represent.me/api/user_geos/713550/",
                "https://api.represent.me/api/user_geos/713549/",
                "https://api.represent.me/api/user_geos/713548/",
                "https://api.represent.me/api/user_geos/713547/",
                "https://api.represent.me/api/user_geos/713546/",
                "https://api.represent.me/api/user_geos/713545/"
            ],
            "bio": "",
            "created_at": "2015-02-03T10:30:23.343000Z",
            "modified_at": "2019-04-15T15:51:39.274784Z",
            "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": 9084,
                "question_count": 923,
                "created_at": "2016-03-20T04:26:45.483907Z",
                "type_description": null,
                "parent": null,
                "parent_url": null,
                "politicians": [],
                "modified_at": "2019-07-15T09:12:13.796827Z"
            },
            "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": 7866,
                "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-07-15T09:12:13.773714Z"
            },
            "last_answer_time": "2015-03-02T15:35:02.511000Z",
            "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": 1,
            "count_votes": 55,
            "count_question_votes": 55,
            "count_friends": 0,
            "count_comment_votes": 0,
            "count_choice_votes": 0,
            "count_group_memberships": 1,
            "count_following_tags": 1,
            "count_comments": 0,
            "count_following_users": 1,
            "count_followers": 0,
            "karma": 0
        },
        {
            "id": 7066,
            "username": "MarkSquires",
            "first_name": "Mark",
            "last_name": "Squires",
            "url": "https://api.represent.me/api/users/7066/",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/profile_pic_7066.jpg",
            "age": null,
            "latest_compare": [],
            "follow": [],
            "locations": [],
            "bio": "",
            "created_at": "2016-11-04T17:27:07.190525Z",
            "modified_at": "2019-04-15T15:51:39.284566Z",
            "is_deleted": false,
            "country": null,
            "country_info": null,
            "region": null,
            "region_info": null,
            "last_answer_time": "2016-11-04T17:29:08.476795Z",
            "politician": null,
            "politician_info": null,
            "is_email_verified": false,
            "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": 1,
            "verification_score": 70,
            "count_questions": 0,
            "count_votes": 1,
            "count_question_votes": 0,
            "count_friends": 0,
            "count_comment_votes": 0,
            "count_choice_votes": 1,
            "count_group_memberships": 1,
            "count_following_tags": 1,
            "count_comments": 0,
            "count_following_users": 1,
            "count_followers": 0,
            "karma": 0
        },
        {
            "id": 12375,
            "username": "Memyselfandi",
            "first_name": "",
            "last_name": "",
            "url": "https://api.represent.me/api/users/12375/",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/prof_initials_8ac98282c93c46e0aa81c366a58fc553.png",
            "age": null,
            "latest_compare": [],
            "follow": [],
            "locations": [],
            "bio": "",
            "created_at": "2017-01-25T11:30:17.961678Z",
            "modified_at": "2019-04-15T15:51:39.294132Z",
            "is_deleted": false,
            "country": null,
            "country_info": null,
            "region": null,
            "region_info": null,
            "last_answer_time": "2017-01-25T11:31:02.037792Z",
            "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": 1,
            "count_question_votes": 0,
            "count_friends": 0,
            "count_comment_votes": 0,
            "count_choice_votes": 1,
            "count_group_memberships": 1,
            "count_following_tags": 1,
            "count_comments": 0,
            "count_following_users": 1,
            "count_followers": 0,
            "karma": 0
        },
        {
            "id": 6119,
            "username": "IanKnapp",
            "first_name": "Ian",
            "last_name": "Knapp",
            "url": "https://api.represent.me/api/users/6119/",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/profile_pic_6119.jpg",
            "age": 22,
            "latest_compare": [],
            "follow": [],
            "locations": [],
            "bio": "",
            "created_at": "2016-07-09T21:18:54.104912Z",
            "modified_at": "2019-04-15T15:51:39.303105Z",
            "is_deleted": false,
            "country": null,
            "country_info": null,
            "region": null,
            "region_info": null,
            "last_answer_time": "2016-07-09T21:27:11.127318Z",
            "politician": null,
            "politician_info": null,
            "is_email_verified": false,
            "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": 1,
            "verification_score": 70,
            "count_questions": 0,
            "count_votes": 44,
            "count_question_votes": 41,
            "count_friends": 0,
            "count_comment_votes": 0,
            "count_choice_votes": 3,
            "count_group_memberships": 2,
            "count_following_tags": 2,
            "count_comments": 0,
            "count_following_users": 1,
            "count_followers": 0,
            "karma": 0
        },
        {
            "id": 8968,
            "username": "FelicityWynne",
            "first_name": "Felicity",
            "last_name": "Wynne",
            "url": "https://api.represent.me/api/users/8968/",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/profile_pic_8968_aXklwp1.jpg",
            "age": 27,
            "latest_compare": [],
            "follow": [],
            "locations": [
                "https://api.represent.me/api/user_geos/707594/",
                "https://api.represent.me/api/user_geos/707593/",
                "https://api.represent.me/api/user_geos/707592/",
                "https://api.represent.me/api/user_geos/707591/",
                "https://api.represent.me/api/user_geos/707590/"
            ],
            "bio": "",
            "created_at": "2016-12-18T09:37:12.347979Z",
            "modified_at": "2019-04-15T15:51:39.313181Z",
            "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": 9084,
                "question_count": 923,
                "created_at": "2016-03-20T04:26:45.483907Z",
                "type_description": null,
                "parent": null,
                "parent_url": null,
                "politicians": [],
                "modified_at": "2019-07-15T09:12:13.796827Z"
            },
            "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": 7866,
                "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-07-15T09:12:13.773714Z"
            },
            "last_answer_time": "2017-01-27T10:33:42.425698Z",
            "politician": null,
            "politician_info": null,
            "is_email_verified": false,
            "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": 1,
            "verification_score": 70,
            "count_questions": 0,
            "count_votes": 28,
            "count_question_votes": 27,
            "count_friends": 1,
            "count_comment_votes": 0,
            "count_choice_votes": 1,
            "count_group_memberships": 2,
            "count_following_tags": 1,
            "count_comments": 0,
            "count_following_users": 1,
            "count_followers": 0,
            "karma": 0
        },
        {
            "id": 3424,
            "username": "5604a331ae1d60c73e753bea",
            "first_name": "None",
            "last_name": "None",
            "url": "https://api.represent.me/api/users/3424/",
            "photo": "https://s3.eu-central-1.amazonaws.com:443/static.represent.me/images/prof_initials_b0f08d2d5db648a09fd6194bcc22dfe6.png",
            "age": null,
            "latest_compare": [],
            "follow": [],
            "locations": [],
            "bio": "",
            "created_at": "2015-09-25T01:28:17.155000Z",
            "modified_at": "2019-04-15T15:51:39.322636Z",
            "is_deleted": false,
            "country": null,
            "country_info": null,
            "region": null,
            "region_info": null,
            "last_answer_time": "2015-09-25T01:30:02.335000Z",
            "politician": null,
            "politician_info": null,
            "is_email_verified": false,
            "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": 0,
            "verification_score": 35,
            "count_questions": 0,
            "count_votes": 43,
            "count_question_votes": 43,
            "count_friends": 0,
            "count_comment_votes": 0,
            "count_choice_votes": 0,
            "count_group_memberships": 1,
            "count_following_tags": 1,
            "count_comments": 0,
            "count_following_users": 1,
            "count_followers": 0,
            "karma": 0
        }
    ]
}