ListHotTopics
Retrieves a list of trending topics.
Try it out
You can directly run this operation in OpenAPI Explorer, saving you the trouble of calculating signatures. After the operation succeeds, OpenAPI Explorer can automatically generate SDK code examples.
Authorization information
The following table describes the authorization information of the API operation. You can use it in the Action element of a RAM policy statement to grant a RAM user or RAM role the permission to call this API operation. For more information, see:
-
Action: a specific permission.
-
Access level: the access level of an action. Valid values: Write, Read, and List.
-
Resource type: the types of resources supported for authorization in the action. For more information, see:
- Required resource types are marked with a leading asterisk (*).
- For actions that do not support resource-level authorization,
All resourcesis used.
-
Condition key: a condition key defined by the cloud service itself.
-
Dependent action: other permissions required to successfully perform the operation. The caller must have the permissions of the dependent actions for the operation to succeed.
Action | Access level | Resource type | Condition key | Dependent action |
|---|---|---|---|---|
aimiaobi:ListHotTopics | list | *All resources
| None | None |
Request syntax
POST HTTP/1.1
Request parameters
Parameter | Type | Required | Description | Example value |
|---|---|---|---|---|
| AgentKey | string | Yes | Unique workspace ID: AgentKey | xxxxx_p_efm |
| TopicSource | string | No | Filters the results by hot topic source. For a list of supported hot topic sources, see the ListHotSources API. Aggregation: represents the aggregated list of national hot topics. | Quark |
| Topics | array | No | Filters the results by hot topic event. | |
string | No | The name of a hot topic event. | xxx | |
| TopicVersion | string | No | Filters the results by data version. | Data version filter |
| TopicQuery | string | No | Performs a full-text search on hot topics. | Full-text search on hot topics |
| TopicIds | array | No | A list of hot topic IDs. | |
string | No | A hot topic ID. | xxxxxx | |
| WithNews | boolean | No | Specifies whether the response includes news. | true |
| NextToken | string | No | The token for the next page | The token for the next page |
| MaxResults | integer | No | The maximum number of results to return | 1 |
| CustomField | string | No | Filters the results by a custom business field (exact keyword match). The value can be up to 255 characters long. | biz-tag-001 |
| CreateTimeStart | string | No | The start point of the topic creation time filter (inclusive). Format: yyyy-MM-dd HH:mm:ss | 2026-06-01 00:00:00 |
| CreateTimeEnd | string | No | The end point of the topic creation time filter (inclusive). Format: yyyy-MM-dd HH:mm:ss | 2026-06-04 23:59:59 |
Response parameters
Element | Type | Description | Example value |
|---|---|---|---|
object | PageResult2 | ||
| Code | string | Status code | NoData |
| Data | array<object> | The business data | |
array<object> | A list of hot events | ||
| AsyncTaskId | string | The asynchronous task ID (used in custom topic scenarios) | Async task ID (used in custom topic scenarios) |
| CreateUser | string | The ID of the user who created the topic (used in custom topic scenarios) | Creator user ID (used in custom topic scenarios) |
| HotValue | integer | The popularity value | 61 |
| Id | string | The hot topic ID | Hot topic ID |
| Status | string | The asynchronous task status (used in custom event scenarios) (PENDING: pending, RUNNING: running, SUCCESSED: success, SUSPENDED: suspended, FAILED: failed, CANCELED: canceled) | FAILED |
| StructureSummary | array<object> | A list of structured topic summaries | |
array<object> | |||
| DocList | array<object> | The articles referenced to generate the title and summary | |
object | |||
| Source | string | The source of the article | Quark |
| Title | string | The article title | xxxxx |
| Url | string | The article URL | |
| Summary | string | The summary | Summary |
| Title | string | The title | Title |
| Summary | string | The hot topic summary | Hot topic summary |
| TaskErrorMessage | string | The error message returned when the asynchronous task fails | Async task failure error message |
| TaskStatus | integer | The asynchronous task status. 0: pending, 1: running, 2: succeeded, 3: suspended (not currently in use), 4: failed, 6: canceled (used in custom event scenarios) | 26 |
| Topic | string | The unique topic name | Unique topic name |
| TopicSource | string | The hot topic source. Currently supported hot topic sources:
| Toutiao |
| Version | string | The data version | Data version |
| CustomField | string | A custom business field (keyword) | biz-tag-001 |
| CreateTime | string | The time when the topic was created. Format: yyyy-MM-dd HH:mm:ss | 2026-06-04 12:34:56 |
| TopicUrl | string | The URL of the original topic | |
| HttpStatusCode | integer | The HTTP status code | 200 |
| MaxResults | integer | The maximum number of results to return | 94 |
| Message | string | Error description | success |
| NextToken | string | The token for the next page | The token for the next page |
| RequestId | string | Unique request ID | 1813ceee-7fe5-41b4-87e5-982a4d18cca5 |
| Success | boolean | Indicates whether the request succeeded: true indicates success, and false indicates failure | true |
| TotalCount | integer | The total number of records | 23 |
Examples
Sample success response
JSON format
{
"Code": "NoData",
"Data": [
{
"AsyncTaskId": "异步任务ID(自定义主题场景下使用)",
"CreateUser": "创建用户ID(自定义主题场景下使用)",
"HotValue": 61,
"Id": "热榜ID",
"Status": "FAILED",
"StructureSummary": [
{
"DocList": [
{
"Source": "夸克",
"Title": "xxxxx",
"Url": "http://www.example.com"
}
],
"Summary": "摘要",
"Title": "标题"
}
],
"Summary": "热榜摘要",
"TaskErrorMessage": "异步任务失败错误信息",
"TaskStatus": 26,
"Topic": "主题唯一名称",
"TopicSource": "Toutiao",
"Version": "数据版本",
"CustomField": "biz-tag-001",
"CreateTime": "2026-06-04 12:34:56",
"TopicUrl": "https://www.example.com/topic/123"
}
],
"HttpStatusCode": 200,
"MaxResults": 94,
"Message": "success",
"NextToken": "下一页的token",
"RequestId": "1813ceee-7fe5-41b4-87e5-982a4d18cca5",
"Success": true,
"TotalCount": 23
}
Error codes
For more error codes, visit the Error Center.
Release notes
For more information, see change details.