listMyTagBlocks
列出我屏蔽的 tag
持令牌用户屏蔽的 tag,最新的在前。条目只带 id,用 /v2/catalog/tags?ids= 补全。tag_ids= 为批量读取。列表只对本人可见,目录不会自行套用:客户端把 tree 的 id 放进 exclude_tag_tree、exact 的 id 放进 exclude_tag_id,传给 /v2/catalog/works 与两个月历。最多 100 条,因此整张列表总能放进这两个参数。需要用户访问令牌。任何应用都可调用,不需要 scope。
/v2/me/blocked-tagsAuthorization: Bearer <用户访问令牌>(用户授权后的访问令牌,不是 API 密钥)参数
| 参数 | 类型 | 位置 | 说明 |
|---|---|---|---|
cursor | string | query | 来自先前 next_cursor 的不透明 keyset cursor。必须以 cur_ 开头。 |
limit | string | query | 页大小 1-100,缺省 20。超过 100 为 400 LIMIT_TOO_LARGE,不钳制。 |
view | string | query | basic(默认)或 full。封闭词表。 |
include | string | query | 逗号分隔的块。未知 token 返回 400 UNKNOWN_INCLUDE。 |
fields | string | query | view/include 之后逗号分隔的顶层键。未知 token 返回 400 UNKNOWN_FIELD。object 与 id 始终保留。 |
ids | string | query | 逗号分隔的 id,最多 100 个。批量车道:无分页。 |
refs | string | query | 逗号分隔的 source:external_id,最多 100 个。批量车道:无分页。 |
include_total | string | query | true 则包含 total。仅 true 或 false。 |
facets | string | query | 逗号分隔的 facet 名称。未知 token 返回 400 UNKNOWN_FACET。 |
sort | string | query | 各集合封闭的排序键。 |
nsfw | string | query | true 包含 r18。false 或缺省则隐藏 r18。仅 true 或 false。 |
tag_ids | string | query | 逗号分隔的 tag id,最多 100 个。批量读取,不分页。 |
响应
facetsmap<string, object[]>具名 facet 桶。仅在请求 facets= 时出现。
«key»object[]可空
itemsobject[]必填本页成员。空数组,从不为 null。
created_atstringdate-time 必填持令牌用户屏蔽该 tag 的时间。
modestring必填tree:把 id 放进 exclude_tag_tree,其下所有 tag 的作品也一并剔除。exact:放进 exclude_tag_id。
枚举treeexactobjectstring必填类型判别字段,恒为 tag_block。
枚举tag_blocktag_idstring必填catalog tag id。
updated_atstringdate-time 必填mode 最近一次改动的时间。改动前与 created_at 相同。
missingstring[]已请求但不可见的 ids。仅出现在 ids=/refs= 批量车道。
next_cursorstring不透明 keyset cursor。末页省略。
objectstring必填类型判别字段。恒为 list。
枚举listtotalintegerint64include_total=true 时出现;页码模式(page=)下恒在。与 items 同一个可见性闸。
total_relationstring仅在 page 模式出现。eq:total 为精确值。gte:total 为下界。
枚举eqgte
请求示例
curl "https://api.nextmoe.dev/v2/me/blocked-tags" \
-H "Authorization: Bearer <ACCESS_TOKEN>"