Skip to main content

Scio.ly API reference

Read-only access to the Scio.ly Science Olympiad question bank, grading, metadata, and team progress.

Overview

Base URL
https://www.scio.ly
Format
JSON over HTTPS. Request bodies use Content-Type: application/json.
Success
{ "success": true, "data": … }
Failure
{ "success": false, "error": "message" }
Times
ISO 8601. Quota windows and daily usage are in UTC.

Use the canonical www.scio.ly host: the bare domain redirects, and some HTTP clients drop the API key header on redirect. Only the endpoints on this page are supported for external use. Other routes the site calls are internal and may change without notice.

Authentication

Every endpoint on this page requires a developer key. A request without one gets 401 with code: "api_key_required" and links back here. The Scio.ly website and app use these routes for their own pages under separate per-account and per-network limits; those limits are not available to other clients. Request a key while signed in. Once we approve it, you create the key on the same page. It is shown once. A key has its own quota and, if granted, answer keys and team data.

Send the key in the X-API-Key header, or as Authorization: Bearer <key>. Send only one. Keys in the URL (?api_key=) are rejected with 400.

Header

X-API-Key: scioly_live_…
Scopes
ScopeGrants
questions:readEvery question, grading and metadata endpoint, with the key's quota. Answers stay sealed.
answers:readAnswer keys are filled in automatically in question responses.
Team grantGET /api/developer/teams and team progress for specific teams only.

Keep keys on a server you control. Never put them in a public website, browser app, repository, or shared notebook. If a key is exposed, rotate it on /developers. Keys expire after one year unless arranged otherwise. Keys grant no write, account, AI, or private-tournament access.

Rate limits

Each key has a per-minute and a per-calendar-month request limit, shown on your dashboard (default 60 per minute, 1,000 per month). Every admitted keyed request counts once, including empty results and errors. Rejected credentials and over-quota requests do not count.

Response headers on keyed requests
HeaderValue
X-RateLimit-LimitRequests allowed per minute.
X-MonthlyLimit-LimitRequests allowed this month.
X-MonthlyLimit-RemainingRequests left this month.
Retry-AfterOn 429: seconds until the window resets.
Cache-Controlprivate, no-store

Errors

Status codes
StatusMeaning
400Invalid parameters or body, or a key sent in the URL.
401Missing, invalid, expired, or revoked key.
403The key lacks the scope for this endpoint.
404Resource not found, or not granted to this key.
429Rate limit or monthly quota reached. Wait for Retry-After.
500Unexpected server error.
503A dependency is temporarily unavailable. Retry with backoff.

Questions

Retrieve practice questions from the bank and grade answers against their keys.

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.

Query parameters
NameTypeDescription
eventstringExact event name from GET /api/meta/events.
eventsstringComma-separated event names (up to 40). The limit is split evenly across them.
divisionstringB or C.
tournamentstringTournament name; case-insensitive partial match.
subtopicstringOne subtopic from GET /api/meta/subtopics.
subtopicsstringComma-separated subtopics; matches any of them.
difficultiesstringComma-separated buckets: easy (0.00–0.44), medium (0.45–0.64), hard (0.65–1.00). Takes precedence over difficulty_min/max.
difficulty_minnumberMinimum difficulty, 0.0 to 1.0.
difficulty_maxnumberMaximum difficulty, 0.0 to 1.0.
question_typemcq | frqMultiple choice or free response only.
limitintegerNumber of questions, 1 to 200. Default 50.
light1Omit created_at and updated_at for a smaller payload.
orderidReturn questions in id order instead of at random, to page through one event.
afteruuidWith order=id: the last id of the previous page. An empty page is the end.
Errors
StatusMeaning
400Invalid parameters, or a key sent in the URL.
401Missing, invalid, expired, or revoked API key (code api_key_required when none was sent).
403The key lacks the required scope.
429Rate limit or monthly quota reached. See Retry-After.
503Access 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 ]
}

GET/api/id-questions

Returns picture-identification questions (e.g. Rocks and Minerals, Entomology). Options are shuffled and a picture is chosen per request.

