Problemator API Documentation

Welcome to the API documentation for the Problemator API!

Endpoints

These are the available API endpoints:

Endpoint Type Description
/api/generate-problem?level=[level]&type=[type] GET Generate a problem with the specified level and type.
  • Level: 0 (Beginner), 1 (Intermediate), 2 (Advanced)
  • Type: Type - it's a category name (you can see below)
/api/check-problem?problem=[problem]&answer=[answer] GET Check the provided answer for a problem.
  • Problem: Problem - response from generation of problem
  • Answer: Answer - your answer like 'x + 5'
/api/categories GET Get all available categories.

Categories

Here is a list of categories and subcategories: