搜索帖子
请使用此 (https://mariago.site/mobile_api/search_posts) API访问帖子搜索端点
GET参数
字段 | 值 | 说明 |
---|---|---|
query | 搜索关键词 | 例如: `how to get followers` |
offset | 最后帖子偏移ID | 只有在加载分页系统的帖子时才需要。 |
session_id (可选) | 访问令牌ID | 例如: de25cc16eb00960f076... |
page_size | 每次请求的帖子总数限制 | 推荐: 20 |
成功响应
{
"code": 200,
"message": "找到结果",
"data": [
{
"id": 72,
"user_id": 7,
"text": "how to get more twitter followers",
"type": "text",
"replys_count": "0",
"reposts_count": "0",
"likes_count": "0",
"status": "active",
"thread_id": 0,
"target": "publication",
"og_data": "",
"time": "3 minutes ago",
"advertising": false,
"time_raw": "1605783333",
"og_text": "how to get more twitter followers",
"og_image": "statics/img/logo.png",
"url": "http://colibri.loc/thread/72",
"can_delete": false,
"media": [],
"is_owner": false,
"has_liked": false,
"has_saved": false,
"has_reposted": false,
"reply_to":[],
"owner":{"id": 7, "url": "http://colibri.loc/@dan_kassing", "avatar": "http://colibri.loc/upload/default/avatar.png",…},
"offset_id": 72
}
]
}
错误响应
{
"code": 204,
"message": "未找到数据",
"data": []
}
{
"code": 400,
"message": "搜索词无效或缺失",
"data": []
}