collection

suspend fun collection(identifiers: List<Identifier>, pretty: Boolean? = false): ScryfallList<Card>

Accepts a JSON array of card identifiers, and returns a List object with the collection of requested cards. A maximum of 75 card references may be submitted per request. The request must be posted with Content-Type as application/json. https://scryfall.com/docs/api/cards/collection

Parameters

identifiers
  • An array of JSON objects, each one a card identifier.

pretty
  • If true, the returned JSON will be prettified. Avoid using for production code.