Generate a quiz for technologyies that you interested in by choosing a list of specific tags.
{info} This is NOT a required parameter
The request that you would use would look something like this:
curl https://quizapi.io/api/v1/questions -G \
-d apiKey=YOUR_API_KEY \
-d tags=Linux
{success} You can specify multiple parameter. You need to devide them by just a comma (,)
curl https://quizapi.io/api/v1/questions -G \
-d apiKey=YOUR_API_KEY \
-d tags=Linux,bash,terminal
This returns a JSON object with the results in an array we can iterate over.
[
{
"id": 3,
"question": "How to check the current disk usage on Linux?",
"description": "check current disk usage",
"answers": {
"answer_a": "df",
"answer_b": "usage",
"answer_c": "uptime",
"answer_d": "free",
"answer_e": null,
"answer_f": null
},
"multiple_correct_answers": "false",
"correct_answers": {
"answer_a_correct": "true",
"answer_b_correct": "false",
"answer_c_correct": "false",
"answer_d_correct": "false",
"answer_e_correct": "false",
"answer_f_correct": "false"
},
"correct_answer": "answer_a",
"explanation": "df shows you the current disk usage",
"tip": "df",
"tags": [
{
"name": "Linux"
},
{
"name": "BASH"
},
{
"name": "cmd"
}
],
"category": "uncategorized",
"difficulty": "easy"
}
]
...