API to generate math questions and answers. Supported math operations include addition, subtraction, division and multiplication.
NewbAPI Project (https://newbapi.com)
/question
(Deta Server) DEADhttps://math.newbapi.com/question
https://api.qkmath.com/question
(official) ACTIVE
setting
-1digit
,2digit
,3digit
ops
-addition
,substract
,multiply
no
- Minimum:1
, Maximum:100
qkseed
- random text or number (Optional)
curl -X 'GET' \
'https://api.qkmath.com/question?setting=1digit&ops=addition&no=5&qkseed=abc123' \
-H 'accept: application/json'
axios.get('https://api.qkmath.com/question?setting=1digit&ops=addition&no=5&qkseed=abc123')
.then(function (response) {
// handle success
console.log(response);
})
.catch(function (error) {
// handle error
console.log(error);
})
.then(function () {
// always executed
});
{
"data": [
{
"op": "addition",
"question": "0 + 2",
"answer": 2
},
{
"op": "addition",
"question": "7 + 5",
"answer": 12
},
{
"op": "addition",
"question": "2 + 4",
"answer": 6
},
{
"op": "addition",
"question": "1 + 5",
"answer": 6
},
{
"op": "addition",
"question": "1 + 8",
"answer": 9
}
]
}
Note: The math questions and answers are generated by a Python script. If you spot an error in the questions or answers, please send me a PR (pull request).
docker compose build && docker compose up