---
updatedAt: 2026-06-02T06:51:34.000Z
agentTools:
  projectIndex: https://developers.sefaria.org/llms.txt
---

# Versions

The versions API takes a title of a valid Sefaria `index` as a parameter, and will return all available versions of the text in the Sefaria database, alongside metadata for each version. A version can be a translation of the text, an alternative language, or any other text associated with that index. 

*Note:* In order to see the expected results, you need to make sure you are passing a recognized `index`. For example, `Rashi on Genesis` is a valid `index` but `Rashi` is not. To see the entire list of valid Sefaria indices, click [here](https://www.sefaria.org/api/index/)

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "Sefaria API",
    "version": "1.0.0",
    "description": "The Sefaria API endpoints grant live access to Sefaria's structured database of Jewish texts and their interconnections.",
    "contact": {
      "url": "https://www.sefaria.org",
      "email": "developers@sefaria.org"
    },
    "license": {
      "name": "GNU AGPLv3",
      "url": "https://www.gnu.org/licenses/agpl.txt"
    }
  },
  "servers": [
    {
      "url": "https://www.sefaria.org",
      "description": ""
    }
  ],
  "tags": [
    {
      "name": "Text",
      "description": "Operations related to retrieving texts"
    }
  ],
  "paths": {
    "/api/texts/versions/{index}": {
      "summary": "All Available Versions of a Text",
      "description": "This endpoint returns all of the available versions of a text given an index title passed as a parameter. ",
      "get": {
        "operationId": "get-versions",
        "tags": [
          "Text"
        ],
        "responses": {
          "200": {
            "content": {
              "VersionJSON": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/VersionJSON"
                  }
                },
                "examples": {
                  "Rashi on Kohelet": {
                    "value": [
                      {
                        "title": "Rashi on Ecclesiastes",
                        "versionTitle": "The Metsudah Five Megillot, Lakewood, N.J., 2001",
                        "versionSource": "https://www.nli.org.il/he/books/NNL_ALEPH002162036",
                        "language": "he",
                        "status": "locked",
                        "license": "CC-BY",
                        "versionNotes": "",
                        "digitizedBySefaria": "",
                        "priority": 2,
                        "versionTitleInHebrew": "",
                        "versionNotesInHebrew": "",
                        "extendedNotes": "",
                        "extendedNotesHebrew": "",
                        "purchaseInformationImage": "https://storage.googleapis.com/sefaria-physical-editions/ba0b4357b240eff4b28b7fcfc4669d56.png",
                        "purchaseInformationURL": "https://www.israelbookshoppublications.com/store/pc/Metsudah-Five-Megilloth-w-Rashi-26p309.htm",
                        "shortVersionTitle": "",
                        "shortVersionTitleInHebrew": "",
                        "firstSectionRef": "Rashi on Ecclesiastes 1:1"
                      },
                      {
                        "title": "Rashi on Ecclesiastes",
                        "versionTitle": "The Metsudah Five Megillot, Lakewood, N.J., 2001",
                        "versionSource": "https://www.nli.org.il/he/books/NNL_ALEPH002162036",
                        "language": "en",
                        "status": "locked",
                        "license": "CC-BY",
                        "versionNotes": "",
                        "digitizedBySefaria": "",
                        "priority": 2,
                        "versionTitleInHebrew": "",
                        "versionNotesInHebrew": "",
                        "extendedNotes": "",
                        "extendedNotesHebrew": "",
                        "purchaseInformationImage": "https://storage.googleapis.com/sefaria-physical-editions/00c61bd3103f9398bf080832c4a0221f.png",
                        "purchaseInformationURL": "https://www.israelbookshoppublications.com/store/pc/Metsudah-Five-Megilloth-w-Rashi-26p309.htm",
                        "shortVersionTitle": "",
                        "shortVersionTitleInHebrew": "",
                        "firstSectionRef": "Rashi on Ecclesiastes 1:1"
                      },
                      {
                        "title": "Rashi on Ecclesiastes",
                        "versionTitle": "On Your Way",
                        "versionSource": "http://mobile.tora.ws/",
                        "language": "he",
                        "status": "locked",
                        "license": "Public Domain",
                        "versionNotes": "",
                        "digitizedBySefaria": "",
                        "priority": 1,
                        "versionTitleInHebrew": "ובלכתך בדרך",
                        "versionNotesInHebrew": "",
                        "extendedNotes": "",
                        "extendedNotesHebrew": "",
                        "purchaseInformationImage": "",
                        "purchaseInformationURL": "",
                        "shortVersionTitle": "",
                        "shortVersionTitleInHebrew": "",
                        "firstSectionRef": "Rashi on Ecclesiastes 1:1"
                      },
                      {
                        "title": "Rashi on Ecclesiastes",
                        "versionTitle": "Sefaria Community Translation",
                        "versionSource": "https://www.sefaria.org",
                        "language": "en",
                        "status": "",
                        "license": "",
                        "versionNotes": "",
                        "digitizedBySefaria": "",
                        "priority": "",
                        "versionTitleInHebrew": "תרגום קהילת ספריא",
                        "versionNotesInHebrew": "",
                        "extendedNotes": "",
                        "extendedNotesHebrew": "",
                        "purchaseInformationImage": "",
                        "purchaseInformationURL": "",
                        "shortVersionTitle": "",
                        "shortVersionTitleInHebrew": "",
                        "firstSectionRef": "Rashi on Ecclesiastes 3:3"
                      },
                      {
                        "title": "Rashi on Ecclesiastes",
                        "versionTitle": "The Five Megilloth, English translation by A. Cohen, Soncino Press, 1946",
                        "versionSource": "https://www.nli.org.il/en/books/NNL_ALEPH002644163/NLI",
                        "language": "en",
                        "status": "locked",
                        "license": "CC-BY",
                        "versionNotes": "",
                        "digitizedBySefaria": "",
                        "priority": "",
                        "versionTitleInHebrew": "",
                        "versionNotesInHebrew": "",
                        "extendedNotes": "",
                        "extendedNotesHebrew": "",
                        "purchaseInformationImage": "",
                        "purchaseInformationURL": "",
                        "shortVersionTitle": "Abraham Cohen, Soncino Press, 1946",
                        "shortVersionTitleInHebrew": "",
                        "firstSectionRef": "Rashi on Ecclesiastes 1:1"
                      }
                    ]
                  }
                }
              }
            },
            "description": "Returns a list containing the JSON Objects for each version available for the given `index` title. Each JSON Object contains all of the metadata for a given version. "
          }
        },
        "summary": "Versions",
        "description": "The versions API takes a title of a valid Sefaria `index` as a parameter, and will return all available versions of the text in the Sefaria database, alongside metadata for each version. A version can be a translation of the text, an alternative language, or any other text associated with that index. \n\n*Note:* In order to see the expected results, you need to make sure you are passing a recognized `index`. For example, `Rashi on Genesis` is a valid `index` but `Rashi` is not. To see the entire list of valid Sefaria indices, click [here](https://www.sefaria.org/api/index/)"
      },
      "parameters": [
        {
          "examples": {
            "Mishnah": {
              "value": "Mishnah Berakhot"
            },
            "Tanakh": {
              "value": "Kohelet"
            },
            "Commentary": {
              "value": "Rashi on Exodus"
            },
            "Halacha": {
              "value": "Shulchan Aruch Orach Chaim"
            }
          },
          "name": "index",
          "description": "A valid Sefaria Index",
          "schema": {
            "type": "string",
            "default": "Mishnah Berakhot"
          },
          "in": "path",
          "required": true
        }
      ]
    }
  },
  "components": {
    "schemas": {
      "VersionJSON": {
        "title": "Root Type for VersionJSON",
        "description": "The metadata for a given version. ",
        "type": "object",
        "properties": {
          "title": {
            "description": "The title of the Index. ",
            "type": "string",
            "example": "Talmud Berakhot"
          },
          "versionTitle": {
            "description": "The title of the version",
            "type": "string",
            "example": "\"William Davidson Edition - Vocalized Aramaic\""
          },
          "versionSource": {
            "description": "A URL pointing to the hardcopy of the text as it can be found in libraries, most usually in our case the NLI (National Library of Israel), but not exclusively. ",
            "type": "string",
            "example": "https://www.nli.org.il/he/books/NNL_ALEPH990025294890205171/NLI"
          },
          "language": {
            "$ref": "#/components/schemas/LanguageCode"
          },
          "status": {
            "description": "The status field contains either the string `\"locked\"` or an empty string. If `\"locked\"` is the value of the field, it indicates that the text is locked from future updatees, edits and translations from community members. ",
            "type": "string",
            "example": "\"locked\""
          },
          "license": {
            "description": "The copyright license for using, and reproducing the text. ",
            "type": "string",
            "example": "CC-BY"
          },
          "versionNotes": {
            "description": "English notes relating to the version, often containing details of authorship, place of printing, and sometimes donor dedications. ",
            "type": "string",
            "example": "\"English from The William Davidson digital edition of the <a href='https://korenpub.com/collections/the-noe-edition-koren-talmud-bavli-1'>Koren Noé Talmud</a>, with commentary by <a href='/adin-even-israel-steinsaltz'>Rabbi Adin Even-Israel Steinsaltz</a>\","
          },
          "digitizedBySefaria": {
            "description": "Whether or not the text was digitized by Sefaria. We have some texts we've been able to add to our database from digital sources, and other texts that we've transfered from print to a digital medium ourselves. This field indicates if Sefaria did the digitization. ",
            "oneOf": [
              {
                "type": "boolean"
              },
              {
                "type": "string"
              }
            ]
          },
          "priority": {
            "description": "The priority field is a number which indicates the priority of a version relative to all other existing versions of the same text. A value of `1` indicates the lowest priority, while the highest value among all versions of the text indicate the highest priority. \n\nPriority values can also be floating point numbers. The priority field determines how the various available versions of a text will be displayed on the Sefaria website. The texts are displayed to the user in a highest-to-lowest priority order, in many cases offering more complete or higher quality versions of the text before ones of inferior quality. ",
            "oneOf": [
              {
                "type": "number",
                "example": 7
              },
              {
                "type": "string"
              }
            ]
          },
          "versionTitleInHebrew": {
            "description": "The title of the version in Hebrew",
            "type": "string",
            "example": "מהדורת וויליאם דייוידסון - ארמית המנוקד"
          },
          "versionNotesInHebrew": {
            "description": "Hebrew notes relating to the version, often containing details of authorship, place of printing, and sometimes donor dedications. ",
            "type": "string"
          },
          "extendedNotes": {
            "description": "English extended notes on a version that go beyond the time and place of printing. ",
            "type": "string"
          },
          "extendedNotesHebrew": {
            "description": "Hebrew extended notes on a version that go beyond the time and place of printing. ",
            "type": "string"
          },
          "purchaseInformationImage": {
            "description": "A URL pointing to an image of the hard copy of the version associated with the digital copy, for those who would like to purchase a hard copy. ",
            "type": "string",
            "example": "\"https://storage.googleapis.com/sefaria-physical-editions/4fc4b6d5b144eb3915d250d743eaf2e8.png\""
          },
          "purchaseInformationURL": {
            "description": "The URL pointing to a website where on can buy a physical copy of the given text version. ",
            "type": "string",
            "example": "\"https://korenpub.com/collections/the-noe-edition-koren-talmud-bavli-1/products/copy-of-vol-1-berakhot-1\""
          },
          "shortVersionTitle": {
            "description": "An English short title for the version",
            "type": "string",
            "example": "\"Koren - Steinsaltz\""
          },
          "shortVersionTitleInHebrew": {
            "description": "A Hebrew short title for the version",
            "type": "string"
          },
          "firstSectionRef": {
            "description": "The first `ref` for this title on a section level (as opposed to the more granular segment level). For example, `Genesis 1` would be the first section level ref of Genesis (as opposed to the segment, `Genesis 1:1`), and `Rashi on Kohelet 1:1` is the first section level ref of `Rashi on Kohelet` (as opposed to the segment level of `Rashi on Kohelet 1:1:1`)",
            "type": "string",
            "example": "Rashi on Kohelet 1.1"
          }
        },
        "example": {
          "title": "Shulchan Arukh, Orach Chayim",
          "versionTitle": "Wikisource Shulchan Aruch",
          "versionSource": "https://en.wikisource.org/wiki/Translation:Shulchan_Aruch/Orach_Chaim/338",
          "language": "en",
          "status": "",
          "license": "CC-BY-SA",
          "versionNotes": "",
          "digitizedBySefaria": "",
          "priority": "",
          "versionTitleInHebrew": "שולחן ערוך (ויקיטקסט)",
          "versionNotesInHebrew": "",
          "extendedNotes": "",
          "extendedNotesHebrew": "",
          "purchaseInformationImage": "",
          "purchaseInformationURL": "",
          "shortVersionTitle": "",
          "shortVersionTitleInHebrew": "",
          "firstSectionRef": "Shulchan Arukh, Orach Chayim 1"
        }
      },
      "LanguageCode": {
        "description": "The texts on Sefaria are grouped into two language buckets, `en` for languages which read left-to-right (i.e. English, Spanish, German) and `he` for languages which read right-to-left (i.e. Hebrew, Arabic). This field is only ever populated by a string containing the value of either `en` or `he`. ",
        "type": "string",
        "example": "'en'\n'he'"
      }
    }
  }
}
```