> ## Documentation Index
> Fetch the complete documentation index at: https://docs.renaiss.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# 列出市场卡牌

> 按筛选条件浏览公开市场，查看卡牌的展示图片和价格。

无需发送任何凭据。USDT 价格以 18 位精度的整数字符串表示，美元金额以美分计。使用代币 ID 查询[卡牌的当前订单](https://docs.renaiss.xyz/cn/api-reference/marketplace/get-orders.md)。

主网按铸造时间查询时，上游服务故障也可能返回 HTTP `500` 和 `COLLECTION_QUERY_FAILED`。

## 请求

公开查询

## 响应

## 错误码

在下表中查找接口返回的 HTTP 状态码和响应原文。有关各接口通用的处理建议，请参阅[错误码含义与处理方式](https://docs.renaiss.xyz/cn/api-reference/errors.md)。

| HTTP | 错误码 | 文本字段 | 响应文本与处理方式 |
| :- | :- | :- | :- |
| `400` | `WRONG_REQUEST_PARAMS` | `error` | `Invalid marketplace request` 请核对查询参数或十进制代币 ID。 |
| `401` | `API_AUTH_INVALID_CREDENTIAL` | `error` | `Invalid authentication credential` 某个凭据请求头格式错误。请移除凭据后重试。 |
| `403` | `API_AUTH_CREDENTIAL_NOT_ALLOWED` | `error` | `Credential is not allowed by this policy` 请移除凭据请求头后重试。 |
| `429` | `SUBGRAPH_RATE_LIMITED` | `error` | `Subgraph rate limited (429)` 如有 `Retry-After` 响应头，请等待指定秒数后再查询。 |
| `500` | `API_AUTH_ERROR` | `error` | `Internal server error` |
| `500` | `FUNCTION_ERROR` | `error` | `Internal server error` |
| `500` | 无错误码 | `text/plain` | `Internal Server Error` |
| `500` | `COLLECTION_QUERY_FAILED` `ALL_COLLECTIBLES_QUERY_FAILED` `SUBGRAPH_QUERY_FAILED` | `error` | `Internal server error` 请稍后重新查询。 |
| `502` | `SUBGRAPH_NETWORK_ERROR` `SUBGRAPH_REQUEST_FAILED` `SUBGRAPH_QUERY_ERROR` | `error` | `Internal server error` 请稍后重新查询。 |
| `502` | 其他错误码 | `error` | `Internal server error` |


## OpenAPI

````yaml cn/api-reference/openapi.json GET /v2/marketplace
openapi: 3.1.1
info:
  version: 1.0.0
  title: Renaiss 开发者 API v2
  description: >-
    在 BNB 智能链（链 ID 56）上使用外部钱包接入抽卡、交易市场和实物兑换。所有已批准且有效的开发者密钥均可准备购买。


    藏品包括钱包可抽取、交易、回售或兑换的物品，例如卡牌。接口路径、字段和描述统一使用 collectible 表示藏品。


    可以匿名浏览目录。准备购买后，请由买家钱包签名。抽卡记录和回购报价需要开发者密钥，购买和回购还需操作签名。私有配送信息及兑换需要钱包访问令牌，由钱包在已注册的合作方来源签署登录消息后签发。抽卡和市场不使用钱包访问令牌。请在后端保管开发者密钥。


    操作钱包可以是 EOA 或已部署的 ERC-1271 合约账户。不支持 EIP-7702 委托账户、ERC-6492 或 ERC-8010 封装签名及
    Renaiss 托管的 Safe（签名验证后才会识别并拒绝该类 Safe）。无法接收 ERC-721 的合约钱包抽卡会返回
    `CONTRACT_WALLET_CANNOT_RECEIVE_NFT`。链上读取失败返回
    `API_AUTH_ERROR`（500）。钱包访问令牌及实物兑换仅支持 EOA。
servers:
  - url: https://api.renaiss.xyz
    description: BNB 智能链主网
  - url: https://dev-api.renaiss.xyz
    description: BNB 测试网
security: []
tags:
  - name: Gacha v2
    description: 使用 EOA 浏览和购买卡包、揭晓藏品、读取购买记录及回购。无需钱包访问令牌。
  - name: Marketplace
    description: 公开浏览藏品，通过外部钱包挂牌、出价、购买或撤单。交易需要开发者授权及钱包操作签名。
  - name: Users
    description: 查询特定钱包的藏品、市场总估值和链上活动。仅需开发者密钥，各接口按相应的可见范围返回记录。
  - name: Redemption
    description: 查询兑换资格、运费报价，准备并提交兑换及跟踪物流。需要开发者密钥及同一钱包的访问令牌。
  - name: Wallet access tokens
    description: >-
      获取、刷新或撤销实物兑换使用的钱包访问令牌。钱包签署一次性登录消息（5 分钟有效）后，API 返回访问令牌（15 分钟）和一次性刷新令牌（7
      天）。先注册精确的合作方前端来源。抽卡和市场无需钱包访问令牌。
paths:
  /v2/marketplace:
    get:
      tags:
        - Marketplace
      summary: 浏览公开交易市场
      description: 按筛选条件浏览公开市场，查看卡牌的展示图片和价格。
      parameters:
        - schema:
            type: string
            minLength: 3
            maxLength: 150
          required: false
          name: search
          in: query
        - schema:
            type: string
            enum:
              - POKEMON
              - ONE_PIECE
          required: false
          name: categoryFilter
          in: query
        - schema:
            type: string
          required: false
          name: characterFilter
          in: query
        - schema:
            anyOf:
              - type: string
                enum:
                  - ''
              - type: string
                enum:
                  - Chinese
                description: 此值仅用于筛选。
              - type: string
                enum:
                  - English
                  - Japanese
                  - Traditional Chinese
                  - Simplified Chinese
                  - Korean
                  - Indonesian
                  - Portuguese
                  - Italian
                  - German
                  - Polish
                  - French
                  - Spanish
          required: false
          name: languageFilter
          in: query
        - schema:
            anyOf:
              - type: string
                enum:
                  - ''
              - type: string
                enum:
                  - PSA
                  - BGS
                  - CGC
                  - SGC
          required: false
          name: gradingCompanyFilter
          in: query
        - schema:
            type: string
          required: false
          name: gradeFilter
          in: query
        - schema:
            type: string
          required: false
          name: yearRange
          in: query
        - schema:
            type: string
          required: false
          name: priceRangeFilter
          in: query
        - schema:
            type: string
            enum:
              - asc
              - desc
            default: desc
          required: false
          name: sortOrder
          in: query
        - schema:
            type: boolean
          required: false
          name: listedOnly
          in: query
        - schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
          required: false
          name: limit
          in: query
        - schema:
            type:
              - integer
              - 'null'
            minimum: 0
            default: 0
          required: false
          name: offset
          in: query
        - schema:
            type: string
            enum:
              - listDate
              - mintDate
              - name
              - year
              - priceRange
              - askPriceInUSDT
              - rixPriceInUsd
            default: listDate
            description: 将 `sortBy` 设为 `rixPriceInUsd`，即可按 RIX 估值（FMV）排序。
          required: false
          name: sortBy
          in: query
          description: 将 `sortBy` 设为 `rixPriceInUsd`，即可按 RIX 估值（FMV）排序。
      responses:
        '200':
          description: 成功
          content:
            application/json:
              schema:
                type: object
                properties:
                  collection:
                    type: array
                    items:
                      type: object
                      properties:
                        tokenId:
                          type: string
                          description: 以十进制字符串无损表示的代币 ID。
                          pattern: ^\d+$
                        name:
                          type: string
                        ownerAddress:
                          type: string
                          minLength: 42
                          maxLength: 42
                        askPriceInUSDT:
                          type: string
                          description: 精度为 18 位的 USDT 最小单位，或 `NO-ASK-PRICE`。
                        frontImageUrl:
                          type: string
                          format: uri
                        rixPriceInUsd:
                          type: string
                          description: >-
                            藏品的公允市价（FMV）估值，由 Renaiss Index（RIX）提供，单位为美分。暂无估值时返回
                            `NO-RIX-PRICE`。
                        rixPriceUpdatedAt:
                          type:
                            - string
                            - 'null'
                          description: >-
                            `rixPriceInUsd` 中的 RIX 估值（FMV）最近一次更新的时间。无时间记录时返回
                            `null`。
                      required:
                        - tokenId
                        - name
                        - ownerAddress
                        - askPriceInUSDT
                        - frontImageUrl
                        - rixPriceInUsd
                  pagination:
                    type: object
                    properties:
                      total:
                        type: number
                      limit:
                        type: number
                      offset:
                        type: number
                      hasMore:
                        type: boolean
                    required:
                      - total
                      - limit
                      - offset
                      - hasMore
                required:
                  - collection
                  - pagination
        '400':
          description: |-
            市场请求无效。

            见[错误码与处理方式](/cn/api-reference/marketplace/list-cards#http-errors)。
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: 简短的错误说明。
                  code:
                    type: string
                    enum:
                      - WRONG_REQUEST_PARAMS
                required:
                  - error
                  - code
              example:
                error: Invalid marketplace request
                code: WRONG_REQUEST_PARAMS
        '401':
          description: |-
            凭据格式无效。

            见[错误码与处理方式](/cn/api-reference/marketplace/list-cards#http-errors)。
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: 简短的错误说明。
                  code:
                    type: string
                    enum:
                      - API_AUTH_INVALID_CREDENTIAL
                required:
                  - error
                  - code
              example:
                error: Invalid authentication credential
                code: API_AUTH_INVALID_CREDENTIAL
        '403':
          description: |-
            此公开查询不接受凭据。

            见[错误码与处理方式](/cn/api-reference/marketplace/list-cards#http-errors)。
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: 简短的错误说明。
                  code:
                    type: string
                    enum:
                      - API_AUTH_CREDENTIAL_NOT_ALLOWED
                required:
                  - error
                  - code
              example:
                error: Credential is not allowed by this policy
                code: API_AUTH_CREDENTIAL_NOT_ALLOWED
        '429':
          description: |-
            请求过于频繁。`SUBGRAPH_RATE_LIMITED` 返回 Retry-After 时，请等待所示的整数秒数再试。

            见[错误码与处理方式](/cn/api-reference/marketplace/list-cards#http-errors)。
          headers:
            Retry-After:
              description: 如果返回此响应头，按指定秒数等待后重试。
              schema:
                type: integer
                minimum: 0
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: string
                    enum:
                      - SUBGRAPH_RATE_LIMITED
                  error:
                    type: string
                    description: 触发限流的原因。
                required:
                  - code
                  - error
        '500':
          description: |-
            服务端暂时失败，请稍后重试。

            见[错误码与处理方式](/cn/api-reference/marketplace/list-cards#http-errors)。
          content:
            text/plain:
              schema:
                type: string
              example: Internal Server Error
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                    description: 简短的错误说明。
                  code:
                    type: string
                required:
                  - error
                  - code
              example:
                error: Internal server error
                code: FUNCTION_ERROR
        '502':
          description: |-
            上游暂时无法完成请求，请稍后重试。

            见[错误码与处理方式](/cn/api-reference/marketplace/list-cards#http-errors)。
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                    examples:
                      - SUBGRAPH_NETWORK_ERROR
                      - SUBGRAPH_REQUEST_FAILED
                      - SUBGRAPH_QUERY_ERROR
                required:
                  - error
                  - code
              example:
                error: Internal server error
                code: SUBGRAPH_NETWORK_ERROR

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.