Get started
Shiur Reader API
Create Readers and word Timings from your own software: make an API Key, create a Build, then poll it or get a webhook. Quickstart with curl, Python and JavaScript.
The Shiur Reader API lets your Organization's software do what Members do on the website. Send a Source Text and a shiur Recording, and get back one of two results:
Each processing of a Recording against a Source Text is a Build. You create a Build, it runs in the
background, and then it is done or failed.
Base URL#
https://app.shiurreader.com/api/v1Every request needs an API Key in the Authorization header. Requests and responses are JSON, except
file uploads, which are multipart/form-data. Call the API from your server: an API Key must never be
in a web page or an app that people download.
Quickstart#
From nothing to a Reader link in four steps.
-
1. Create an API Key#
An Owner of your Organization signs in, opens API Keys, names a key (for example "Our website") and copies it. It starts with
sr_and is shown only once. Keep it in an environment variable:export SHIUR_READER_API_KEY="sr_..."More in Authentication.
-
2. Create a Build#
Upload a PDF and a Recording (or send links to them). The answer comes at once, with status
202 Accepted: the Build isqueued.curl
curl https://app.shiurreader.com/api/v1/builds \ -H "Authorization: Bearer $SHIUR_READER_API_KEY" \ -F title="Lehavin 6" \ -F pdf=@lehavin-6.pdf \ -F recording=@lehavin-6.mp3 \ -F webhook_url=https://example.org/hooks/shiur-readerPython
import os import requests # or httpx: the calls are the same API = "https://app.shiurreader.com/api/v1" HEADERS = {"Authorization": f"Bearer {os.environ['SHIUR_READER_API_KEY']}"} with open("lehavin-6.pdf", "rb") as pdf, open("lehavin-6.mp3", "rb") as recording: response = requests.post( f"{API}/builds", headers=HEADERS, data={"title": "Lehavin 6", "webhook_url": "https://example.org/hooks/shiur-reader"}, files={"pdf": pdf, "recording": recording}, ) if response.status_code != 202: raise RuntimeError(response.json()["error"]["message"]) build = response.json() print(build["id"], build["status"]) # cd4e2fd7... queuedJavaScript
import { openAsBlob } from "node:fs"; // Node 20+ const API = "https://app.shiurreader.com/api/v1"; const HEADERS = { Authorization: `Bearer ${process.env.SHIUR_READER_API_KEY}` }; const form = new FormData(); form.append("title", "Lehavin 6"); form.append("pdf", await openAsBlob("lehavin-6.pdf"), "lehavin-6.pdf"); form.append("recording", await openAsBlob("lehavin-6.mp3"), "lehavin-6.mp3"); form.append("webhook_url", "https://example.org/hooks/shiur-reader"); const response = await fetch(`${API}/builds`, { method: "POST", headers: HEADERS, body: form }); if (response.status !== 202) throw new Error((await response.json()).error.message); const build = await response.json(); console.log(build.id, build.status); // cd4e2fd7... queued{ "id": "cd4e2fd751c84d659936cdf0e0002da0", "url": "https://app.shiurreader.com/api/v1/builds/cd4e2fd751c84d659936cdf0e0002da0", "title": "Lehavin 6", "status": "queued", "waiting_reason": null, "progress": { "percent": 0, "message": "Waiting to start…" }, "failure_reason": null, "audio_hours": null, "visibility": null, "reader": null, "match": null, "timings_url": null, "reader_data_url": null, "created_at": "2026-10-11T09:00:00Z", "finished_at": null }Have a Word List instead of a PDF? See Builds from a Word List.
-
3. Wait for it: poll or webhook#
Either ask for the Build every few seconds until it is
doneorfailed:curl
# Ask every 10 seconds until the status is "done" or "failed". while true; do status=$(curl -s https://app.shiurreader.com/api/v1/builds/cd4e2fd751c84d659936cdf0e0002da0 \ -H "Authorization: Bearer $SHIUR_READER_API_KEY" | jq -r .status) echo "$status" [ "$status" = done ] || [ "$status" = failed ] && break sleep 10 donePython
import time # `build` is the JSON from POST /builds. Its "url" is where to poll. while build["status"] in ("waiting", "queued", "running"): time.sleep(10) build = requests.get(build["url"], headers=HEADERS).json() if build["status"] == "done": print("Reader:", build["reader"]["url"]) # a PDF Build print("Timings:", build["timings_url"]) # a Word List Build else: print("Failed:", build["failure_reason"])JavaScript
// `build` is the JSON from POST /builds. Its "url" is where to poll. const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); while (["waiting", "queued", "running"].includes(build.status)) { await sleep(10_000); build = await (await fetch(build.url, { headers: HEADERS })).json(); } if (build.status === "done") { console.log("Reader:", build.reader?.url); // a PDF Build console.log("Timings:", build.timings_url); // a Word List Build } else { console.log("Failed:", build.failure_reason); }Or, better, send a
webhook_urlwhen you create it (as in step 2). We POST a signed message there when the Build is done or failed. See Webhooks. -
4. Get the Reader link or the Timings#
A done PDF Build has
reader.url: the Reader's short link. Share it, or put it in an iframe with the Embed Code. A done Word List Build hastimings_urlinstead.{ "id": "cd4e2fd751c84d659936cdf0e0002da0", "url": "https://app.shiurreader.com/api/v1/builds/cd4e2fd751c84d659936cdf0e0002da0", "title": "Lehavin 6", "status": "done", "waiting_reason": null, "progress": { "percent": 100, "message": "Done" }, "failure_reason": null, "audio_hours": "1.5", "visibility": null, "reader": { "id": "0dibrutk", "url": "https://app.shiurreader.com/r/0dibrutk", "deleted": false }, "match": { "words_timed": 958, "words_total": 1012, "pages_read": [ 5, 6, 7 ], "audio_minutes_matched": 38.4, "reading_spans": [ [ 41.2, 1820.5 ], [ 1902.0, 2507.9 ] ], "mismatch": false }, "timings_url": null, "reader_data_url": "https://app.shiurreader.com/api/v1/readers/0dibrutk/data", "created_at": "2026-10-11T09:00:00Z", "finished_at": "2026-10-11T09:41:12Z" }
Words we use#
- Organization
- The account that owns Readers and pays. Every API Key belongs to one, and every request acts for it.
- Source Text
- The printed words a Reader follows: a PDF or a Word List, in Hebrew or Aramaic.
- Word List
- A Source Text given as words in reading order, without page images. Each word is identified by its position.
- Recording
- The audio of the shiur. Stored (we keep a copy) or Linked (played from your own address).
- Build
- One processing of a Recording against a Source Text. It makes a Reader or Timings.
- Reader
- The result for a PDF: pages, Recording and word times at a short link that does not change when renamed.
- Timings
- The result for a Word List: the start and end time of each word, by position.
- Audio Hours
- The full length of a Recording, which is what is billed. Failed Builds count zero.
All endpoints#
- POST
/api/v1/buildsCreate a Build - GET
/api/v1/builds/{build_id}Get a Build - GET
/api/v1/builds/{build_id}/timingsGet Timings - PATCH
/api/v1/readers/{reader_id}Rename, set Visibility - DELETE
/api/v1/readers/{reader_id}Delete a Reader
Prefer a machine-readable contract? The OpenAPI 3.1 spec (also as JSON) describes every endpoint, field and error code, and works with code generators and tools like Postman.