> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Sefaria

> The Sefaria library of Jewish texts: Tanakh, Talmud, commentaries and more in Hebrew and translation, with links between texts, topics, lexicons, calendars and full-text search.

![](https://mintcdn.com/webrouter/T_A5Quwg50s_JK2y/logo/data-apis/sefaria.svg?fit=max\&auto=format\&n=T_A5Quwg50s_JK2y\&q=85\&s=462663762de1ef7c97c0a722d84c25d7)

[Web Catalog · Media](https://docs.webrouter.net/data-apis.md?category=media)

No key needed

Endpoints

10

Auth

None

[Vendor docs](https://developers.sefaria.org/docs/welcome) · Serves `sefaria.org`

## Notes

* Keyless. Texts are addressed by refs (Genesis 1:1, Berakhot 2a); spaces in a ref are URL-encoded in the path.
* Each text version carries its own licence (e.g. CC-BY-SA, public domain); see the version's license field before reuse.
* find-refs is asynchronous: it returns a task\_id with HTTP 202, then poll GET /api/async/\{task\_id} until it holds the result.

## Endpoints

GET

Get a text passage

The text of a ref in one or more versions (Hebrew source, translations), with version metadata and licences.

[Open](#sefaria-texts-get)

GET

Get links for a ref

Known connections of a ref (commentary, midrash, quotations...) with their categories and optionally their text.

[Open](#sefaria-links-get)

GET

Get everything related to a ref

Links, sheets, notes, media, manuscripts and topics for a ref in one call.

[Open](#sefaria-related-get)

GET

Autocomplete a name

Refs, book titles, authors, topics and collections matching a string.

[Open](#sefaria-name-lookup)

POST

Search the library

Elasticsearch full-text search over library texts or user source sheets.

[Open](#sefaria-search)

GET

Get the learning schedule for a date

Daily and weekly learning (Torah portion, Haftarah, Daf Yomi, ...) for today or a given date.

[Open](#sefaria-calendars-get)

GET

Get a topic

A topic's metadata and, optionally, its links to other topics and the refs tagged with it.

[Open](#sefaria-topics-get)

GET

Look up a word in the lexicons

Entries from Sefaria's lexicons (dictionaries) matching a word or phrase.

[Open](#sefaria-words-get)

GET

Get a book's index record

The full database record of a work's index: titles, categories and schema.

[Open](#sefaria-index-get)

POST

Find citations in text

Starts an async job that identifies Sefaria refs cited in arbitrary text.

[Open](#sefaria-find-refs)

### Get a text passage

GET

`/api/v3/texts/{tref}`

`sefaria.texts.get`

The text of a ref in one or more versions (Hebrew source, translations), with version metadata and licences.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`tref` required</td><td>string</td><td>path</td><td>A Sefaria ref: a human-readable citation such as Genesis 1:1, Berakhot 2a or Rashi on Genesis 1:1. Example `Esther 1.1`</td></tr>
    <tr><td>`version`</td><td>string</td><td>query</td><td>A language's full English name (english, hebrew, arabic; not case-sensitive), language|versionTitle for one exact version, or source, translation or primary. May be repeated. Default primary. Example `english`</td></tr>
    <tr><td>`fill_in_missing_segments`</td><td>string</td><td>query</td><td>1 to fill gaps in a partial version from other versions. One of `0`, `1`</td></tr>
    <tr><td>`return_format`</td><td>string</td><td>query</td><td>text\_only strips footnotes, inline refs and HTML; default keeps them. One of `default`, `wrap_all_entities`, `strip_only_footnotes`, `text_only`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.sefaria.org/reference/get-v3-texts) · Same job: [Free Use Bible API](https://docs.webrouter.net/data-apis/helloao-bible.md#helloao-bible-chapter-get)

```python Python theme={null}
router.call_data_api("sefaria.texts.get", {'tref': 'Esther 1.1', 'version': 'english'})
```

```text MCP theme={null}
call_data_api(endpoint="sefaria.texts.get", params={"tref": "Esther 1.1", "version": "english"})
```

### Get links for a ref

GET

`/api/links/{tref}`

`sefaria.links.get`

Known connections of a ref (commentary, midrash, quotations...) with their categories and optionally their text.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`tref` required</td><td>string</td><td>path</td><td>A Sefaria ref: a human-readable citation such as Genesis 1:1, Berakhot 2a or Rashi on Genesis 1:1. Example `Obadiah 1.2`</td></tr>
    <tr><td>`with_text`</td><td>string</td><td>query</td><td>Include each linked text; default 1. One of `0`, `1`</td></tr>
    <tr><td>`with_sheet_links`</td><td>string</td><td>query</td><td>Include links to user source sheets; default 0. One of `0`, `1`</td></tr>

    <tr>
      <td>
        `category`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Only links whose category exactly matches, e.g. Commentary.
      </td>
    </tr>

    <tr><td>`categories`</td><td>string</td><td>query</td><td>Only links in one of these categories, comma- or pipe-separated. Example `Commentary,Midrash`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.sefaria.org/reference/get-links) · Same job: [Free Use Bible API](https://docs.webrouter.net/data-apis/helloao-bible.md#helloao-bible-dataset-chapter)

```python Python theme={null}
router.call_data_api("sefaria.links.get", {'tref': 'Obadiah 1.2', 'categories': 'Commentary,Midrash'})
```

```text MCP theme={null}
call_data_api(endpoint="sefaria.links.get", params={"tref": "Obadiah 1.2", "categories": "Commentary,Midrash"})
```

### Get everything related to a ref

GET

`/api/related/{tref}`

`sefaria.related.get`

Links, sheets, notes, media, manuscripts and topics for a ref in one call.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`tref` required</td><td>string</td><td>path</td><td>A Sefaria ref: a human-readable citation such as Genesis 1:1, Berakhot 2a or Rashi on Genesis 1:1. Example `Deuteronomy 1.1`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.sefaria.org/reference/get-related) · Same job: [Free Use Bible API](https://docs.webrouter.net/data-apis/helloao-bible.md#helloao-bible-dataset-chapter)

```python Python theme={null}
router.call_data_api("sefaria.related.get", {'tref': 'Deuteronomy 1.1'})
```

```text MCP theme={null}
call_data_api(endpoint="sefaria.related.get", params={"tref": "Deuteronomy 1.1"})
```

### Autocomplete a name

GET

`/api/name/{name}`

`sefaria.name.lookup`

Refs, book titles, authors, topics and collections matching a string.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`name` required</td><td>string</td><td>path</td><td>Text to match. Example `Genesis`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results to return; 0 means no limit.
      </td>
    </tr>

    <tr><td>`type`</td><td>string</td><td>query</td><td>Only items of this type. One of `ref`, `Collection`, `Topic`, `TocCategory`, `Term`, `User`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.sefaria.org/reference/get-name)

```python Python theme={null}
router.call_data_api("sefaria.name.lookup", {'name': 'Genesis'})
```

```text MCP theme={null}
call_data_api(endpoint="sefaria.name.lookup", params={"name": "Genesis"})
```

### Search the library

POST

`/api/search-wrapper`

`sefaria.search`

Elasticsearch full-text search over library texts or user source sheets.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`query` required</td><td>string</td><td>body</td><td>Search query. Example `love`</td></tr>
    <tr><td>`type`</td><td>string</td><td>body</td><td>Index: text (library) or sheet (user source sheets); default text. One of `text`, `sheet`</td></tr>

    <tr>
      <td>
        `field`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Field to query: exact or naive\_lemmatizer for text; content for sheets. Default naive\_lemmatizer.
      </td>
    </tr>

    <tr>
      <td>
        `size`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Results to return; default 10.
      </td>
    </tr>

    <tr>
      <td>
        `slop`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Maximum distance between query words; 0 is an exact phrase. Default 10.
      </td>
    </tr>

    <tr>
      <td>
        `filters`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Filter values (no regex), matched to filter\_fields by position; for text, path prefixes such as a category or book.
      </td>
    </tr>

    <tr>
      <td>
        `filter_fields`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Fields the filters apply to; for sheets: collections, topics\_en, topics\_he.
      </td>
    </tr>

    <tr>
      <td>
        `aggs`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Fields to aggregate on, e.g. path for text; group or topics for sheets.
      </td>
    </tr>

    <tr><td>`sort_method`</td><td>string</td><td>body</td><td>sort orders by sort\_fields; score multiplies the sort field into the search score. Default score. One of `sort`, `score`</td></tr>

    <tr>
      <td>
        `sort_fields`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Fields to sort on, e.g. comp\_date or pagesheetrank; exactly one when sort\_method is score.
      </td>
    </tr>

    <tr>
      <td>
        `sort_reverse`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Reverse the sort.
      </td>
    </tr>

    <tr>
      <td>
        `sort_score_missing`
      </td>

      <td>
        number
      </td>

      <td>
        body
      </td>

      <td>
        Value used when a document lacks the sort field.
      </td>
    </tr>

    <tr>
      <td>
        `source_proj`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        true to return the whole document, or field name(s) to project.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://developers.sefaria.org/reference/post-search-wrapper)

```python Python theme={null}
router.call_data_api("sefaria.search", {'query': 'love'})
```

```text MCP theme={null}
call_data_api(endpoint="sefaria.search", params={"query": "love"})
```

> [!NOTE]
>
> * A read over POST.

### Get the learning schedule for a date

GET

`/api/calendars`

`sefaria.calendars.get`

Daily and weekly learning (Torah portion, Haftarah, Daf Yomi, ...) for today or a given date.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`diaspora`</td><td>string</td><td>query</td><td>1 for the diaspora Torah reading, 0 for Israel. One of `0`, `1`</td></tr>
    <tr><td>`custom`</td><td>string</td><td>query</td><td>Haftarah custom. One of `ashkenazi`, `sephardi`, `edot%20hamizrach`</td></tr>

    <tr>
      <td>
        `year`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Year; year, month and day must all be given, or today is used.
      </td>
    </tr>

    <tr>
      <td>
        `month`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Month; with year and day.
      </td>
    </tr>

    <tr>
      <td>
        `day`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Day; with year and month.
      </td>
    </tr>

    <tr><td>`timezone`</td><td>string</td><td>query</td><td>IANA timezone name; default the client's. Example `America/New_York`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.sefaria.org/reference/get-calendars)

```python Python theme={null}
router.call_data_api("sefaria.calendars.get", {'timezone': 'America/New_York'})
```

```text MCP theme={null}
call_data_api(endpoint="sefaria.calendars.get", params={"timezone": "America/New_York"})
```

### Get a topic

GET

`/api/topics/{topic_slug}`

`sefaria.topics.get`

A topic's metadata and, optionally, its links to other topics and the refs tagged with it.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`topic_slug` required</td><td>string</td><td>path</td><td>Topic slug. Example `rosh-hashanah`</td></tr>
    <tr><td>`with_links`</td><td>integer</td><td>query</td><td>1 to include links to other topics. One of `0`, `1`</td></tr>
    <tr><td>`annotate_links`</td><td>integer</td><td>query</td><td>1 to add title and display fields to each link. One of `0`, `1`</td></tr>
    <tr><td>`group_related`</td><td>integer</td><td>query</td><td>1 to group related link types as the site sidebar does. One of `0`, `1`</td></tr>
    <tr><td>`with_refs`</td><td>integer</td><td>query</td><td>1 to include refs tagged with the topic. One of `0`, `1`</td></tr>
    <tr><td>`annotate_time_period`</td><td>integer</td><td>query</td><td>1 to include time period data. One of `0`, `1`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.sefaria.org/reference/get-topic-slug)

```python Python theme={null}
router.call_data_api("sefaria.topics.get", {'topic_slug': 'rosh-hashanah'})
```

```text MCP theme={null}
call_data_api(endpoint="sefaria.topics.get", params={"topic_slug": "rosh-hashanah"})
```

### Look up a word in the lexicons

GET

`/api/words/{word}`

`sefaria.words.get`

Entries from Sefaria's lexicons (dictionaries) matching a word or phrase.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`word` required</td><td>string</td><td>path</td><td>Word or phrase to look up. Example `תורה`</td></tr>

    <tr>
      <td>
        `lookup_ref`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        A ref to refine the lookup.
      </td>
    </tr>

    <tr>
      <td>
        `never_split`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Limit the lookup to the exact input string.
      </td>
    </tr>

    <tr><td>`always_split`</td><td>string</td><td>query</td><td>1 to also look up substrings. One of `0`, `1`</td></tr>
    <tr><td>`always_consonants`</td><td>string</td><td>query</td><td>1 to search with and without vowels. One of `0`, `1`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.sefaria.org/reference/get-words)

```python Python theme={null}
router.call_data_api("sefaria.words.get", {'word': 'תורה'})
```

```text MCP theme={null}
call_data_api(endpoint="sefaria.words.get", params={"word": "תורה"})
```

### Get a book's index record

GET

`/api/v2/raw/index/{index_title}`

`sefaria.index.get`

The full database record of a work's index: titles, categories and schema.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`index_title` required</td><td>string</td><td>path</td><td>Title of a work. Example `Genesis`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.sefaria.org/reference/get-v2-index) · Same job: [Free Use Bible API](https://docs.webrouter.net/data-apis/helloao-bible.md#helloao-bible-translations-list)

```python Python theme={null}
router.call_data_api("sefaria.index.get", {'index_title': 'Genesis'})
```

```text MCP theme={null}
call_data_api(endpoint="sefaria.index.get", params={"index_title": "Genesis"})
```

### Find citations in text

POST

`/api/find-refs`

`sefaria.find_refs`

Starts an async job that identifies Sefaria refs cited in arbitrary text.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`text` required</td><td>object</td><td>body</td><td>\{body, title}; pass the text in body and '' as title for plain text. Example `{"title": "", "body": "Genesis 1:1 is a citation and also Mishnah Peah 3-4."}`</td></tr>
    <tr><td>`lang` required</td><td>string</td><td>body</td><td>he or en; default from the text's characters. One of `he`, `en`</td></tr>
  </tbody>
</table>

[Vendor docs](https://developers.sefaria.org/reference/post-find-refs)

> [!NOTE]
>
> * A read over POST. Returns a task\_id (HTTP 202); poll GET [https://www.sefaria.org/api/async/\&#123;task\_id\&#125](https://www.sefaria.org/api/async/\&#123;task_id\&#125); for the result.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.