DevelopersDocsAPI reference
Draw a random problem
POST /api/v1/problems/random draws one allowlisted mathematics problem around a Maths Rating.
POST/api/v1/problems/random
This is the short mathematics call. It has no subject field. Extra fields, including subject, are ignored, and the draw stays on mathematics. For any other subject, use search.
Request
difficulty and tolerance are required integers. The match window is the target plus or minus the tolerance, clamped to 400–4000. topic is optional. exclude_ids takes up to 200 UUIDs.
Response
200 returns one problem and usage. usage.counted_as_new_problem says whether this delivery spent a daily unique slot. The body below is a sample.
{ : { : , : , : , : [ { : , : , : null }, { : , : , : null } ], : [], : [ { : , : } ], : , : , : , : , : [ { : , : } ], : { : }, : false, : , : null }, : { : , : , : , : , : , : , : , : true }}If the active Maths Rating release is missing, the status is 503 rating_unavailable.