Question bank API

Connect a server to the Sprachpass question bank and check submitted answers.

View Markdown

Watch the 2-minute developer tour

The Sprachpass API serves active Goethe and telc listening and reading questions. It uses versioned HTTPS endpoints, client API keys, and JSON responses.

Start with the official tools

Quickstart

Ask your Sprachpass contact for a live API key. Save it in your server's encrypted configuration, then make this request from the server:

bash
curl --request GET \
  --url 'https://sprachpass.com/api/v1/items?board=goethe&level=A1&skill=lesen&limit=10' \
  --header "Authorization: Bearer $SPRACHPASS_API_KEY"

A successful response contains a data array and a pagination object. Follow pagination.next_cursor until it is null.

What you can do

  • List active listening and reading questions for one exam board.
  • Read one eligible question and its response schema.
  • Submit a response and receive a correct or incorrect verdict.
  • Read the current board parts, levels, response types, and catalog counts.
  • Read your own access: scopes, operations, live targets, and the client rate limit.

Check your access

GET /api/v1/access tells a key what it can do right now. It returns the identity class (developer for every API key), the scopes, the operations the key may call, the board, level, and skill targets that have questions today, and the client's minute window with its reset time. It never reports a credit balance, because there is none.

bash
curl --request GET \
  --url 'https://sprachpass.com/api/v1/access' \
  --header "Authorization: Bearer $SPRACHPASS_API_KEY"

Use it from your server

Keep the key private

The API does not send CORS headers. Do not call it from browser code because that would reveal the API key to the browser user.

Reference

Developer guides