Community Search
GET/api/v1.0/quote/community-searchSearch community content (feeds / topics / lives) by keyword or stock name and return a structured list. Returns: id, community_type (FEED / TOPIC / LIVE), title, publish_time (Unix milliseconds), url, cover_image. For instruments use quote.search_quote.
Request
| Parameter | Type | In | Required | Description |
|---|---|---|---|---|
keyword | string | query | yes | Search keyword or stock name, required, e.g. AAPL / Tencent |
community_type | string | query | no | Community content type filter: ALL=all (default), FEED=feed, TOPIC=topic, LIVE=live |
sort_type | string | query | no | Sort order: TIME=by latest time (default), HEAT=by heat |
lang | string | query | no | Language filter; omit to let server decide |
page_size | int | query | no | Number of results, default 10, range 1 to 50 |
Example
bash
curl -X GET 'https://webapi.moomoo.com/api/v1.0/quote/community-search?keyword=1&community_type=1&sort_type=1' \
-H 'Authorization: Bearer <AccessToken>' | jqResponse
| Field | Type | Description |
|---|---|---|
data.items | object[] | |
data.items[].id | string | Community item unique ID |
data.items[].community_type | string | Community content type: FEED / TOPIC / LIVE |
data.items[].title | string | Title or feed summary |
data.items[].publish_time | integer | Publish time in Unix milliseconds |
data.items[].url | string | Landing page URL |
data.items[].cover_image | string | Cover image URL |
Errors
| ret_code | error.code | Description |
|---|---|---|
| 0 | — | Success |
| -3 | invalid_parameter | Missing or invalid parameter |
| -7 | invalid_symbol | Unknown symbol |
| -8 | unsupported | Market or product is not supported |
| -9 | permission_denied | Missing permission |
| -10 | no_data | No data |
| -11 | rate_limited | Too many requests |
Sample
json
{
"ret_code": 0,
"ret_msg": "success",
"data": {
"items": [
{
"id": "example",
"community_type": "example",
"title": "example",
"publish_time": 0,
"url": "example",
"cover_image": "example"
}
]
}
}