Planning Intelligence: Politics
Returns the Planning Intelligence politics section of the insight.
For each question it gives the share of the audience's US profiles giving each answer (values, over profiles profiles), against the USA baseline's share, for the whole audience and split by demographic group (groups).
The section describes US adults, so it is always compared with the insight's USA baseline, named by baseline and baseline_alias in the response. A baseline parameter is ignored.
Questions are keyed by ID. Each carries its title (name), the full question (question) and a short statement of what it measures (statement); each answer carries a short label (name).
Requires the Planning Intelligence politics report section permission, which can only be granted by StatSocial.
Insights of audiences outside the USA, or generated before this section was available, have no politics data and return an error.
Getting Started
https://api.statsocial.com/platform/v0/reports/planning/politics
hash: Insight hash
https://api.statsocial.com/platform/v0/reports/planning/politics?hash=xxxx
Successful return
values, indexes and profiles hold one entry per insight hash.
A group's profiles counts each insight's profiles in the group; an insight with too few of them has 0 profiles and zero values at its position.
{
"information": {
"version": "string"
},
"response": {
"hashes": [
"string"
],
"baseline": "string",
"baseline_alias": "USA",
"profiles": [
18734
],
"questions": {
"party_identification": {
"name": "Party Identification",
"question": "Which best describes your political party identification?",
"statement": "My political party identification",
"metrics": [
{
"id": "strong_democrat",
"name": "Strong Democrat",
"baseline": 0.147,
"values": [
0.152
],
"indexes": [
103
]
},
{
"id": "democrat",
"name": "Democrat",
"baseline": 0.121,
"values": [
0.139
],
"indexes": [
115
]
}
]
}
},
"groups": {
"18_34": {
"profiles": [
4210
],
"questions": {
"party_identification": {
"name": "Party Identification",
"question": "Which best describes your political party identification?",
"statement": "My political party identification",
"metrics": [
{
"id": "strong_democrat",
"name": "Strong Democrat",
"baseline": 0.131,
"values": [
0.168
],
"indexes": [
128
]
}
]
}
}
}
}
}
}
Groups: 18_34, 35_54, 55_plus, male and female.