人群洞察分析
开发环境
开发环境
GET
/v1.3/custom_audience_insights/get
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET '/v1.3/custom_audience_insights/get' \
--header 'access_token;' \
--header 'timestamp;' \
--header 'nonce;' \
--data-urlencode 'account_id=<ACCOUNT_ID>' \
--data-urlencode 'audience_id=<AUDIENCE_ID>' \
--data-urlencode 'dimension_type=["AGE"]'
响应示例响应示例
{
"code": 0,
"message": "",
"message_cn": "",
"data": {
"list": [
{
"dimension_type": "AGE",
"match_rate": 0.9899999999999999911182158029987476766109466552734375,
"distribution": [
{
"dimension_value": "1~17",
"percentage": 5,
"tgi": 0.299999999999999988897769753748434595763683319091796875
},
{
"dimension_value": "18~23",
"percentage": 15,
"tgi": 0.95999999999999996447286321199499070644378662109375
},
{
"dimension_value": "24~30",
"percentage": 27,
"tgi": 0.7199999999999999733546474089962430298328399658203125
},
{
"dimension_value": "31~40",
"percentage": 26,
"tgi": 1.5300000000000000266453525910037569701671600341796875
},
{
"dimension_value": "41~50",
"percentage": 17,
"tgi": 1.87000000000000010658141036401502788066864013671875
},
{
"dimension_value": "51~65",
"percentage": 9,
"tgi": 2.160000000000000142108547152020037174224853515625
},
{
"dimension_value": "66~127",
"percentage": 0,
"tgi": 2.850000000000000088817841970012523233890533447265625
}
]
}
]
}
}
请求参数
Header 参数
access_token
string
必需
默认值:
<ACCESS_TOKEN>
timestamp
string
必需
MarketingAPI 所使用的时间戳,若无特殊说明,均为秒级时间戳
MarketingAPI 所使用的时区为GMT+8,例如当时间戳为1494840119时,表示 2018-05-15 17:21:59
默认值:
<TIMESTAMP>
nonce
string
必需
默认值:
<NONCE>
Body 参数application/x-www-form-urlencoded
account_id
integer
必需
示例值:
<ACCOUNT_ID>
audience_id
integer
必需
示例值:
<AUDIENCE_ID>
dimension_type
integer
必需
数组长度为 1
枚举列表:{ AGE, GENDER, EDUCATION, RESIDENT_AREA_CODE, USER_BUSINESS_INTEREST, RELATIONSHIP_STATUS, LOCARD_INTEREST, LOCARD_BEHAVIOR_CATEGORY }
示例值:
["AGE"]
返回响应
修改于 2023-11-07 08:24:58