- 1、服务总线-字典接口组
- 1、国家英文码值对照相关接口
- 2、ISO 639语言编码相关接口
- 3、媒体类型相关接口
- 4、地域相关接口
- 5、媒体信源标签相关接口
- 6、标签相关接口
- 7、分类相关接口
- 2、消息服务-业务接口组
- 1、发文检索相关接口
- 2、媒体账号检索相关接口
- 3、发文分析相关接口
- 4、媒体账号分析相关接口
- 5、热榜相关接口
- 7、数据推送相关接口
- 11、互动量更新相关接口
- 服务总线-附件
- 产品API
1)通用-账号总量获取
POST
/v1/analysis/account/getCount
2.媒体账号分析相关接口
请求参数
Header 参数
appKey
AppKey
nonce
随机数
timestamp
时间戳
signature
必需
Body 参数application/json
账号检索入参-不带分页
dataSources
array[string]
可选
示例值:
["00101"]
userIds
array[string]
可选
userNames
array[string]
可选
websiteNames
array[string]
可选
示例值:
["人民网"]
subWebsiteNames
array[string]
可选
示例值:
["人民网-山西"]
channelNames
array[string]
可选
示例值:
["反腐"]
url
string
账号主页链接
示例值:
http://sx.people.com.cn/GB/353623/index.html
hosts
array[string]
一级域名
示例值:
["pku.edu.cn"]
subHosts
array[string]
二级域名
示例值:
["pku.edu.cn"]
ipAreaCountries
array[string]
可选
ipAreaProvinces
array[string]
可选
accountMatchDTO
object (AccountMatch)
可选
matchType
integer <int32>
可选
>= 0<= 1
示例值:
0
defaultOperator
integer <int32>
可选
>= 0<= 1
示例值:
1
websiteNames
string
可选
subWebsiteNames
string
可选
userNames
string
可选
authors
string
可选
userIds
string
可选
channelNames
string
可选
customId
string
可选
secUid
string
可选
host
string
可选
verifiedTypes
array[integer <int32>]
可选
enable
integer <int32>
可选
>= -1<= 1
默认值:
-1
status
integer <int32>
可选
>= -1<= 1
默认值:
-1
isCollectComment
integer <int32>
可选
>= -1<= 1
默认值:
-1
isUpdateInteraction
integer <int32>
可选
>= -1<= 1
默认值:
-1
isStandardCollect
integer <int32>
可选
>= -1<= 1
默认值:
-1
isForeignMedia
integer <int32>
可选
>= -1<= 1
默认值:
-1
country
array[string]
可选
默认值:
CHN
accountAreas
array[object (AccountArea) {4}]
可选
accountAreaProvince
string
账号所在省份
默认值:
11
accountAreaCity
string
账号所在市
默认值:
110100000000
accountAreaCounty
string
账号所在区|县
默认值:
110102000000
allParamsEmpty
boolean
可选
mediaTags
array[string]
可选
excludeMediaTags
array[string]
可选
mediaTypes
array[integer <int32>]
可选
hostType
integer <int32>
可选
>= 1<= 2
insertTime
object (InsertTime)
数据入队列时间
startInsertTime
string
可选
示例值:
yyyy-MM-dd HH:mm:ss
endInsertTime
string
可选
示例值:
yyyy-MM-dd HH:mm:ss
updateTime
object (UpdateTime)
数据更新时间
startUpdateTime
string
可选
示例值:
yyyy-MM-dd HH:mm:ss
endUpdateTime
string
可选
示例值:
yyyy-MM-dd HH:mm:ss
areaType
string
可选
示例值:
1
s
array[integer <int32>]
可选
示例
{
"dataSources": [
"00101"
],
"userIds": [
"string"
],
"userNames": [
"string"
],
"websiteNames": [
"人民网"
],
"subWebsiteNames": [
"人民网-山西"
],
"channelNames": [
"反腐"
],
"url": "http://sx.people.com.cn/GB/353623/index.html",
"hosts": [
"pku.edu.cn"
],
"subHosts": [
"pku.edu.cn"
],
"ipAreaCountries": [
"string"
],
"ipAreaProvinces": [
"string"
],
"accountMatchDTO": {
"matchType": 0,
"defaultOperator": 1,
"websiteNames": "string",
"subWebsiteNames": "string",
"userNames": "string",
"authors": "string",
"userIds": "string",
"channelNames": "string",
"customId": "string",
"secUid": "string",
"host": "string"
},
"verifiedTypes": [
0
],
"enable": -1,
"status": -1,
"isCollectComment": -1,
"isUpdateInteraction": -1,
"isStandardCollect": -1,
"isForeignMedia": -1,
"country": [
"CHN"
],
"accountAreas": [
{
"accountAreaProvince": "11",
"accountAreaCity": "110100000000",
"accountAreaCounty": "110102000000",
"allParamsEmpty": true
}
],
"mediaTags": [
"string"
],
"excludeMediaTags": [
"string"
],
"mediaTypes": [
0
],
"hostType": 1,
"insertTime": {
"startInsertTime": "yyyy-MM-dd HH:mm:ss",
"endInsertTime": "yyyy-MM-dd HH:mm:ss"
},
"updateTime": {
"startUpdateTime": "yyyy-MM-dd HH:mm:ss",
"endUpdateTime": "yyyy-MM-dd HH:mm:ss"
},
"areaType": "1",
"s": [
0
]
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/analysis/account/getCount' \
--header 'appKey;' \
--header 'nonce;' \
--header 'timestamp;' \
--header 'signature;' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200OK
application/json
Body
返回数据格式
code
integer <int32>
可选
success
boolean
可选
message
string
响应消息
data
integer <int64>
响应数据
errors
array[string]
错误信息集合
time
string <date-time>
响应时间
示例
{
"code": 0,
"success": true,
"message": "string",
"data": 0,
"errors": [
"string"
],
"time": "2019-08-24T14:15:22Z"
}
修改于 2024-08-23 10:21:51