Search and explore Jewish texts (Torah, Tanach, Talmud, Midrash, commentaries) via Sefaria API. Use when researching Torah sources, looking up verses, finding commentaries, cross-references, or preparing divrei Torah. Supports Hebrew and English. Handles references like "Genesis 1:1", "Berakhot 2a", "Mishnah Avot 1:1".
Research Jewish texts with full access to the Sefaria library: Tanach, Talmud Bavli/Yerushalmi, Mishnah, Midrash, Zohar, and thousands of commentaries.
# Search across all texts
torah search "love your neighbor"
# Get specific verse with Hebrew + English
torah verse "Leviticus 19:18"
# Find commentaries on a verse
torah links "Genesis 1:1"
# This week's parsha
torah parsha
# Today's learning schedule (Daf Yomi, etc.)
torah today
| Command | Description | Example |
|---|---|---|
torah search <query> | Full-text search | torah search "tikkun olam" |
torah verse <ref> | Get text + translation | torah verse "Psalms 23" |
torah links <ref> | Commentaries & cross-refs |
torah links "Exodus 20:1" |
torah related <ref> | Related texts & topics | torah related "Deuteronomy 6:4" |
torah parsha | This week's portion | torah parsha |
torah today | Daily learning schedule | torah today |
torah dvar | Generate dvar Torah | torah dvar |
torah dvar ref <ref> | Dvar on specific verse | torah dvar ref "Genesis 12:1" |
torah dvar theme <theme> | Dvar with theme focus | torah dvar theme "leadership" |
Book Chapter:Verse or Book Chapter:Start-EndGenesis 1:1, Psalms 23, Isaiah 40:1-5Tractate DafNumber + a or bBerakhot 2a, Shabbat 31a, Bava Metzia 59bMishnah Tractate Chapter:MishnahMishnah Avot 1:1, Mishnah Berakhot 1:1Genesis Rabbah 1:1, Exodus Rabbah 1:1Tanchuma Bereshit 1Pirkei DeRabbi Eliezer 1torah links <ref> to see Rashi, Ramban, Ibn Ezra, Sforno, etc.# 1. Search for topic
torah search "repentance teshuvah"
# 2. Get full text of relevant result
torah verse "Maimonides Hilchot Teshuvah 2:1"
# 3. Find related commentaries
torah links "Maimonides Hilchot Teshuvah 2:1"
# 1. Get this week's parsha
torah parsha
# 2. Read the opening verses
torah verse "Genesis 12:1-5" # (adjust to actual parsha)
# 3. Find commentaries for insights
torah links "Genesis 12:1"
# 4. Search for thematic connections
torah search "lech lecha journey"
# 1. Check today's daf
torah today
# 2. Get the text
torah verse "Berakhot 2a" # (from calendar)
# 3. See what it connects to
torah links "Berakhot 2a"
# Quick dvar for this week's parsha
torah dvar
# Focus on specific verse
torah dvar ref "Exodus 28:1"
# Explore a theme across sources
torah dvar theme "holiness and service"
The dvar generator outputs:
For advanced usage, import directly:
from scripts.sefaria import get_text, search, get_links, get_parsha
# Get verse
result = get_text("Genesis 1:1")
print(result.get("he")) # Hebrew
print(result.get("text")) # English
# Search
results = search("golden rule", limit=5)
# Get commentaries
links = get_links("Leviticus 19:18")
torah search "ואהבת לרעך כמוך"torah verse "Psalms 23" returns entire chaptertorah verse "Genesis 1:1-5" for multiple versesPowered by Sefaria — the free, open-source library of Jewish texts.