Get Hot Search Information
1. Overview & Typical Use
Returns the hot token recommendation list for the search bar, used as the default display in the search box.
- Typical use: rendering hot token recommendations in the search bar, providing search suggestion data.
- When not to use: for a complete hot search ranking (including contracts), use “Get Hot Search Info”; for search results, use “Search Token / Contract / Account Info”.
2. Endpoint & Authentication
GET /api/search/bar
For Base URL and authentication, see Common Network & Authentication.
3. Request
Fields
No parameters required.
4. Response
Fields
The response is a top-level array; each element has the following structure:
| Field | Type | Required | Description |
|---|---|---|---|
token_id | string | Required | Token contract address (TRC20) or token ID (TRC10) |
vip_token | boolean | Required | Whether it is a VIP token |
name | string | Required | Token name |
icon | string | Required | Token icon URL |
type | integer | Required | Token type: 20 = TRC20, 10 = TRC10 |
abbr | string | Required | Token abbreviation |
5. Errors
For HTTP status codes, see Common Errors. Key points for this endpoint:
- No parameters, always returns data: an empty result is not an error.
Last updated on: