Spiral gives your agent every tool with one account. Browse the tools →

AlexandriaIndustry DataAvailable now

Sefaria: Hebrew Bible, Jewish commentaries and links (sefaria.org) · Get commentary

sefaria-org/bible/get_commentary

Get industry and reference data with Sefaria: Hebrew Bible, Jewish commentaries and links (sefaria.org) · Get commentary from Alexandria through one Spiral API key. Use for 'what does Rashi say on Genesis 1:1', a Jewish commentary on a Bible verse, or to cite a commentator with author and date. A verse the commentator does not comment on is not_found; get_links with category Commentary lists who comments on a ref. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

Pricing

$0.00873 per call.

Limits

Runs
In the background
Returns
json
Longest queue wait
1 hour
Run deadline
5 minutes
Longest run, end to end
225 minutes
Largest inline input
1 MB
Largest input file
2 GB
Largest output
5 GB

Input

FieldKindDefaultDescription
ref requiredtext—

The base-text ref commented on: Genesis 1:1, Exodus 20:2-3, Psalms 23:1, Berakhot 2a.

commentator requiredtext—

The commentator as Sefaria titles the series: Rashi, Ramban, Ibn Ezra, Sforno, Rashbam, Or HaChaim, Kli Yakar, Tosafot, Malbim, Radak... get_links with category Commentary lists who comments on a ref.

languageone of
both, hebrew, english
both

both: Hebrew (or Aramaic) source and English side by side; hebrew or english: one side only.

max_segmentsnumber
1 to 1000
200

At most this many segments; a whole book or tractate is cut here with truncated true.

hebrew_versiontext—

Exact Sefaria versionTitle of the Hebrew edition to use (from versions.hebrew.version_title). It is returned only if its licence permits commercial use.

english_versiontext—

Exact Sefaria versionTitle of the English translation to use, e.g. The Holy Scriptures: A New Translation (JPS 1917). It is returned only if its licence permits commercial use.

Same request in code

curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "sefaria-org/bible/get_commentary",
    "input": {
      "ref": "<ref>",
      "commentator": "<commentator>"
    }
  }'

Frequently asked questions

How much does Sefaria: Hebrew Bible, Jewish commentaries and links (sefaria.org) · Get commentary cost?

$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.

How do I use Sefaria: Hebrew Bible, Jewish commentaries and links (sefaria.org) · Get commentary through an API?

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "sefaria-org/bible/get_commentary"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.

Do I need an account with Alexandria to use Sefaria: Hebrew Bible, Jewish commentaries and links (sefaria.org) · Get commentary?

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

Can my AI agent use Sefaria: Hebrew Bible, Jewish commentaries and links (sefaria.org) · Get commentary?

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.