For developers & AI engines
An open API for the archive
The entire archive — the full catalog, the full text of every lesson, and the Rav's books one chapter at a time — is available as JSON. No API key, no practical rate limit. Each file is rendered from the site's live content model and served through the CDN with a short cache, so what you fetch is never more than a few minutes behind what a reader sees. All content is Hebrew.
Endpoints
| URL | What you get |
|---|---|
/api/v1/index.json | API root: endpoint list, counts, and terms of use |
/api/v1/entries.json | The full catalog — one row per archive entry: title, Hebrew date, topics, the entry's page URL, and its document id (doc_id) |
/api/v1/doc/{doc_id}.json | One document: metadata, the full text (plain text, not HTML), a sections structure map (each heading with its character offset into text) and the footnotes. Take the doc_id from the catalog row. For a bookthis address answers with the book's table of contents instead — chapters (id, title, size, the page that renders it, and the address of its text) — and no text |
/api/v1/doc/{doc_id}/{chapter}.json | One chapter of a book, in the same shape as a document: its plain text, its sections map, the footnotes it points at, and a chapter object (index, of, prev, next). Take chapterfrom the book's chapters[].id; the #toc_… anchor of a search result works too and answers with the chapter that holds it. Books are served one chapter per request — there is no whole-book file |
/api/v1/topics.json · /api/v1/series.json · /api/v1/years.json | The topic, series and year indexes — the same ones the site itself uses |
/api/v1/media.json | The recordings catalog the catalog row's media_idspoint into: title, date, part and the audio source behind the site's player |
/api/v1/videos.json | Entry id → YouTube video ids, in display order — the same pairing a lesson page uses |
/api/v1/book-links.json | Which lessons were taught on which book, both ways: lessons maps an entry id to the books that lesson is taught on, books maps a book's doc_idto the lessons taught on it. The same rows ride on a document's own answer — books on a lesson, lessons on a book — and are absent when there is no link |
/api/v1/books-tree.json | The books navigation tree as the site renders it: nested categories and books, with a deep link per chapter |
/api/v1/ledger/{year}.json | The documentation ledger for one Hebrew year — what was taught when, including entries with no text of their own |
/api/v1/openapi.json | Machine-readable OpenAPI 3.1 description of this API — the authoritative endpoint list, including banner.json |
Example — fetch the catalog and one document:
curl https://galeinai.org.il/api/v1/entries.json
curl https://galeinai.org.il/api/v1/doc/3574866928_1.jsonA book — its table of contents, then one chapter:
curl https://galeinai.org.il/api/v1/doc/book_2700951686.json
curl https://galeinai.org.il/api/v1/doc/book_2700951686/toc_h2_1.jsonFootnotes: footnotesmaps a note's key (ftn7, edn93) to its plain text, and the markers in textcarry the same numbers — the source document's own. The site's pages print a different number in a long document, where the count starts again in every chapter; footnote_labels gives that printed number for each key ("edn93": "34"). Show the label to a reader who will look the note up on the site, and keep pairing a marker with its note by the key — labels repeat within one answer. A note opens on the site at {url}#fn-{key}.
Formatting and tables: text is plain — bold is gone, and a table is flattened into lines (cells joined by " · ", one row per line). Add ?rich=1 to a document or chapter address for the structure. The answer is the same, with two more keys at the end: rich and footnotes_html (each note's markup, by key). rich has one row per entry of sections, {anchor, blocks}; a block's type is p, h2, h3, table or img. A text block is a list of runs: t (the characters) and the styles they carry — b bold, i italic, u underline, sup, sub, href, cls (a named style), and fn on a note marker (the note's key). A table is rows of cells, each with its own runs, th for a header cell and colspan / rowspan for a merged one — the HTML table model, so a row lists only the cells that begin in it. Keys a block does not need are absent; ignore any key you do not know.
curl "https://galeinai.org.il/api/v1/doc/book_952196674/toc_h1_2.json?rich=1"Live search
Two live endpoints answer "where does the archive discuss this?" without pulling the whole catalog. Both are free and keyless, and return source text plus the page URL for each hit:
| URL | What you get |
|---|---|
/api/search?q={words}&texts=1&collections=1 | Word search — the same engine as the site's search box, including Hebrew spelling variants. texts=1 adds the matching passage text; collections=1 adds curated topic groupings; limit up to 50 |
/api/semantic?q={passage}&texts=1 | Meaning search — send a whole study passage (up to ~1,300 Hebrew characters) and get the closest passages in the archive by idea, ranked by a similarity score, even with no words in common |
curl "https://galeinai.org.il/api/search?q=%D7%90%D7%9E%D7%95%D7%A0%D7%94&texts=1&collections=1"
curl "https://galeinai.org.il/api/semantic?q=<whole passage, URL-encoded>&texts=1"These run real computation per call, so unlike the static files they are rate limited: 120 requests per minute per IP address. Beyond that the API returns HTTP 429 with a Retry-After header — back off and retry, and cache results on your side where you can. The site's answer engine (the chat) is not part of this API: it serves the site's own visitors only, and external callers receive 403. Retrieve sources here and compose the answer with your own model.
For AI engines
An llms.txt file at the site root describes this structure for engines that read it. For bulk grounding, prefer the catalog and document files above — one fetch serves any number of questions, and they carry no rate limit. For per-question retrieval, the live search endpoints are fine within their rate limit.
To attach the archive to an AI assistant rather than to your own code — a remote MCP server and an Agent Skill, with install steps for Claude Code, claude.ai, Claude Desktop and Codex — see Connect the archive to your AI (Hebrew).
Terms of use
- All content © Gal Einai Institute. Free to use for study, research and AI grounding — with attribution ("from the teachings of Rabbi Yitzchak Ginsburgh, Gal Einai Institute") and a link back to the source page (the
urlfield). - Commercial republication of the content requires the institute's permission (contact us).
- The Rav's books are published by the institute. They are here to be searched, quoted and linked chapter by chapter — please do not assemble a copy of a whole book from its chapters.
- Pull politely: the catalog and document files have no rate limit, but a full pull of the archive is on the order of 200MB — there is no need to fetch it more than once per publish. The live search endpoints are limited to 120 requests/minute per IP.