API endpoint that allows Questions to be viewed or edited.

POST

{
"question": "Title Here",
"tags": [{"tag":{"id":20}}, {"tag":{"id":25}}],
"choices": [{"text":"Choice1"}, {"text":"Choice2"}, {"text":"Choice3"}],
"collections": [{"parent":{"id":X}}],
"description": "More Info Here",
"ogImage": null,
"group": 39,
"geo": 12,
"links": [{"link":"http://google.com", "title":"google"}] #title is optional
}

Searching and filtering

to find questions asked by molly, answered by chozabu, sorted by date of chozabs answer

http://localhost:8000/api/questions/?ordering=-votes__created_at&votes__user__username=chozabu&user__username=molly_bishop1

to find questions with keyword represent, in order of vote count

http://localhost:8000/api/questions/?ordering=-direct_vote_count&search=represent

A shortcut to find answers by a user, and avoid dupe results is answered_by - which takes a user id

http://localhost:8000/api/questions/?answered_by=1

to find questions with any word in question text:

http://localhost:8000/api/questions/?exact_question=word

Extra info on filtering questions in relation to groups:

group=6 # will get active questions in group 6 (represent)
in_group_all=6 # will get all questions in group 6, active or not
in_group_disabled=6 # will only get disabled questions in group 6

count

checkout count to get just the number of questions matching a query

nearby

check out nearby to get questions from district | region | country

Personal History

check out my_history to get questions in the order you answered them, this should be equivalent to /api/questions/?ordering=-votes__created_at&votes__user__username=YOUR_ID

in detail view:

check out friends_answers to get friends answers

