Get cards by variant
Changed onReturns cards with the specified variant, with support for filtering, sorting, and pagination
Request
- Base URLhttps://api.tcgdex.net/v2/en
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Query parameters
Filter results by field value.
Supports various operators:
- Default/like: - Laxist equality (contains, case insensitive)
- not:/notlike: - Laxist inequality
- eq: - Strict equality
- neq: - Strict inequality
- gte: - Greater than or equal (numbers)
- lte: - Less than or equal (numbers)
- gt: - Greater than (numbers)
- lt: - Less than (numbers)
- null: - Field is null
- notnull: - Field is not null
- Multiple values with | (e.g., name=eq:Furret|Pikachu)
Field to sort results by (overrides default sorting)
Order to sort results (ASC or DESC)
Page number for paginated results
Number of items per page (applied when pagination:page is used)
Response
Successful request
Example response
[
{
"id": "base1-1",
"localId": "1",
"name": "Alakazam"
}
]Changes
- info
added the new optional
queryrequest parameterfilters - info
added the new optional
queryrequest parameterpagination:itemsPerPage - info
added the new optional
queryrequest parameterpagination:page - info
added the new optional
queryrequest parametersort:field - info
added the new optional
queryrequest parametersort:order - info
added the media type
application/problem+jsonfor the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info