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

# Table of Contents

This API endpoint returns the titles of all the books in the Sefaria Library arranged by their category along with some additional metadata. This is a large and rarely changing request and should be cached locally if you utilize it. By default, author metadata is omitted from text entries; set `include_authors=1` to include it.

# 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": "Index",
      "description": "Operations related to Sefaria indices"
    }
  ],
  "paths": {
    "/api/index": {
      "get": {
        "operationId": "get-index",
        "tags": [
          "Index"
        ],
        "parameters": [
          {
            "name": "include_authors",
            "in": "query",
            "description": "When set to `1`, include author metadata on text entries in the table of contents response.",
            "required": false,
            "schema": {
              "type": "integer",
              "enum": [
                0,
                1
              ],
              "default": 0
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/APIIndexResponse"
                }
              }
            },
            "description": "Successful Response"
          }
        },
        "summary": "Table of Contents",
        "description": "This API endpoint returns the titles of all the books in the Sefaria Library arranged by their category along with some additional metadata. This is a large and rarely changing request and should be cached locally if you utilize it. By default, author metadata is omitted from text entries; set `include_authors=1` to include it."
      }
    }
  },
  "components": {
    "schemas": {
      "APIIndexResponse": {
        "title": "Root Type for APIIndexResponse",
        "description": "",
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "contents": {
              "description": "This level of the object is a category listing.",
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "contents": {
                    "description": "This level of the object is usually a book level.",
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "categories": {
                          "description": "A list of categories that this book belongs to.",
                          "type": "array",
                          "items": {
                            "type": "string"
                          }
                        },
                        "order": {
                          "format": "int32",
                          "description": "This is used to order the texts on the Sefaria website.",
                          "type": "integer"
                        },
                        "primary_category": {
                          "description": "The main category that this work falls under.",
                          "type": "string"
                        },
                        "enShortDesc": {
                          "description": "A short description of this book in English.",
                          "type": "string"
                        },
                        "heShortDesc": {
                          "description": "A short description of this book in Hebrew.",
                          "type": "string"
                        },
                        "corpus": {
                          "description": "The corpus that this work belongs to e.g. `Tanakh` or `Mishnah` etc.",
                          "type": "string"
                        },
                        "authors": {
                          "description": "Returned only when `include_authors=1`. Author metadata for the text.",
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "en": {
                                "type": "string"
                              },
                              "he": {
                                "type": "string"
                              },
                              "slug": {
                                "type": "string"
                              }
                            }
                          }
                        },
                        "heTitle": {
                          "description": "The Hebrew title of this work.",
                          "type": "string"
                        },
                        "title": {
                          "description": "The English title of this work.",
                          "type": "string"
                        }
                      }
                    }
                  },
                  "order": {
                    "format": "int32",
                    "description": "This is used to order the texts on the Sefaria website.",
                    "type": "integer"
                  },
                  "enComplete": {
                    "description": "Is the entirety of this category available in English",
                    "type": "boolean"
                  },
                  "heComplete": {
                    "description": "Is the entirety of this category available in Hebrew",
                    "type": "boolean"
                  },
                  "enDesc": {
                    "description": "An English description of the category",
                    "type": "string"
                  },
                  "heDesc": {
                    "description": "An Hebrew description of the category",
                    "type": "string"
                  },
                  "enShortDesc": {
                    "description": "A short description of this category in English.",
                    "type": "string"
                  },
                  "heShortDesc": {
                    "description": "A short description of this category in Hebrew.",
                    "type": "string"
                  },
                  "heCategory": {
                    "type": "string"
                  },
                  "category": {
                    "description": "The current category that these works are nested in.",
                    "type": "string"
                  }
                }
              }
            },
            "order": {
              "format": "int32",
              "description": "This is used to order the categories on the Sefaria website.",
              "type": "integer"
            },
            "enComplete": {
              "description": "Is the entirety of this category available in English",
              "type": "boolean"
            },
            "heComplete": {
              "description": "Is the entirety of this category available in Hebrew",
              "type": "boolean"
            },
            "enDesc": {
              "description": "An English description of the category",
              "type": "string"
            },
            "heDesc": {
              "description": "An Hebrew description of the category",
              "type": "string"
            },
            "enShortDesc": {
              "description": "A short description of this category in English.",
              "type": "string"
            },
            "heShortDesc": {
              "description": "A short description of this category in Hebrew.",
              "type": "string"
            },
            "heCategory": {
              "type": "string"
            },
            "category": {
              "description": "The current category that these works are nested in.",
              "type": "string"
            }
          }
        }
      }
    }
  }
}
```