autocomplete

suspend fun autocomplete(q: String, format: String? = "json", pretty: Boolean? = null, includeExtras: Boolean? = false): AutocompleteResult

Returns a Catalog-like object containing up to 20 full English card names that could be autocompletions of the given string parameter. If q is less than 2 characters long, or if no names match, the result will contain 0 items. https://scryfall.com/docs/api/cards/autocomplete

Parameters

q
  • The string to autocomplete.

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.

includeExtras
  • If true, extra cards (tokens, planes, etc) will be included.