Authentication: Developer key required. Same answer rules and quota as GET /api/questions.

Query parameters
NameTypeDescription
eventstringExact event name.
divisionstringB or C.
subtopic / subtopicsstringAs for GET /api/questions.
difficulties, difficulty_min, difficulty_maxstring / numberAs for GET /api/questions.
question_typemcq | frqMultiple choice or free response only.
rm_typerock | mineralRocks and Minerals only: one kind of specimen.
id_listregs | natsRestrict to the regional or national specimen list where the event has one.
pure_id_onlytrueWater-quality events: only specimen identification, no other picture questions.
limitintegerNumber of questions, 1 to 200. Default 50.
light1Omit created_at and updated_at.
Errors
StatusMeaning
400Invalid parameters, or a key sent in the URL.
401Missing, invalid, expired, or revoked API key (code api_key_required when none was sent).
403The key lacks the required scope.
429Rate limit or monthly quota reached. See Retry-After.
503Access or usage store temporarily unavailable.

Request

curl --get 'https://www.scio.ly/api/id-questions' -H "X-API-Key: $SCIOLY_API_KEY" \
  --data-urlencode 'event=Rocks and Minerals' \
  --data-urlencode 'limit=5'

Response 200

{
  "success": true,
  "data": [
    Question & {
      "images": ["https URL"],
      "creditKey": "string"   // identifies the picture shown
    }
  ]
}

POST/api/questions/batch

Returns the questions with the given ids, from both the text and picture banks, in the order requested. Unknown ids are left out.

Authentication: Developer key required. Counts against the key's quota. Answers are always sealed (use gradeToken), whatever the key's scopes.

Request body (JSON)
NameTypeDescription
idsrequireduuid[]1 to 200 question ids.
Errors
StatusMeaning
400ids missing, empty, or over 200.
401Missing, invalid, expired, or revoked API key (code api_key_required when none was sent).
403The key lacks the required scope.
429Rate limit or monthly quota reached. See Retry-After.
503Access or usage store temporarily unavailable.
500Lookup failed.

Request

curl 'https://www.scio.ly/api/questions/batch' -H "X-API-Key: $SCIOLY_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"ids":["78f4f88c-b125-4eac-a29b-9fb53e0a231a"]}'

Response 200

{
  "success": true,
  "data": [ Question ]   // picture questions also have imageData
}

POST/api/questions/grade

Grades answers using each question's gradeToken and returns the score and the answer key for each item.

Authentication: Developer key required. Counts against the key's quota.

Request body (JSON)
NameTypeDescription
itemsrequiredobject[]1 to 200 items, one per question.
items[].tokenrequiredstringThe question's gradeToken.
items[].selectedinteger[]Multiple choice: zero-based indices of the chosen options.
items[].textstringFree response: the answer text (up to 4,000 characters).
items[].questionstringOptional question text, which improves free-response grading.
Errors
StatusMeaning
400Malformed body or too many items.
401Missing, invalid, expired, or revoked API key (code api_key_required when none was sent).
403The key lacks the required scope.
429Rate limit or monthly quota reached. See Retry-After.
503Access or usage store temporarily unavailable.

Results are in the same order as items. Free responses that need judgement are graded by AI within a per-caller budget, then by text matching.

Request

curl 'https://www.scio.ly/api/questions/grade' -H "X-API-Key: $SCIOLY_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{"items":[{"token":"<gradeToken>","selected":[0]}]}'

Response 200

{
  "success": true,
  "data": {
    "results": [
      {
        "ok": true,
        "kind": "mcq" | "frq",
        "score": number | null,      // 0 to 1; null if the key is empty
        "gradedBy": "key" | "exact" | "ai" | "text-match" | "none",
        "usedFallback": boolean,     // AI grading unavailable; text matching used
        "answers": [number | "string"],
        "multiSelect": boolean,
        "specimenName": "string",    // picture questions only
        "sourceUrl": "string"        // picture questions only
      }
      | { "ok": false, "error": "invalid_token" }
    ]
  }
}

Metadata

