---
updatedAt: 2026-04-26T16:22:58.000Z
agentTools:
  projectIndex: https://developers.sefaria.org/llms.txt
---

# Related Web Pages

A single API endpoint to return the webpages related to a segment-level `Ref` in the query. 

# 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": "Related",
      "description": "Operations related to retrieving links and relationships between texts"
    }
  ],
  "paths": {
    "/api/related/{tref}/websites": {
      "summary": "Related Web Pages",
      "description": "Returns webpages related to a segment-level `Ref`. ",
      "get": {
        "operationId": "get-related-websites",
        "tags": [
          "Related"
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WebPagesJSON"
                  }
                },
                "examples": {
                  "Deuteronomy 1:2": {
                    "value": [
                      {
                        "url": "https://etzion.org.il/en/mission-spies",
                        "title": "The Mission of the Spies | vbm haretzion",
                        "refs": [
                          "Joshua 2:2-3",
                          "I Samuel 26:9",
                          "Deuteronomy 32:51",
                          "Numbers 34:16-29",
                          "Numbers 26:52-56",
                          "Joshua 14",
                          "Numbers 13",
                          "Numbers 20:12",
                          "Numbers 32:9",
                          "Deuteronomy 9:1-2",
                          "Numbers 13:20",
                          "Genesis 13:17",
                          "Numbers 13:21",
                          "Numbers 13:22",
                          "Deuteronomy 1:37",
                          "Joshua 2:1",
                          "Deuteronomy 1:22",
                          "Deuteronomy 1",
                          "Numbers 34",
                          "Deuteronomy 1:21",
                          "Numbers 32",
                          "Deuteronomy 1:24",
                          "Joshua 18:3-9"
                        ],
                        "description": "Parshat HaShavua Yeshivat Har Etzion PARASHAT SHELACH The Mission of the Spies by Rav Yaakov Medan A  The Problem",
                        "linkerHits": 283,
                        "domain": "etzion.org.il",
                        "siteName": "Torat Har Etzion",
                        "favicon": "https://www.google.com/s2/favicons?domain=etzion.org.il",
                        "authors": "",
                        "articleSource": "",
                        "anchorRef": "Deuteronomy 1:2",
                        "anchorRefExpanded": [
                          "Deuteronomy 1:2"
                        ]
                      }
                    ]
                  }
                }
              }
            },
            "description": "Webpages related to the queried `Ref`. "
          }
        },
        "summary": "Related Web Pages",
        "description": "A single API endpoint to return the webpages related to a segment-level `Ref` in the query. "
      },
      "parameters": [
        {
          "examples": {
            "Tanakh": {
              "value": "Deuteronomy 1.2"
            }
          },
          "name": "tref",
          "description": "A valid segment-level Sefaria textual `Ref`. ",
          "schema": {
            "allOf": [
              {
                "$ref": "#/components/schemas/ref"
              }
            ],
            "default": "Deuteronomy 1.2"
          },
          "in": "path",
          "required": true
        }
      ]
    }
  },
  "components": {
    "schemas": {
      "ref": {
        "description": "A string representing a citation to a Jewish text. \n\nA valid `Ref` consists of a title string followed optionally by a section string or a segment string. \n\nA title string is any one of the known text titles or title variants in the Sefaria Database.",
        "type": "string",
        "example": "Mishnah Peah 4:2"
      },
      "WebPagesJSON": {
        "title": "Root Type for WebPagesJSON",
        "description": "A JSON object containing the metadata for external webpages linked to this Sefaria `Ref`.",
        "type": "object",
        "properties": {
          "url": {
            "description": "URL to the related article on the webpage. ",
            "type": "string",
            "example": "https://etzion.org.il/en/mission-spies"
          },
          "title": {
            "description": "Title of the webpage",
            "type": "string",
            "example": "The Mission of the Spies | vbm haretzion"
          },
          "refs": {
            "description": "All textual references found on this webpage which link to various Sefaria `Ref`s.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ref"
            },
            "example": [
              "Joshua 2:2-3",
              "I Samuel 26:9",
              "Deuteronomy 32:51",
              "Numbers 34:16-29",
              "Numbers 26:52-56",
              "Joshua 14",
              "Numbers 13",
              "Numbers 20:12",
              "Numbers 32:9",
              "Deuteronomy 9:1-2",
              "Numbers 13:20",
              "Genesis 13:17",
              "Numbers 13:21",
              "Numbers 13:22",
              "Deuteronomy 1:37",
              "Joshua 2:1",
              "Deuteronomy 1:22",
              "Deuteronomy 1",
              "Numbers 34",
              "Deuteronomy 1:21",
              "Numbers 32",
              "Deuteronomy 1:24",
              "Joshua 18:3-9"
            ]
          },
          "description": {
            "description": "Description of the article. ",
            "type": "string",
            "example": "Parshat HaShavua Yeshivat Har Etzion PARASHAT SHELACH The Mission of the Spies by Rav Yaakov Medan A  The Problem"
          },
          "linkerHits": {
            "format": "int32",
            "description": "Number of hits by the Sefaria linker. ",
            "type": "integer"
          },
          "domain": {
            "description": "Domain of the webpage",
            "type": "string",
            "example": "etzion.org.il"
          },
          "siteName": {
            "description": "Name of the webpage",
            "type": "string",
            "example": "Torat Har Etzion"
          },
          "favicon": {
            "description": "Favicon of the external webspage",
            "type": "string",
            "example": "https://www.google.com/s2/favicons?domain=etzion.org.il"
          },
          "authors": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "object"
              }
            ]
          },
          "articleSource": {
            "type": "string"
          },
          "anchorRef": {
            "$ref": "#/components/schemas/ref"
          },
          "anchorRefExpanded": {
            "description": "If the `anchorRef` is a ranged `Ref`, this is an array of `Refs` containing each of the segments contained within that range. So for example, if `anchorRef` is Genesis 1:1-2, then `anchorRefExpanded` will be `[\"Genesis 1:1\", \"Genesis 1:2\"]`.",
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ref"
            },
            "example": [
              "Genesis 1.1",
              "Genesis 1.2"
            ]
          }
        },
        "example": {
          "url": "https://etzion.org.il/en/mission-spies",
          "title": "The Mission of the Spies | vbm haretzion",
          "refs": [
            "Joshua 2:2-3",
            "I Samuel 26:9",
            "Deuteronomy 32:51",
            "Numbers 34:16-29",
            "Numbers 26:52-56",
            "Joshua 14",
            "Numbers 13",
            "Numbers 20:12",
            "Numbers 32:9",
            "Deuteronomy 9:1-2",
            "Numbers 13:20",
            "Genesis 13:17",
            "Numbers 13:21",
            "Numbers 13:22",
            "Deuteronomy 1:37",
            "Joshua 2:1",
            "Deuteronomy 1:22",
            "Deuteronomy 1",
            "Numbers 34",
            "Deuteronomy 1:21",
            "Numbers 32",
            "Deuteronomy 1:24",
            "Joshua 18:3-9"
          ],
          "description": "Parshat HaShavua Yeshivat Har Etzion PARASHAT SHELACH The Mission of the Spies by Rav Yaakov Medan A  The Problem",
          "linkerHits": 283,
          "domain": "etzion.org.il",
          "siteName": "Torat Har Etzion",
          "favicon": "https://www.google.com/s2/favicons?domain=etzion.org.il",
          "anchorRef": "Deuteronomy 1",
          "anchorRefExpanded": [
            "Deuteronomy 1:2"
          ]
        }
      }
    }
  }
}
```