---
title: "GET /api/link-summary/{ref}"
method: GET
path: "/api/link-summary/{ref}"
tags: ["Related"]
---

# GET /api/link-summary/{ref}

`GET /api/link-summary/{ref}`

Returns a summary of all links targeting a ref with per-book breakdowns, grouped by category.

## Path parameters

- `ref` string, required

## Response `200`

Successful Response

- LinkSummaryJSON[]
  - `name` string — Category name.
  - `count` integer — Total links in this category.
  - `books` object — Per-book breakdown within the category, keyed by book title. Each value is the number of links from that book.

---

[API](https://skmtc.net/sefaria/apis/sefaria-api.md) · [All operations](https://skmtc.net/sefaria/apis/sefaria-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sefaria/sefaria-api/revisions/d29296717011/schema)
