Overview
Retrieves a list of Moments.
Request
Authentication: Add authentication headers to the request. See Authentication
Method:
GET
Rate limit:
100 requests/second
Endpoint: https://API domain/momentgateway/moments/list
Content-Type:
application/json
Request parameters
| Parameter | Data type | Required | Description | |
|---|---|---|---|---|
| start | int | No | Start timestamp for incremental queries, in milliseconds (13 digits). | |
| limit | int | No | Number of items per page. Default: 20. Maximum: 50. | |
| order | int | No | Query order: 0 for descending; 1 for ascending. | |
| user_id | string | No | User ID. When specified, returns only Moments posted by this user. |
Request example
GET /momentgateway/moments/list?limit=20&start=1723456789123 HTTP/1.1
appkey: appkey
Authorization: xxxxxxxxxxxxxxxxxx
Content-Type: application/json
Response example
{
"code":0,
"msg":"sucess",
"data":{
"items":[
{
"moment_id":"momentid1",
"content":{
"text":"xxxxxx",
"medias":[
{
"type":"image",
"url":"xxx",
"snapshot_url":"xxxx",
"height":100,
"width":100
},{
"type":"video",
"url":"xxxx",
"snapshot_url":"xxxx",
"duration":10,
"height":100,
"width":100
}
]
},
"user_info":{
"user_id":"xxx",
"nickname":"xxxxx",
"avatar":"xxxx"
},
"reactions":[
{
"value":"val1",
"timestamp":17312345678,
"user_info":{
"user_id":"xxx",
"nickname":"xxxxx",
"avatar":"xxxx"
}
}
],
"top_comments":[
{
"comment_id":"xxxx",
"moment_id":"xxx",
"parent_comment_id":"xxxx",
"content":{
"text":"xxxxx"
},
"parent_user_info":{
"nickname":"xxxxx",
"avatar":"xxxx",
"user_type":1
},
"user_info":{
"nickname":"xxxxx",
"avatar":"xxxx",
"user_type":1
},
"comment_time":1732123456789
}
],
"moment_time":1732123456789
}
],
"is_finished":true
}
}