GET
qbreader.org/api/query
Query the QB Reader database for questions.
questionType
: "tossup" | "bonus" | "all"
required
"tossup"
- only tossups"bonus"
- only bonuses"all"
- both tossups and bonusessearchType
: "question" | "answer" | "all"
required
"question"
- only search question bodies"answer"
- only search answerlines"all"
- search both question bodies and answerlinesqueryString
: string
default: ""
ignoreDiacritics
: boolean
default: false
queryString
.
regex
: boolean
default: false
queryString
as a regular expression.
randomize
: boolean
default: false
setName
: string
default: undefined
undefined
then all sets are searched.difficulties
: number | string
default: undefined
undefined
then all difficulties are allowed.string
or number
if there is only 1 difficulty.categories
: string
default: undefined
undefined
then all categories are allowed.string
if there is only 1 category.subcategories
: string
default: undefined
undefined
then all subcategories are allowed.string
if there is only 1 subcategory."History"
and the "Biology"
and "Chemistry"
subcategories will return no questions.maxReturnLength
: number
default: 25
0
or negative, then the default is 50
200
, the query will return no more than 200 questions.tossupPagination
: number
default: 1
4000 / maxReturnLength
, rounded down.bonusPagination
: number
default: 1
4000 / maxReturnLength
, rounded down.object
with the following properties:
queryString
: string
regex
is false
, then regex characters are escaped.ignoreDiacritics
is true
, then diacritic substitutions are made.