Welcome to the documentation for the API endpoints. This API provides simple arithmetic operations through various endpoints. Below you will find details on how to interact with these endpoints.
This endpoint generates simple arithmetic equations and their solutions based on the specified operation or a randomly selected one if none is provided.
operation
(optional): Specifies the type of arithmetic operation to perform. Valid values include:
addition
: Adds two numbers.subtraction
: Subtracts first number from second.multiplication
: Multiplies two numbers.division
: Divides one number by another.GET /easy?operation=addition
{ "equation": "37 + 64", "solution": 101 }
Example without query parameter
GET /easy
{ "equation": "76 / 19", "solution": 4 }
In the absence of a query parameter specifying the operation, the API will randomly select one of the available operations (addition, subtraction, multiplication, or division) and generate an equation and solution accordingly.
This endpoint generates medium complexity arithmetic equations and their solutions based on the specified operation or a randomly selected one if none is provided. Equation includes three numbers.
operation
(optional): Specifies the type of arithmetic operation to perform. Valid values include:
addition
: Adds three numbers.subtraction
: Subtracts three numbers.multiplication
: Multiplies three numbers.division
: Divides three numbers.GET /medium?operation=multiplication
{ "equation": "6 * 7 * 3", "solution": 126 }
Example without query parameter
GET /medium
{ "equation": "8 / 2 / 4", "solution": 1 }
In the absence of a query parameter specifying the operation, the API will randomly select one of the available operations (addition, subtraction, multiplication, or division) and generate an equation and solution accordingly.
This endpoint generates complex arithmetic equations and their solutions.
This endpoint does not accept any query parameters.
GET /hard
{ "equation": "(39 - 99) * 27", "solution": -1620 }
This endpoint generates highly complex arithmetic equations using logarithms, powers, square and cube roots, and their solutions.
This endpoint does not accept any query parameters.
GET /veryhard
{ "equation": "3logâ‚‚(4^3)", "solution": 18 }