Collection API
v1 · REST · JSON
Access your TCG collection data programmatically. Build portfolio sites, Discord bots, Google Sheets integrations, or custom dashboards — your cards, your data, your way.
Base URL
All endpoints return JSON. CORS is enabled for all origins.
Authentication
All requests require an API key passed via the X-API-Key header.
Getting an API Key
1. Go to Settings → API Keys in your dashboard
2. Click New Key and give it a name
3. Copy the key (shown only once)
4. Optionally scope it to specific projects
Both by_ and legacy cv_ prefixes are accepted.
GET /collection
Returns cards from your collection across all projects (or a specific one).
projectFilter to a single project. If omitted, returns cards from all accessible projects.
e.g. ?project=550e8400-e29b-...setFilter by set ID.
e.g. ?set=sv3pt5rarityFilter by rarity (case-insensitive).
e.g. ?rarity=Secret%20RarenameSearch by card name (partial match).
e.g. ?name=CharizardsortSort field. One of: added_at (default), name, market_price, rarity, set_name.
e.g. ?sort=market_priceorderSort direction: desc (default) or asc.
e.g. ?order=asclimitResults per page. Min 1, max 500, default 100.
e.g. ?limit=50offsetPagination offset. Default 0.
e.g. ?offset=100formatSet to "minimal" for a slimmer response (fewer fields per card).
e.g. ?format=minimalResponse
Minimal Format
With ?format=minimal, each card returns only core fields:
Response Headers
X-RateLimit-LimitMaximum requests per hour.
X-RateLimit-RemainingRequests remaining in current window.
X-RateLimit-ResetSeconds until the rate limit resets.
Rate Limits & Security
Error Responses
| Code | Meaning |
|---|---|
401 | Missing or invalid API key |
403 | API key does not have access to the requested project |
404 | Project not found |
429 | Rate limit exceeded (Retry-After header included) |
500 | Server error |
503 | Service temporarily unavailable |
Code Examples
Pagination
Use limit and offset to paginate. The has_more field tells you if more pages exist.
Roadmap
This is v1. Planned additions:
Support
Questions or issues? Reach out at mail@c-huck.com.
The Collection API is available to all Byndr users for free. No paid tier required.