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

# Manuscripts

This call retrieves all associated manuscript data and metadata for a given Sefaria `tref`. 

# 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/manuscripts/{tref}": {
      "summary": "For a given `tref` (textual ref), if a manuscript exists, this returns a list of all relevant data as well as the image URL for each associated manuscript.",
      "get": {
        "operationId": "get-manuscripts",
        "tags": [
          "Text"
        ],
        "parameters": [
          {
            "examples": {
              "Tanakh Example": {
                "value": "Numbers 12.1"
              },
              "Talmud Example": {
                "value": "Berakhot 2a.1"
              }
            },
            "name": "tref",
            "description": "A valid Sefaria ref. A Sefaria ref is a human-readable text citation, e.g. `Genesis 1:1`, `Berakhot 2a`, or `Rashi on Genesis 1:1`.",
            "schema": {
              "type": "string",
              "default": "Numbers 12.1"
            },
            "in": "path",
            "required": true
          }
        ],
        "responses": {
          "200": {
            "content": {
              "Manuscript JSON": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ManuscriptJSON"
                  }
                },
                "examples": {
                  "Esther 4:14-15": {
                    "value": [
                      {
                        "manuscript_slug": "leningrad-codex-(1008-ce)",
                        "page_id": "LC_Folio_435r",
                        "image_url": "https://manuscripts.sefaria.org/leningrad-color/BIB_LENCDX_F435A.jpg",
                        "thumbnail_url": "https://manuscripts.sefaria.org/leningrad-color/BIB_LENCDX_F435A_thumbnail.jpg",
                        "anchorRef": "Esther 4:17-6:2",
                        "anchorRefExpanded": [
                          "Esther 5:14"
                        ],
                        "manuscript": {
                          "slug": "leningrad-codex-(1008-ce)",
                          "title": "Leningrad Codex (1008 CE)",
                          "he_title": "כתב יד לנינגרד (1008)",
                          "source": "https://dornsife.usc.edu/wsrp/biblical-manuscripts",
                          "description": "Bruce Zuckerman, West Semitic Research, in collaboration with the Ancient Biblical Manuscript Center; courtesy Russian National Library, Saltykov-Schedrin",
                          "he_description": ""
                        }
                      },
                      {
                        "manuscript_slug": "megilat-ester-or-1047-(17th-century)",
                        "page_id": "Esther",
                        "image_url": "https://storage.googleapis.com/sefaria-manuscripts/misc/Megilat%20Ester%2C%20Or%201047%20-%20mid.jpg",
                        "thumbnail_url": "https://storage.googleapis.com/sefaria-manuscripts/misc/Megilat%20Ester%2C%20Or%201047%20-%20thumb.png",
                        "anchorRef": "Esther",
                        "anchorRefExpanded": [
                          "Esther 5:14"
                        ],
                        "manuscript": {
                          "slug": "megilat-ester-or-1047-(17th-century)",
                          "title": "Megilat Ester, Or 1047 (17th Century)",
                          "he_title": "מגילת אסתר Or 1047 (מאה 17)",
                          "source": "https://www.bl.uk/collection-items/megilat-ester-or-1047",
                          "description": "",
                          "he_description": ""
                        }
                      }
                    ]
                  }
                }
              }
            },
            "description": "Successful response"
          }
        },
        "summary": "Manuscripts",
        "description": "This call retrieves all associated manuscript data and metadata for a given Sefaria `tref`. "
      },
      "parameters": [
        {
          "examples": {
            "Tanakh Example": {
              "value": "Numbers.17.2"
            },
            "Talmud Example": {
              "value": "Berakhot.2a.1"
            }
          },
          "name": "tref",
          "description": "A valid Sefaria ref. A Sefaria ref is a human-readable text citation, e.g. `Genesis 1:1`, `Berakhot 2a`, or `Rashi on Genesis 1:1`.",
          "schema": {
            "type": "string",
            "default": "Numbers.17.2"
          },
          "in": "path",
          "required": true
        }
      ]
    }
  },
  "components": {
    "schemas": {
      "ManuscriptJSON": {
        "title": "Root Type for ManuscriptJSON",
        "description": "Manuscript data and metadata JSON. ",
        "required": [
          "manuscript"
        ],
        "type": "object",
        "properties": {
          "manuscript_slug": {
            "description": "A unique slug for the given manuscript",
            "type": "string",
            "example": "leningrad-codex-(1008-ce)"
          },
          "page_id": {
            "description": "The ID for the specific page within the manuscript being referenced. ",
            "type": "string",
            "example": "LC_Folio_435r"
          },
          "image_url": {
            "description": "The URL to the image of the manuscript, hosted by Sefaria. All URLs will be prefaced by `https://manuscripts.sefaria.org/`",
            "type": "string",
            "example": "https://manuscripts.sefaria.org/leningrad-color/BIB_LENCDX_F434B_thumbnail.jpg"
          },
          "thumbnail_url": {
            "description": "The url to the thumbnail image of the manuscript. ",
            "type": "string",
            "example": "https://manuscripts.sefaria.org/leningrad-color/BIB_LENCDX_F434B_thumbnail.jpg"
          },
          "anchorRef": {
            "description": "A manuscript image will in most cases be associated with a range of `refs` (i.e. an image of a page of Tanakh will display multiple verses). The `anchorRef` is that complete range the manuscript is associated with, and will contain within it the specific textual `Ref` passed in as a parameter. ",
            "type": "string",
            "example": "\"Esther 3:15-4:17\""
          },
          "anchorRefExpanded": {
            "description": "An array of strings, where each string is a segment level `Ref` of the `Ref` passed in as a parameter. If a segment level `Ref` is passed in, this array will have a length of 1, and only contain that segment level `Ref`. If the `Ref` passed in is ranged, this array will contain each of the segment level `Ref`s within that range. \n\nFor example, if someone was searching for manuscript data for `Esther 4.14-15`, the `anchorRefExpanded` would contain `Esther 4.14` and `Esther 4.15`.",
            "minItems": 1,
            "uniqueItems": true,
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "Esther 4:14",
              "Esther 4:15"
            ]
          },
          "manuscript": {
            "$ref": "#/components/schemas/ManuscriptVersionMetaData"
          }
        },
        "example": {
          "manuscript_slug": "leningrad-codex-(1008-ce)",
          "page_id": "LC_Folio_434v",
          "image_url": "https://manuscripts.sefaria.org/leningrad-color/BIB_LENCDX_F434B.jpg",
          "thumbnail_url": "https://manuscripts.sefaria.org/leningrad-color/BIB_LENCDX_F434B_thumbnail.jpg",
          "anchorRef": "Esther 3:15-4:17",
          "anchorRefExpanded": [
            "Esther 4:14"
          ],
          "manuscript": {
            "slug": "leningrad-codex-(1008-ce)",
            "title": "Leningrad Codex (1008 CE)",
            "he_title": "כתב יד לנינגרד (1008)",
            "source": "https://dornsife.usc.edu/wsrp/biblical-manuscripts",
            "description": "Bruce Zuckerman, West Semitic Research, in collaboration with the Ancient Biblical Manuscript Center; courtesy Russian National Library, Saltykov-Schedrin",
            "he_description": ""
          }
        }
      },
      "ManuscriptVersionMetaData": {
        "title": "Root Type for ManuscriptVersionMetaData",
        "description": "The specific metadata for the version of the manuscript. ",
        "required": [
          "slug",
          "description",
          "he_description",
          "he_title",
          "source",
          "title"
        ],
        "type": "object",
        "properties": {
          "slug": {
            "description": "The unique slug for the manuscript. ",
            "type": "string",
            "example": "leningrad-codex-(1008-ce)"
          },
          "title": {
            "description": "The title of the manuscript. ",
            "type": "string",
            "example": "Leningrad Codex (1008 CE)"
          },
          "he_title": {
            "description": "The manuscript title in Hebrew. ",
            "type": "string",
            "example": "כתב יד לנינגרד (1008)"
          },
          "source": {
            "description": "The url for the source of the manuscript images. ",
            "type": "string",
            "example": "https://dornsife.usc.edu/wsrp/biblical-manuscripts/"
          },
          "description": {
            "description": "A description of the manuscript, oftening containing details about the archivists or where the physical manuscript images can be found, as well as other library details.  ",
            "type": "string",
            "example": "Bruce Zuckerman, West Semitic Research, in collaboration with the Ancient Biblical Manuscript Center; courtesy Russian National Library, Saltykov-Schedrin"
          },
          "he_description": {
            "description": "A Hebrew description of the manuscript, oftening containing details about the archivists or where the physical manuscript images can be found, as well as other library details.  ",
            "type": "string"
          }
        },
        "example": {
          "slug": "leningrad-codex-(1008-ce)",
          "title": "Leningrad Codex (1008 CE)",
          "he_title": "כתב יד לנינגרד (1008)",
          "source": "https://dornsife.usc.edu/wsrp/biblical-manuscripts",
          "description": "Bruce Zuckerman, West Semitic Research, in collaboration with the Ancient Biblical Manuscript Center; courtesy Russian National Library, Saltykov-Schedrin",
          "he_description": ""
        }
      }
    }
  }
}
```