DevelopersDocsAPI reference
Search problems
POST /api/v1/problems/search returns up to ten allowlisted problems for the requested subjects.
POST/api/v1/problems/search
Use search when the subject matters, when you want more than one problem, or when you want to sort by difficulty. The default subject is mathematics.
Request
Field bounds are listed on the filters page. rating and rating_confidence are rejected when any requested subject has no scale. difficulty_ordered is rejected when none of the requested subjects has a scale.
Response
200 returns problems, selection, and usage. Each problem includes counted_as_new_problem. That flag is not on search usage. selection reports strategy, requested, returned, and truncated_by_quota. This sample is documentation, not a live problem, and its usage numbers are illustrative.
{ : [ { : , : , : , : [ { : , : , : null }, { : , : , : null } ], : [], : [ { : , : } ], : , : , : , : , : [ { : , : } ], : { : }, : false, : , : { : null, : null, : null, : null, : null, : null }, : true } ], : { : , : , : , : false }, : { : , : , : , : , : , : , : }}An empty match is 404 no_eligible_problem, not an empty 200. Validation failures are 400. Limits are 429. The error list covers the rest.