byType

suspend fun byType(type: String, format: String? = "json", pretty: Boolean? = false): BulkData

Returns a Bulk Data object with the given type slug (e.g., oracle-cards, default-cards). https://scryfall.com/docs/api/bulk-data/type

Parameters

type
  • The bulk data type slug.

format
  • The data format to return. This method only supports json.

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