跳转到主要内容
GET
/
api
/
tags
List all tags
curl --request GET \
  --url https://cloud.comfy.org/api/tags \
  --header 'X-API-Key: <api-key>'
{
  "tags": [
    {
      "name": "<string>",
      "count": 123
    }
  ],
  "total": 123,
  "has_more": true
}

授权

X-API-Key
string
header
必填

API key authentication. Generate an API key from your account settings at https://comfy.org/account. Pass the key in the X-API-Key header.

查询参数

prefix
string

Filter tags by prefix

limit
integer
默认值:100

Maximum number of tags to return (1-1000)

必填范围: 1 <= x <= 1000
offset
integer
默认值:0

Number of tags to skip for pagination

必填范围: x >= 0
order
enum<string>
默认值:count_desc

Sort order for tags

可用选项:
count_desc,
name_asc
include_zero
boolean
默认值:false

Include tags with zero usage count

include_public
boolean
默认值:true

Whether to include public/shared assets when counting tags

响应

Tags retrieved successfully

tags
object[]
必填

List of tags

total
integer
必填

Total number of tags

has_more
boolean
必填

Whether more tags are available