Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
cURL
curl --request GET \ --url https://api.renaiss.xyz/v2/gacha/packs/{slug}/content
const options = {method: 'GET'}; fetch('https://api.renaiss.xyz/v2/gacha/packs/{slug}/content', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
import requests url = "https://api.renaiss.xyz/v2/gacha/packs/{slug}/content" response = requests.get(url) print(response.text)
{ "collectibles": [ { "tokenId": "<string>", "name": "<string>", "tier": "TOP", "buybackBaseValueInUsd": "<string>", "frontImageUrl": "<string>", "type": "POKEMON" } ], "pagination": { "total": 123, "limit": 123, "offset": 123, "hasMore": true } }
{ "code": "WRONG_REQUEST_PARAMS", "message": "<string>" }
{ "error": "Invalid authentication credential", "code": "API_AUTH_INVALID_CREDENTIAL" }
{ "error": "Credential is not allowed by this policy", "code": "API_AUTH_CREDENTIAL_NOT_ALLOWED" }
{ "code": "CARD_PACK_NOT_FOUND", "message": "<string>" }
{ "code": "SUBGRAPH_ABORTED", "message": "Unable to load pack content" }
{ "code": "SUBGRAPH_RATE_LIMITED", "message": "<string>" }
{ "code": "FUNCTION_ERROR", "message": "Unable to load pack content" }
{ "message": "Unable to load pack content", "code": "SUBGRAPH_NETWORK_ERROR" }
预览卡包可能抽出的卡牌,查看图片、档位和目录中的参考回购金额。
开发者密钥可选
400
INVALID_SCHEMA
message
Unable to load pack content
WRONG_REQUEST_PARAMS
Bad request - invalid parameters
401
API_AUTH_INVALID_CREDENTIAL
error
Invalid authentication credential
403
API_AUTH_CREDENTIAL_NOT_ALLOWED
Credential is not allowed by this policy
x-builder-api-key
GACHA_V3_BUILDER_NOT_ACCEPTED_ON_PUBLIC_API
This builder checks out on its own surface, not on the public API
404
CARD_PACK_NOT_FOUND
Pack not found
408
SUBGRAPH_ABORTED
502
SUBGRAPH_NETWORK_ERROR
429
API_AUTH_RATE_LIMITED
Authentication rate limit exceeded
SUBGRAPH_RATE_LIMITED
500
API_AUTH_ERROR
Internal server error
FUNCTION_ERROR
CARD_PACKS_QUERY_FAILED
SUBGRAPH_QUERY_FAILED
SUBGRAPH_REQUEST_FAILED
SUBGRAPH_QUERY_ERROR
Retry-After
仅查询公开卡包时请留空。填写开发者密钥后,还可查询对该开发者开放的卡包。
1
1 <= x <= 100
0 <= x <= 10000
使用 GET /v2/gacha/packs/{slug} 返回的 cardPack.tiers[].name。多个档位可用逗号分隔(?tier=S,A)或重复传参,省略时返回所有档位。先筛选再分页。所有卡包都不存在的档位返回 400;当前卡包没有该档位时返回空列表。
GET /v2/gacha/packs/{slug}
cardPack.tiers[].name
?tier=S,A
TOP
S
A
B
C
D
成功
Show child attributes