Labels and counts for building filters. Developer key required, like every endpoint here; each request counts against the key's quota.

GET/api/meta/events

Lists every event name in the bank, alphabetically.

Authentication: Developer key required. Counts against the key's quota.

No parameters.

Errors
StatusMeaning
400Invalid parameters, or a key sent in the URL.
401Missing, invalid, expired, or revoked API key (code api_key_required when none was sent).
403The key lacks the required scope.
429Rate limit or monthly quota reached. See Retry-After.
503Access or usage store temporarily unavailable.
500Lookup failed.

Request

curl 'https://www.scio.ly/api/meta/events' -H "X-API-Key: $SCIOLY_API_KEY"

Response 200

{ "success": true, "data": ["string"] }

GET/api/meta/subtopics

Lists subtopic labels, optionally for one event.

Authentication: Developer key required. Counts against the key's quota.

Query parameters
NameTypeDescription
eventstringExact event name. Omit for every subtopic.
Errors
StatusMeaning
400Invalid parameters, or a key sent in the URL.
401Missing, invalid, expired, or revoked API key (code api_key_required when none was sent).
403The key lacks the required scope.
429Rate limit or monthly quota reached. See Retry-After.
503Access or usage store temporarily unavailable.
500Lookup failed.

Request

curl --get 'https://www.scio.ly/api/meta/subtopics' -H "X-API-Key: $SCIOLY_API_KEY" --data-urlencode 'event=Meteorology'

Response 200

{ "success": true, "data": ["string"] }

GET/api/meta/tournaments

Lists tournament names that appear in the bank.

Authentication: Developer key required. Counts against the key's quota.

No parameters.

Errors
StatusMeaning
400Invalid parameters, or a key sent in the URL.
401Missing, invalid, expired, or revoked API key (code api_key_required when none was sent).
403The key lacks the required scope.
429Rate limit or monthly quota reached. See Retry-After.
503Access or usage store temporarily unavailable.
500Lookup failed.

Request

curl 'https://www.scio.ly/api/meta/tournaments' -H "X-API-Key: $SCIOLY_API_KEY"

Response 200

{ "success": true, "data": ["string"] }

GET/api/meta/stats

Question counts in total, by event, and by division.

Authentication: Developer key required. Counts against the key's quota.

No parameters.

Errors
StatusMeaning
400Invalid parameters, or a key sent in the URL.
401Missing, invalid, expired, or revoked API key (code api_key_required when none was sent).
403The key lacks the required scope.
429Rate limit or monthly quota reached. See Retry-After.
503Access or usage store temporarily unavailable.
500Lookup failed.

count values are numeric strings.

Request

curl 'https://www.scio.ly/api/meta/stats' -H "X-API-Key: $SCIOLY_API_KEY"

Response 200

{
  "success": true,
  "data": {
    "total": integer,
    "byEvent": [{ "event": "string", "count": "string" }],
    "byDivision": [{ "division": "string", "count": "string" }]
  }
}

Team progress

For coaches whose key has been granted specific teams. Keys have no team access unless granted.

GET/api/developer/teams

Lists the active teams this key may read.

Authentication: Developer key required. Counts against the key's quota.

No parameters.

Errors
StatusMeaning
400Invalid parameters, or a key sent in the URL.
401Missing, invalid, expired, or revoked API key (code api_key_required when none was sent).
403The key lacks the required scope.
429Rate limit or monthly quota reached. See Retry-After.
503Access or usage store temporarily unavailable.

Request

curl 'https://www.scio.ly/api/developer/teams' -H "X-API-Key: $SCIOLY_API_KEY"

Response 200

{
  "success": true,
  "data": [
    { "id": "uuid", "name": "string", "school": "string", "division": "string" }
  ]
}

GET/api/developer/teams/{teamId}/progress

Practice and assignment summaries for each active member of a team, plus team totals.

Authentication: Developer key granted this team. Counts against the key's quota.

