Searches for topics to generate a quiz on.
query required | string (TopicQuery) Example: query=appl Topics to search for |
Topic names and descriptions
You'll have to set up the server yourself.
{- "topics": [
- {
- "topic": "Apple",
- "description": "An apple is a sweet, edible fruit produced by an apple tree (Malus domestica). Apple trees are cultivated worldwide and are the most widely grown species in the genus Malus."
}, - {
- "topic": "Apple Inc.",
- "description": "Apple Inc. is an American multinational technology company headquartered in Cupertino, California, that designs, develops, and sells consumer electronics, computer software, and online services."
}
]
}
Searches for topics trending locally and internationally in the last day to generate a quiz on.
Search results are returned from Wikipedia. It has been found that for random long periods of time, zero search results are returned regardless of the input. Only this endpoint is affected (i.e., other searches work fine).
max | number (TrendingTopic) Default: 5 Example: max=3 Maximum number of topics to retrieve |
Topic names and descriptions
You'll have to set up the server yourself.
{- "topics": [
- {
- "topic": "Apple",
- "description": "An apple is a sweet, edible fruit produced by an apple tree (Malus domestica). Apple trees are cultivated worldwide and are the most widely grown species in the genus Malus."
}, - {
- "topic": "Apple Inc.",
- "description": "Apple Inc. is an American multinational technology company headquartered in Cupertino, California, that designs, develops, and sells consumer electronics, computer software, and online services."
}
]
}
Generate a quiz containing fill-in-the-blank questions on a topic or off of the supplied text.
You may send either the "topic"
or the "text"
key, but not both. If neither of them are provided, a popular
topic from the previous day will be chosen (e.g., if the movie Batman released recently, the movie will be taken
as the topic). The random topic is taken from Wikipedia's most popular pages the previous day. It has been found
that Wikipedia returns zero search results for trending topics for random long periods of time. During such
periods, a completely random (i.e., possibly boring and irrelevant) topic will be chosen instead.
Configures how the quiz will be generated
topic | string Generate a quiz for this topic. You must get the topic name by performing an HTTP GET request to the
|
text | Array of strings Generate a quiz off of this text. You can enhance the accuray of the generated questions by
splitting the text into its respective subtopics. For example, if the text is on the topic of Bill
Gates, you can split it into multiple |
max | integer >= 0 The maximum number of questions to return. Quizzes may contain hundreds of questions. If you only need a certain number, specifying a maximum number to send back will reduce the download size. |
allow_sans_years | boolean Default: false Questions on dates may contain options lacking years (e.g., |
duplicate_answers | boolean Default: false This states whether the quiz may include more than one question having the same answer. For example, one question may be |
duplicate_sentences | boolean Default: false This states whether to include multiple questions from the same sentence. Take the sentence |
Generated quiz
You'll have to set up the server yourself.
{- "topic": "Apple Inc."
}
{- "quiz": [
- {
- "question": "In 1996, Spindler was replaced by Gil Amelio as CEO.",
- "options": [
- "Steve Jobs",
- "Gil Amelio",
- "Steve Wozniak",
- "Ronald Wayne"
], - "answer_offset": {
- "start": 34,
- "end": 44
}, - "answer": "Gil Amelio",
- "label": "person"
}
], - "related": [
- "Pixar"
]
}