GET/api/questions
Returns a random sample of text questions matching the filters, or one page of an event in id order.
Authentication: Developer key required. With the answers:read scope, answers are filled in; otherwise answers is empty and each question carries a gradeToken. Counts against the key's quota.
| Name | Type | Description |
|---|---|---|
| event | string | Exact event name from GET /api/meta/events. |
| events | string | Comma-separated event names (up to 40). The limit is split evenly across them. |
| division | string | B or C. |
| tournament | string | Tournament name; case-insensitive partial match. |
| subtopic | string | One subtopic from GET /api/meta/subtopics. |
| subtopics | string | Comma-separated subtopics; matches any of them. |
| difficulties | string | Comma-separated buckets: easy (0.00–0.44), medium (0.45–0.64), hard (0.65–1.00). Takes precedence over difficulty_min/max. |
| difficulty_min | number | Minimum difficulty, 0.0 to 1.0. |
| difficulty_max | number | Maximum difficulty, 0.0 to 1.0. |
| question_type | mcq | frq | Multiple choice or free response only. |
| limit | integer | Number of questions, 1 to 200. Default 50. |
| light | 1 | Omit created_at and updated_at for a smaller payload. |
| order | id | Return questions in id order instead of at random, to page through one event. |
| after | uuid | With order=id: the last id of the previous page. An empty page is the end. |
| Status | Meaning |
|---|---|
| 400 | Invalid parameters, or a key sent in the URL. |
| 401 | Missing, invalid, expired, or revoked API key (code api_key_required when none was sent). |
| 403 | The key lacks the required scope. |
| 429 | Rate limit or monthly quota reached. See Retry-After. |
| 503 | Access or usage store temporarily unavailable. |
For multiple choice, numeric entries in answers are zero-based indices into options.
Request
curl --get 'https://www.scio.ly/api/questions' -H "X-API-Key: $SCIOLY_API_KEY" \
--data-urlencode 'event=Meteorology' \
--data-urlencode 'division=B' \
--data-urlencode 'limit=10'Response 200
{
"success": true,
"data": [ Question ]
}