Path parameters
NameTypeDescription
teamIdrequireduuidA team id from GET /api/developer/teams.
Query parameters
NameTypeDescription
days7 | 30 | 90Practice window. Default 30.
Errors
StatusMeaning
400Invalid parameters, or a key sent in the URL.
401Missing, invalid, expired, or revoked API key (code api_key_required when none was sent).
403The key lacks the required scope.
404Team not found or not granted to this key.
429Rate limit or monthly quota reached. See Retry-After.
503Access or usage store temporarily unavailable.

Pending and removed members are excluded. Email addresses, invitation codes, and individual answers are never included. Treat these records as private.

Request

curl 'https://www.scio.ly/api/developer/teams/<teamId>/progress?days=30' -H "X-API-Key: $SCIOLY_API_KEY"

Response 200

{
  "success": true,
  "data": {
    "team": { "id": "uuid", "name": "string", "school": "string", "division": "string" },
    "days": 7 | 30 | 90,
    "windowStart": "YYYY-MM-DD",
    "members": [
      {
        "userId": "uuid",
        "name": "string",
        "username": "string" | null,
        "role": "string",
        "activeThisWeek": boolean,
        "practice": {
          "questionsAttempted": integer,
          "correctAnswers": integer,
          "accuracy": number | null,      // percent
          "activeDays": integer,
          "lastActiveDate": "YYYY-MM-DD" | null,
          "topEvents": [{ "eventName": "string", "questions": integer }]
        },
        "assignments": {
          "assigned": integer,
          "submitted": integer,
          "averageScore": number | null   // percent
        }
      }
    ],
    "totals": {
      "memberCount": integer,
      "activeThisWeek": integer,
      "activeInWindow": integer,
      "totalQuestions": integer,
      "totalCorrect": integer,
      "averageAccuracy": number | null
    }
  }
}

Usage

Your key's limits and recent activity.

GET/api/developer/usage

Returns the key's limits, this month's usage, and daily totals for the last 30 days (UTC). Does not count against the quota.

Authentication: Developer key required.

No parameters.

Errors
StatusMeaning
400Key sent in the URL or malformed header.
401Missing, invalid, expired, or revoked key.
429Over 50 lookups per minute per IP.
503Usage store temporarily unavailable.

Request

curl 'https://www.scio.ly/api/developer/usage' -H "X-API-Key: $SCIOLY_API_KEY"

Response 200

{
  "success": true,
  "data": {
    "name": "string",
    "prefix": "string",
    "scopes": ["questions:read" | "answers:read"],
    "teamIds": ["uuid"],
    "expiresAt": "ISO 8601",
    "lastUsedAt": "ISO 8601" | null,
    "limits": { "requestsPerMinute": integer, "requestsPerMonth": integer },
    "month": { "startsAt": "ISO 8601", "requests": integer, "remaining": integer },
    "daily": [
      { "day": "YYYY-MM-DD", "requests": integer, "questions": integer, "errors": integer }
    ]
  }
}

Objects

Question

Returned by every question endpoint. Without answers:read, answers is empty: grade with the gradeToken instead. For multiple choice, numeric answers are zero-based indices into options. Free-response answers are strings.

Question

{
  "id": "uuid",
  "question": "string",
  "tournament": "string",
  "division": "B" | "C" | "B/C" | "",
  "event": "string",
  "difficulty": number,            // 0.0 to 1.0
  "options": ["string"],           // empty for free response
  "answers": [number | "string"],  // empty unless answers:read (see below)
  "subtopics": ["string"],
  "base52": "string",              // short share code
  "gradeToken": "string",          // pass to POST /api/questions/grade
  "created_at": "ISO 8601",        // omitted with light=1
  "updated_at": "ISO 8601"         // omitted with light=1
}

Terms of use

  • Non-commercial educational use as described in your access request, including team handouts.
  • Credit Scio.ly, and keep the source and image attribution we supply.
  • Don’t redistribute keys, republish or resell the bank, get around limits, or use the API to earn Ions or affect rankings.
  • Subtopic labels don’t guarantee alignment with a season’s rules. Check questions against the current rules manual.
  • Report a wrong question with its id, the proposed correction, and a source, to team.scio.ly@gmail.com. See also the Terms of Service.