← Hebroni

Torah API

Free public REST API · 5,854 verses · Hebrew, KJV & Modern English
No auth required · Static JSON · Free forever

Overview

Hebroni provides a free, static JSON API for every verse in the Torah — Genesis through Deuteronomy. No API key, no rate limits, no signup. All responses are static JSON files served from GitHub Pages.

Base URL

https://swrthy.com/api/v1/torah/

Endpoints

GET/api/v1/torah/{book}/{chapter}/{verse}.json
A single verse — Hebrew, KJV, and modern English
GET/api/v1/torah/{book}/{chapter}.json
All verses in a chapter
GET/api/v1/torah/{book}.json
Book index — chapter list with verse counts
GET/api/v1/torah/index.json
Full API index — all books and endpoint reference

Book Codes

Genesis
gen
50 ch · 1,533 v
Exodus
ex
40 ch · 1,213 v
Leviticus
lev
27 ch · 859 v
Numbers
num
36 ch · 1,288 v
Deuteronomy
deu
34 ch · 961 v

Example: Genesis 1:1

GET https://swrthy.com/api/v1/torah/gen/1/1.json

{
  "ref":      "Genesis 1:1",
  "book":     "Genesis",
  "book_code": "gen",
  "chapter":  1,
  "verse":    1,
  "he":       "בְּרֵאשִׁית בָּרָא אֱלֹהִים אֵת הַשָּׁמַיִם וְאֵת הָאָרֶץ׃",
  "en":       "In the beginning God created the heavens and the earth.",
  "en_plain":  "In the beginning, God created the heavens and the earth.",
  "url":      "https://swrthy.com/torah/reader/#gen/1/1"
}

Response Fields

FieldDescription
refHuman-readable reference (e.g. "Genesis 1:1")
bookEnglish book name
book_codeShort book code for API URLs
chapterChapter number
verseVerse number
heHebrew text (Masoretic, fully voweled)
enEnglish translation — Authorized King James Version (1611)
en_plainModern plain-English — World English Bible (WEB, public domain)
urlDeep link to this verse in the Hebroni Torah Reader

Usage Examples

JavaScript (fetch)

fetch('https://swrthy.com/api/v1/torah/gen/1/1.json')
  .then(r => r.json())
  .then(v => console.log(v.he, v.en_plain));

Python

import requests
v = requests.get('https://swrthy.com/api/v1/torah/gen/1/1.json').json()
print(v['he'], v['en_plain'])

curl

curl https://swrthy.com/api/v1/torah/gen/1/1.json

CORS

All API responses are served with CORS headers by GitHub Pages, so you can fetch them from any domain or browser context.

Attribution

If you use this API, please link back to swrthy.com/hebrew — Hebroni Torah Reader. The Hebrew text is from the Masoretic tradition. The KJV is public domain (1611). The plain-English translation is the World English Bible (WEB), public domain.

Limits

No rate limits. These are static files — each request is just a CDN fetch. Be reasonable with batch requests (add small delays if fetching hundreds of verses programmatically).