GET qbreader.org/api/random-tossupGet random tossups from the database.
difficulties: number[] | number | string
default: undefined
undefined then all difficulties are allowed.string or number if there is only 1 difficulty.categories: string | string[]
default: undefined
undefined then all categories are allowed / match this field.string if there is only 1 category.subcategories: string | string[]
default: undefined
categories AND
subcategories field.
"History" category and the "Biology"
and "Chemistry" subcategories will return no questions.alternateSubcategories: string | string[]
default: undefined
categories AND
subcategories AND alternateSubcategories fields.
alternateSubcategories.
"Science" category and the "Biology"
and "Other Science" subcategories and the "Math" alternate subcategory
will return questions in both Biology and Math, since Biology questions don't have alternate
subcategories.
number: number
default: 1
minYear: number
default:
maxYear: number
default:
powermarkOnly: boolean
default: "false"
standardOnly: boolean
default: "false"
object with the following properties:
tossups: Tossup[]
Tossups.