Search
表示搜索结果。
示例
关于 q=cats limit=2 的搜索结果采样片段
{
"accounts": [
{
"id": "180744",
"username": "catstar",
"acct": "catstar@catgram.jp",
"display_name": "catstar",
// ...
},
{
"id": "214293",
"username": "catsareweird",
"acct": "catsareweird",
"display_name": "Cats Are Weird",
// ...
}
],
"statuses": [
{
"id": "103085519055545958",
"created_at": "2019-11-05T13:23:09.000Z",
// ...
"content": "<p>cats<br>cats never change</p>",
// ...
},
{
"id": "101068121469614510",
"created_at": "2018-11-14T06:31:48.000Z",
// ...
"spoiler_text": "Cats",
// ...
"content": "<p>Cats are inherently good at self-care. </p><p><a href=\"https://mspsocial.net/tags/cats\" class=\"mention hashtag\" rel=\"nofollow noopener noreferrer\" target=\"_blank\">#<span>cats</span}</p>",
// ...
},
// ...
],
"hashtags": [
{
"name": "cats",
"url": "https://mastodon.social/tags/cats",
"history": [
{
"day": "1574553600",
"uses": "10",
"accounts": "9"
},
// ...
]
},
{
"name": "catsofmastodon",
"url": "https://mastodon.social/tags/catsofmastodon",
"history": [
{
"day": "1574553600",
"uses": "6",
"accounts": "5"
},
// ...
]
}
]
}
属性
accounts
描述: 与给定关键词匹配的帐户。
类型: Account 数组
版本历史:
1.1.0 - 添加
statuses
描述: 与给定关键词匹配的嘟文。
类型: Status 数组
版本历史:
1.1.0 - 添加
hashtags
描述: 与给定关键词匹配的话题标签。
类型: Tag 数组
版本历史:
1.1.0 - 添加
2.4.1 - v1/search 已弃用,因为它返回字符串数组。添加了返回标签数组的 v2/search。
3.0.0 - 删除了 v1/search
参见
搜索 API 方法 app/serializers/rest/search_serializer.rb翻译状态: 本文是英文页面 Search 的翻译,最后翻译时间:2025-04-21,点击这里可以查看翻译后页面的改动。