- 1、服务总线-字典接口组
- 1、国家英文码值对照相关接口
- 2、ISO 639语言编码相关接口
- 3、媒体类型相关接口
- 4、地域相关接口
- 5、媒体信源标签相关接口
- 6、标签相关接口
- 7、分类相关接口
- 2、消息服务-业务接口组
- 1、发文检索相关接口
- 2、媒体账号检索相关接口
- 3、发文分析相关接口
- 1)通用-数据总量获取POST
- 2)通用-指定分析字段返回其中某一种聚合分析POST
- 3)通用-指定分析字段返回所有聚合分析POST
- 4)通用-指定两个分析字段返回其中某一种聚合分析POST
- 5)通用-指定字段分析日期直方图聚合POST
- 6)通用-指定字段聚合和指定字段排序返回对应Top数据信息POST
- 7)通用-数据字段累计求和获取POST
- 8)通用-指定两个分析字段分析日期直方图聚合POST
- 9)指定语义指纹获取数据量POST
- 10)通用-各 互动量字段总和获取POST
- 11)通用-指定度量字段去重统计POST
- 12)通用-指定分析字段返回其中某一种去重统计聚合分析POST
- 13)通用-指定分析字段返回COUNT和SUM聚合分析POST
- 14)指定渠道和发布时间字段分析日期直方图聚合POST
- 4、媒体账号分析相关接口
- 5、热榜相关接口
- 7、数据推送相关接口
- 11、互动量更新相关接口
- 服务总线-附件
- 产品API
8)通用-指定两个分析字段分析日期直方图聚合
POST
/v1/analysis/getDateHistogramAggregationLevel2
1、发文分析相关接口
请求参数
Header 参数
appKey
string
AppKey
nonce
string
随机数
timestamp
string
时间戳
signature
string
必需
Body 参数application/json
日期直方图聚合入参
articleInfo
object (ArticleInfo)
发文相关信息
searchMode
object (SearchMode)
可选
searchTime
object (SearchTime)
必需
搜索时间
注意:取决于realTime,如果自定义以传入开始和结束时间生效,非自定义,系统根据now字段计算。
startPubTime<=发文时间<endPubTime
dataSources
array[string]
可选
matchMethods
array[integer <int32>]
可选
articleTypes
array[integer <int32>]
可选
ipAreaCountry
array[string]
可选
ipAreaProvinces
array[string]
可选
urls
array[string]
可选
insertTime
object (InsertTime)
数据入队列时间
esInsertTime
object (EsInsertTime)
发文入ES时间
signInAreas
array[object (SignInArea) {4}]
可选
isPaid
integer <int32>
可选
>= -1<= 1
示例值:
-1
isAdvertisement
integer <int32>
可选
>= -1<= 1
author
array[string]
可选
topicTags
array[string]
可选
mediaTypes
array[integer <int32>]
可选
mediaTypeMatch
integer <int32>
可选
rootArticleIds
array[string]
可选
articlePlatform
object (ArticlePlatform)
发文站点相关信息
mediaInfos
array[object (MediaInfo) {10}]
可选
isForeignMedia
integer <int32>
可选
>= -1<= 1
示例值:
-1
country
array[string]
可选
mediaAreas
array[object (MediaArea) {3}]
可选
mediaTags
array[string]
可选
excludeMediaTags
array[string]
可选
articleUser
object (ArticleUser)
发文账号相关信息
userIds
array[string]
可选
customIds
array[string]
可选
userNames
array[string]
可选
userSex
string
可选
isVerified
integer <int32>
可选
>= -1<= 1
示例值:
-1
verifiedTypes
array[integer <int32>]
可选
fanRange
object (FanRange)
可选
userRegisterAreas
array[object (UserRegisterArea) {4}]
可选
articleAnalysis
object (ArticleAnalysis)
发文分析相关信息
languages
array[string]
可选
categories
array[string]
可选
polarities
array[integer <int32>]
可选
isSensitive
integer <int32>
可选
>= 0<= 1
subjectSentiments
array[string]
可选
contentAreas
array[object (ContentArea) {4}]
可选
mediaGradeTags
array[object (MediaGradeTag) {7}]
可选
fingerprint
string
可选
isFingerprintHead
integer <int32>
可选
>= 0<= 1
subjectExtract
array[string]
可选
contentClassify
array[string]
内容分类
areaType
string
可选
示例值:
1
hiddenMark
object (HiddenMark)
可选
hideMark
string
可选
正则匹配:
^\d{1,11}-\d{1,11}$
isHidden
boolean
可选
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
可选
metricType
integer <int32>
可选
示例值:
10
bucketType
integer <int32>
可选
示例值:
7
aggregationEnum
enum<string>
聚合类型枚举类
枚举值:
SUMMINMAXCOUNTAVG
示例值:
COUNT
interval
integer <int32>
拆分时间段
示例值:
1
dateHistogramIntervalEnum
enum<string>
时间单位
枚举值:
HOURDAYWEEKMONTHQUARTERYEAR
示例值:
DAY
示例
{
"articleInfo": {
"searchMode": {
"searchType": 0,
"keywordExps": [
"string"
],
"simpleKeyword": {
"mustKeyWord": [
"string"
],
"mustKeyWordComplex": [
"string"
],
"anyKeyWord": [
"string"
],
"needExclude": [
"string"
]
},
"queryType": true
},
"searchTime": {
"realTime": 1,
"now": "yyyy-MM-dd HH:mm:ss",
"startPubTime": "yyyy-MM-dd HH:mm:ss",
"endPubTime": "yyyy-MM-dd HH:mm:ss"
},
"dataSources": [
"string"
],
"matchMethods": [
0
],
"articleTypes": [
0
],
"ipAreaCountry": [
"string"
],
"ipAreaProvinces": [
"string"
],
"urls": [
"string"
],
"insertTime": {
"startInsertTime": "yyyy-MM-dd HH:mm:ss",
"endInsertTime": "yyyy-MM-dd HH:mm:ss"
},
"esInsertTime": {
"startEsInsertTime": "yyyy-MM-dd HH:mm:ss",
"endEsInsertTime": "yyyy-MM-dd HH:mm:ss"
},
"signInAreas": [
{
"signInCountry": "string",
"signInProvince": "string",
"signInCity": "string",
"signInCounty": "string"
}
],
"isPaid": -1,
"isAdvertisement": -1,
"author": [
"string"
],
"topicTags": [
"string"
],
"mediaTypes": [
0
],
"mediaTypeMatch": 0,
"rootArticleIds": [
"string"
]
},
"articlePlatform": {
"mediaInfos": [
{
"include": true,
"dataSource": "string",
"websiteName": "string",
"host": "string",
"subHost": "string",
"channelName": "string",
"mediaType": "string",
"hostType": "string",
"userId": "string",
"userName": "string"
}
],
"isForeignMedia": -1,
"country": [
"string"
],
"mediaAreas": [
{
"mediaAreaProvince": "string",
"mediaAreaCity": "string",
"mediaAreaCounty": "string"
}
],
"mediaTags": [
"string"
],
"excludeMediaTags": [
"string"
]
},
"articleUser": {
"userIds": [
"string"
],
"customIds": [
"string"
],
"userNames": [
"string"
],
"userSex": "string",
"isVerified": -1,
"verifiedTypes": [
0
],
"fanRange": {
"fromFan": 0,
"toFan": 0
},
"userRegisterAreas": [
{
"userCountry": "string",
"userProvince": "string",
"userCity": "string",
"userCounty": "string"
}
]
},
"articleAnalysis": {
"languages": [
"string"
],
"categories": [
"string"
],
"polarities": [
0
],
"isSensitive": 0,
"subjectSentiments": [
"string"
],
"contentAreas": [
{
"contentAreaCountry": "string",
"contentAreaProvince": "string",
"contentAreaCity": "string",
"contentAreaCounty": "string"
}
],
"mediaGradeTags": [
{
"tags1": [
"string"
],
"tags2": [
"string"
],
"tags3": [
"string"
],
"tags4": [
"string"
],
"tags5": [
"string"
],
"tags6": [
"string"
],
"tags7": [
"string"
]
}
],
"fingerprint": "string",
"isFingerprintHead": 0,
"subjectExtract": [
"string"
],
"contentClassify": [
"string"
]
},
"areaType": "1",
"hiddenMark": {
"hideMark": "string",
"isHidden": true
},
"accountMatchDTO": {
"matchType": 0,
"defaultOperator": 1,
"websiteNames": "string",
"subWebsiteNames": "string",
"userNames": "string",
"authors": "string",
"userIds": "string",
"channelNames": "string",
"customId": "string",
"secUid": "string",
"host": "string"
},
"metricType": 10,
"bucketType": 7,
"aggregationEnum": "SUM",
"interval": 1,
"dateHistogramIntervalEnum": "HOUR"
}
示例代码
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/getDateHistogramAggregationLevel2' \
--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
array[object (AggregateLevel2VO) {3}]
响应数据
levelKey1
string
可选
levelKey2
string
可选
value
object
聚合分析字段结果
errors
array[string]
错误信息集合
time
string <date-time>
响应时间
示例
{
"code": 0,
"success": true,
"message": "string",
"data": [
{
"levelKey1": "string",
"levelKey2": "string",
"value": {}
}
],
"errors": [
"string"
],
"time": "2019-08-24T14:15:22Z"
}
修改于 2025-04-02 12:04:16