Cortex API
Search…
getDemographicAttributes
This method returns the list of valid names and values for the demographic attribute objects.
This method was added in Cortex 2.1

Parameters

Name
Type
Required
Description
cortexToken
string
yes
A token returned by authorize.

Result

The result is an array of objects. Each object contain these fields:
Name
Type
Description
name
string
The name of the demographic attribute.
value
array of strings
The list of all the possible values for this attribute.

Example

Request
Response
1
{
2
"id": 1,
3
"jsonrpc": "2.0",
4
"method": "getDemographicAttributes",
5
"params": {
6
"cortexToken": "xxx"
7
}
8
}
Copied!
1
{
2
"id": 1,
3
"jsonrpc": "2.0",
4
"result": [
5
{
6
"name": "Education",
7
"value": [
8
"Below high school",
9
"High school or equivalent",
10
"Vocational/technical training",
11
"Bachelor's degree",
12
"Master's degree",
13
"Doctoral degree",
14
"Prof. degree (medical, law, etc. )"
15
]
16
},
17
{
18
"name": "Handedness",
19
"value": [
20
"Left",
21
"Right",
22
"Ambidextrous",
23
"Unspecified"
24
]
25
},
26
{
27
"name": "Language ability",
28
"value": [
29
"Native Language Only",
30
"Bilingual",
31
"Multilingual"
32
]
33
},
34
{
35
"name": "Musical skills",
36
"value": [
37
"None",
38
"Single instrumentalist",
39
"Multi-instrumentalist",
40
"Vocalist",
41
"Vocalist & instrumentalist"
42
]
43
},
44
{
45
"name": "Profession",
46
"value": [
47
"Architecture",
48
"Art and design",
49
"Entertainment and media",
50
"Sports",
51
"Building and grounds cleaning",
52
"Business and finance",
53
"Community and social service",
54
"Computer and mathematical",
55
"Construction and extraction",
56
"Engineering",
57
"Education and training",
58
"Farming, fishing, and forestry",
59
"Food preparation and serving",
60
"Healthcare practitioners",
61
"Healthcare technicians",
62
"Healthcare support",
63
"Installation and maintenance",
64
"Legal",
65
"Physical and social science",
66
"Management",
67
"Office and administration",
68
"Personal care and service",
69
"Production and manufacturing",
70
"Protective service",
71
"Sales",
72
"Transportation and logistics",
73
"Homemaker",
74
"Retired",
75
"Student",
76
"Unemployed"
77
]
78
}
79
]
80
}
Copied!
Copy link