GET /api/questions/2226/
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 2226,
    "url": "https://api.represent.me/api/questions/2226/",
    "question": "Which political party do you most closely associate with?",
    "slug": "which-political-party-do-you-most-closely-associate-with",
    "my_vote": [],
    "user": {
        "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": 9105,
            "question_count": 923,
            "created_at": "2016-03-20T04:26:45.483907Z",
            "type_description": null,
            "parent": null,
            "parent_url": null,
            "politicians": [],
            "modified_at": "2019-11-14T22:22:17.512629Z"
        },
        "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": 7887,
            "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-14T22:22:17.491362Z"
        },
        "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
    },
    "tags": [
        {
            "id": 5208,
            "tag": {
                "id": 769,
                "text": "important",
                "followers_count": 0,
                "questions_count": 1682,
                "votes_count": 721215
            },
            "created_at": "2016-11-24T18:21:13.976012Z",
            "modified_at": "2019-10-29T09:31:20.677425Z",
            "direct_vote_count": 51,
            "direct_value": 4.05882352941176,
            "direct_sum": 54.0,
            "direct_heat": 1.92022263450835,
            "direct_consensus": 0.280276816608997,
            "direct_skipped": 0,
            "direct_minimum": 12,
            "direct_low": 0,
            "direct_medium": 0,
            "direct_high": 0,
            "direct_maximum": 39
        },
        {
            "id": 4482,
            "tag": {
                "id": 584,
                "text": "principle",
                "followers_count": 20217,
                "questions_count": 86,
                "votes_count": 98615
            },
            "created_at": "2016-08-19T19:11:28.345018Z",
            "modified_at": "2016-08-19T19:11:28.345336Z",
            "direct_vote_count": 0,
            "direct_value": 0.0,
            "direct_sum": 0.0,
            "direct_heat": 0.0,
            "direct_consensus": 0.5,
            "direct_skipped": 0,
            "direct_minimum": 0,
            "direct_low": 0,
            "direct_medium": 0,
            "direct_high": 0,
            "direct_maximum": 0
        },
        {
            "id": 4483,
            "tag": {
                "id": 278,
                "text": "party politics",
                "followers_count": 6,
                "questions_count": 7,
                "votes_count": 5895
            },
            "created_at": "2016-08-19T19:11:28.351821Z",
            "modified_at": "2016-08-19T19:11:28.352146Z",
            "direct_vote_count": 0,
            "direct_value": 0.0,
            "direct_sum": 0.0,
            "direct_heat": 0.0,
            "direct_consensus": 0.5,
            "direct_skipped": 0,
            "direct_minimum": 0,
            "direct_low": 0,
            "direct_medium": 0,
            "direct_high": 0,
            "direct_maximum": 0
        }
    ],
    "choices": [
        {
            "id": 527,
            "url": "https://api.represent.me/api/question_choices/527/",
            "text": "Green Party",
            "mongo_number": null,
            "direct_vote_count": 651,
            "direct_value": 5.0,
            "direct_sum": 1302.0,
            "direct_heat": 27.3529411764706,
            "direct_consensus": 1.0,
            "direct_skipped": 0,
            "direct_minimum": 0,
            "direct_low": 0,
            "direct_medium": 0,
            "direct_high": 0,
            "direct_maximum": 651,
            "created_at": "2016-08-19T19:11:28Z",
            "modified_at": "2019-11-13T14:29:43.587675Z",
            "liquid_vote_count": 651,
            "liquid_value": 5.0,
            "liquid_sum": 1302.0,
            "liquid_heat": 27.3529411764706,
            "liquid_consensus": 1.0,
            "liquid_skipped": 0,
            "liquid_minimum": 0,
            "liquid_low": 0,
            "liquid_medium": 0,
            "liquid_high": 0,
            "liquid_maximum": 651,
            "polarisation": 0.447213595499958
        },
        {
            "id": 535,
            "url": "https://api.represent.me/api/question_choices/535/",
            "text": "Ulster Unionist Party",
            "mongo_number": null,
            "direct_vote_count": 8,
            "direct_value": 5.0,
            "direct_sum": 16.0,
            "direct_heat": 0.336134453781513,
            "direct_consensus": 1.0,
            "direct_skipped": 0,
            "direct_minimum": 0,
            "direct_low": 0,
            "direct_medium": 0,
            "direct_high": 0,
            "direct_maximum": 8,
            "created_at": "2016-08-19T19:11:28.342206Z",
            "modified_at": "2019-11-13T14:29:43.565766Z",
            "liquid_vote_count": 8,
            "liquid_value": 5.0,
            "liquid_sum": 16.0,
            "liquid_heat": 0.336134453781513,
            "liquid_consensus": 1.0,
            "liquid_skipped": 0,
            "liquid_minimum": 0,
            "liquid_low": 0,
            "liquid_medium": 0,
            "liquid_high": 0,
            "liquid_maximum": 8,
            "polarisation": 0.447213595499958
        },
        {
            "id": 528,
            "url": "https://api.represent.me/api/question_choices/528/",
            "text": "Labour Party",
            "mongo_number": null,
            "direct_vote_count": 1440,
            "direct_value": 5.0,
            "direct_sum": 2880.0,
            "direct_heat": 60.5042016806723,
            "direct_consensus": 1.0,
            "direct_skipped": 0,
            "direct_minimum": 0,
            "direct_low": 0,
            "direct_medium": 0,
            "direct_high": 0,
            "direct_maximum": 1440,
            "created_at": "2016-08-19T19:11:28Z",
            "modified_at": "2019-11-13T14:29:43.611657Z",
            "liquid_vote_count": 1440,
            "liquid_value": 5.0,
            "liquid_sum": 2880.0,
            "liquid_heat": 60.5042016806723,
            "liquid_consensus": 1.0,
            "liquid_skipped": 0,
            "liquid_minimum": 0,
            "liquid_low": 0,
            "liquid_medium": 0,
            "liquid_high": 0,
            "liquid_maximum": 1440,
            "polarisation": 0.447213595499958
        },
        {
            "id": 1110,
            "url": "https://api.represent.me/api/question_choices/1110/",
            "text": "None",
            "mongo_number": null,
            "direct_vote_count": 434,
            "direct_value": 5.0,
            "direct_sum": 868.0,
            "direct_heat": 22.8902953586498,
            "direct_consensus": 1.0,
            "direct_skipped": 0,
            "direct_minimum": 0,
            "direct_low": 0,
            "direct_medium": 0,
            "direct_high": 0,
            "direct_maximum": 434,
            "created_at": "2017-04-19T11:58:39.754797Z",
            "modified_at": "2019-11-13T14:29:43.654150Z",
            "liquid_vote_count": 434,
            "liquid_value": 5.0,
            "liquid_sum": 868.0,
            "liquid_heat": 22.8902953586498,
            "liquid_consensus": 1.0,
            "liquid_skipped": 0,
            "liquid_minimum": 0,
            "liquid_low": 0,
            "liquid_medium": 0,
            "liquid_high": 0,
            "liquid_maximum": 434,
            "polarisation": 0.447213595499958
        },
        {
            "id": 534,
            "url": "https://api.represent.me/api/question_choices/534/",
            "text": "Democratic Unionist Party",
            "mongo_number": null,
            "direct_vote_count": 16,
            "direct_value": 5.0,
            "direct_sum": 32.0,
            "direct_heat": 0.672268907563025,
            "direct_consensus": 1.0,
            "direct_skipped": 0,
            "direct_minimum": 0,
            "direct_low": 0,
            "direct_medium": 0,
            "direct_high": 0,
            "direct_maximum": 16,
            "created_at": "2016-08-19T19:11:28Z",
            "modified_at": "2019-11-13T14:29:43.673560Z",
            "liquid_vote_count": 16,
            "liquid_value": 5.0,
            "liquid_sum": 32.0,
            "liquid_heat": 0.672268907563025,
            "liquid_consensus": 1.0,
            "liquid_skipped": 0,
            "liquid_minimum": 0,
            "liquid_low": 0,
            "liquid_medium": 0,
            "liquid_high": 0,
            "liquid_maximum": 16,
            "polarisation": 0.447213595499958
        },
        {
            "id": 529,
            "url": "https://api.represent.me/api/question_choices/529/",
            "text": "Conservative Party",
            "mongo_number": null,
            "direct_vote_count": 578,
            "direct_value": 5.0,
            "direct_sum": 1156.0,
            "direct_heat": 24.2857142857143,
            "direct_consensus": 1.0,
            "direct_skipped": 0,
            "direct_minimum": 0,
            "direct_low": 0,
            "direct_medium": 0,
            "direct_high": 0,
            "direct_maximum": 578,
            "created_at": "2016-08-19T19:11:28Z",
            "modified_at": "2019-11-13T14:29:43.632304Z",
            "liquid_vote_count": 578,
            "liquid_value": 5.0,
            "liquid_sum": 1156.0,
            "liquid_heat": 24.2857142857143,
            "liquid_consensus": 1.0,
            "liquid_skipped": 0,
            "liquid_minimum": 0,
            "liquid_low": 0,
            "liquid_medium": 0,
            "liquid_high": 0,
            "liquid_maximum": 578,
            "polarisation": 0.447213595499958
        },
        {
            "id": 532,
            "url": "https://api.represent.me/api/question_choices/532/",
            "text": "Liberal Democrats",
            "mongo_number": null,
            "direct_vote_count": 1264,
            "direct_value": 5.0,
            "direct_sum": 2528.0,
            "direct_heat": 53.109243697479,
            "direct_consensus": 1.0,
            "direct_skipped": 0,
            "direct_minimum": 0,
            "direct_low": 0,
            "direct_medium": 0,
            "direct_high": 0,
            "direct_maximum": 1264,
            "created_at": "2016-08-19T19:11:28Z",
            "modified_at": "2019-11-13T14:29:43.696939Z",
            "liquid_vote_count": 1264,
            "liquid_value": 5.0,
            "liquid_sum": 2528.0,
            "liquid_heat": 53.109243697479,
            "liquid_consensus": 1.0,
            "liquid_skipped": 0,
            "liquid_minimum": 0,
            "liquid_low": 0,
            "liquid_medium": 0,
            "liquid_high": 0,
            "liquid_maximum": 1264,
            "polarisation": 0.447213595499958
        },
        {
            "id": 531,
            "url": "https://api.represent.me/api/question_choices/531/",
            "text": "Scottish National Party",
            "mongo_number": null,
            "direct_vote_count": 106,
            "direct_value": 5.0,
            "direct_sum": 212.0,
            "direct_heat": 4.45378151260504,
            "direct_consensus": 1.0,
            "direct_skipped": 0,
            "direct_minimum": 0,
            "direct_low": 0,
            "direct_medium": 0,
            "direct_high": 0,
            "direct_maximum": 106,
            "created_at": "2016-08-19T19:11:28Z",
            "modified_at": "2019-11-13T14:29:43.716119Z",
            "liquid_vote_count": 106,
            "liquid_value": 5.0,
            "liquid_sum": 212.0,
            "liquid_heat": 4.45378151260504,
            "liquid_consensus": 1.0,
            "liquid_skipped": 0,
            "liquid_minimum": 0,
            "liquid_low": 0,
            "liquid_medium": 0,
            "liquid_high": 0,
            "liquid_maximum": 106,
            "polarisation": 0.447213595499958
        },
        {
            "id": 973,
            "url": "https://api.represent.me/api/question_choices/973/",
            "text": "Social Democratic and Labour Party (Northern Ireland)",
            "mongo_number": null,
            "direct_vote_count": 67,
            "direct_value": 5.0,
            "direct_sum": 134.0,
            "direct_heat": 3.22425409047161,
            "direct_consensus": 1.0,
            "direct_skipped": 0,
            "direct_minimum": 0,
            "direct_low": 0,
            "direct_medium": 0,
            "direct_high": 0,
            "direct_maximum": 67,
            "created_at": "2017-01-17T17:20:26Z",
            "modified_at": "2019-11-13T14:29:43.734286Z",
            "liquid_vote_count": 67,
            "liquid_value": 5.0,
            "liquid_sum": 134.0,
            "liquid_heat": 3.22425409047161,
            "liquid_consensus": 1.0,
            "liquid_skipped": 0,
            "liquid_minimum": 0,
            "liquid_low": 0,
            "liquid_medium": 0,
            "liquid_high": 0,
            "liquid_maximum": 67,
            "polarisation": 0.447213595499958
        },
        {
            "id": 974,
            "url": "https://api.represent.me/api/question_choices/974/",
            "text": "Co-operative Party",
            "mongo_number": null,
            "direct_vote_count": 25,
            "direct_value": 5.0,
            "direct_sum": 50.0,
            "direct_heat": 1.20307988450433,
            "direct_consensus": 1.0,
            "direct_skipped": 0,
            "direct_minimum": 0,
            "direct_low": 0,
            "direct_medium": 0,
            "direct_high": 0,
            "direct_maximum": 25,
            "created_at": "2017-01-17T17:22:45Z",
            "modified_at": "2019-11-13T14:29:43.752298Z",
            "liquid_vote_count": 25,
            "liquid_value": 5.0,
            "liquid_sum": 50.0,
            "liquid_heat": 1.20307988450433,
            "liquid_consensus": 1.0,
            "liquid_skipped": 0,
            "liquid_minimum": 0,
            "liquid_low": 0,
            "liquid_medium": 0,
            "liquid_high": 0,
            "liquid_maximum": 25,
            "polarisation": 0.447213595499958
        },
        {
            "id": 533,
            "url": "https://api.represent.me/api/question_choices/533/",
            "text": "UK Independence Party",
            "mongo_number": null,
            "direct_vote_count": 102,
            "direct_value": 5.0,
            "direct_sum": 204.0,
            "direct_heat": 4.28571428571429,
            "direct_consensus": 1.0,
            "direct_skipped": 0,
            "direct_minimum": 0,
            "direct_low": 0,
            "direct_medium": 0,
            "direct_high": 0,
            "direct_maximum": 102,
            "created_at": "2016-08-19T19:11:28Z",
            "modified_at": "2019-11-13T14:29:43.770978Z",
            "liquid_vote_count": 102,
            "liquid_value": 5.0,
            "liquid_sum": 204.0,
            "liquid_heat": 4.28571428571429,
            "liquid_consensus": 1.0,
            "liquid_skipped": 0,
            "liquid_minimum": 0,
            "liquid_low": 0,
            "liquid_medium": 0,
            "liquid_high": 0,
            "liquid_maximum": 102,
            "polarisation": 0.447213595499958
        },
        {
            "id": 538,
            "url": "https://api.represent.me/api/question_choices/538/",
            "text": "Other - please add in the comments",
            "mongo_number": null,
            "direct_vote_count": 201,
            "direct_value": 5.0,
            "direct_sum": 402.0,
            "direct_heat": 8.4453781512605,
            "direct_consensus": 1.0,
            "direct_skipped": 0,
            "direct_minimum": 0,
            "direct_low": 0,
            "direct_medium": 0,
            "direct_high": 0,
            "direct_maximum": 201,
            "created_at": "2016-08-19T19:17:24Z",
            "modified_at": "2019-11-13T14:29:43.790901Z",
            "liquid_vote_count": 201,
            "liquid_value": 5.0,
            "liquid_sum": 402.0,
            "liquid_heat": 8.4453781512605,
            "liquid_consensus": 1.0,
            "liquid_skipped": 0,
            "liquid_minimum": 0,
            "liquid_low": 0,
            "liquid_medium": 0,
            "liquid_high": 0,
            "liquid_maximum": 201,
            "polarisation": 0.447213595499958
        },
        {
            "id": 536,
            "url": "https://api.represent.me/api/question_choices/536/",
            "text": "Sinn Fein",
            "mongo_number": null,
            "direct_vote_count": 19,
            "direct_value": 5.0,
            "direct_sum": 38.0,
            "direct_heat": 0.798319327731092,
            "direct_consensus": 1.0,
            "direct_skipped": 0,
            "direct_minimum": 0,
            "direct_low": 0,
            "direct_medium": 0,
            "direct_high": 0,
            "direct_maximum": 19,
            "created_at": "2016-08-19T19:11:28Z",
            "modified_at": "2019-11-13T14:29:43.809005Z",
            "liquid_vote_count": 19,
            "liquid_value": 5.0,
            "liquid_sum": 38.0,
            "liquid_heat": 0.798319327731092,
            "liquid_consensus": 1.0,
            "liquid_skipped": 0,
            "liquid_minimum": 0,
            "liquid_low": 0,
            "liquid_medium": 0,
            "liquid_high": 0,
            "liquid_maximum": 19,
            "polarisation": 0.447213595499958
        },
        {
            "id": 1131,
            "url": "https://api.represent.me/api/question_choices/1131/",
            "text": "Women's Equality Party",
            "mongo_number": null,
            "direct_vote_count": 24,
            "direct_value": 5.0,
            "direct_sum": 48.0,
            "direct_heat": 1.27388535031847,
            "direct_consensus": 1.0,
            "direct_skipped": 0,
            "direct_minimum": 0,
            "direct_low": 0,
            "direct_medium": 0,
            "direct_high": 0,
            "direct_maximum": 24,
            "created_at": "2017-04-25T08:54:16.419456Z",
            "modified_at": "2019-11-13T14:29:43.826522Z",
            "liquid_vote_count": 24,
            "liquid_value": 5.0,
            "liquid_sum": 48.0,
            "liquid_heat": 1.27388535031847,
            "liquid_consensus": 1.0,
            "liquid_skipped": 0,
            "liquid_minimum": 0,
            "liquid_low": 0,
            "liquid_medium": 0,
            "liquid_high": 0,
            "liquid_maximum": 24,
            "polarisation": 0.447213595499958
        },
        {
            "id": 530,
            "url": "https://api.represent.me/api/question_choices/530/",
            "text": "Plaid Cymru",
            "mongo_number": null,
            "direct_vote_count": 70,
            "direct_value": 5.0,
            "direct_sum": 140.0,
            "direct_heat": 2.94117647058824,
            "direct_consensus": 1.0,
            "direct_skipped": 0,
            "direct_minimum": 0,
            "direct_low": 0,
            "direct_medium": 0,
            "direct_high": 0,
            "direct_maximum": 70,
            "created_at": "2016-08-19T19:11:28.334547Z",
            "modified_at": "2019-11-13T14:29:43.844369Z",
            "liquid_vote_count": 70,
            "liquid_value": 5.0,
            "liquid_sum": 140.0,
            "liquid_heat": 2.94117647058824,
            "liquid_consensus": 1.0,
            "liquid_skipped": 0,
            "liquid_minimum": 0,
            "liquid_low": 0,
            "liquid_medium": 0,
            "liquid_high": 0,
            "liquid_maximum": 70,
            "polarisation": 0.447213595499958
        }
    ],
    "description": "",
    "perodic_repeat_interval": null,
    "ogImage": null,
    "subtype": "mcq",
    "topic": null,
    "topic_info": null,
    "group": null,
    "geo": 59,
    "geo_info": {
        "id": 59,
        "ID": "GBR",
        "name": "United Kingdom",
        "m_type": "country",
        "location": {
            "type": "Point",
            "coordinates": [
                -2.8869514831036756,
                54.14704818919766
            ]
        },
        "members_count": 9105,
        "question_count": 923,
        "created_at": "2016-03-20T04:26:45.483907Z",
        "type_description": null,
        "parent": null,
        "parent_url": null,
        "politicians": [],
        "modified_at": "2019-11-14T22:22:17.512629Z"
    },
    "group_url": null,
    "geo_url": "https://api.represent.me/api/geos/59/",
    "links": [],
    "start_at": null,
    "end_at": null,
    "publish": true,
    "count_comments": 12,
    "count_comments_suggestion": 0,
    "count_comments_reason": 9,
    "count_comments_info": 3,
    "group_name": null,
    "their_vote": [],
    "my_importance": [],
    "direct_vote_count": 5005,
    "direct_value": 0.0,
    "direct_sum": 10010.0,
    "direct_heat": 84.1176470588235,
    "direct_consensus": 0.287712287712288,
    "direct_skipped": 0,
    "direct_minimum": 0,
    "direct_low": 0,
    "direct_medium": 0,
    "direct_high": 0,
    "direct_maximum": 0,
    "created_at": "2016-08-19T19:11:28.315438Z",
    "modified_at": "2019-11-13T14:29:43.862873Z",
    "liquid_vote_count": 5005,
    "liquid_value": 0.0,
    "liquid_sum": 10010.0,
    "liquid_heat": 84.1176470588235,
    "liquid_consensus": 0.287712287712288,
    "liquid_skipped": 0,
    "liquid_minimum": 0,
    "liquid_low": 0,
    "liquid_medium": 0,
    "liquid_high": 0,
    "liquid_maximum": 0,
    "polarisation": 0.0
}