searchAutocomplete

@Headers(value = ["Accept: application/json"])
@GET(value = "autocomplete/{type}")
abstract suspend fun searchAutocomplete(@Path(value = "type") type: AutocompleteType, @Query(value = "term") query: String): AO3Response<AutocompletePage>

Retrieves a list of up to 15 tags that match the search query.

The types of the returned tags are constrained by the type specified.

Parameters

type

Restricts the type of results that are returned

query

Search term