---
title: "GET /api/counts/links/{cat1}/{cat2}"
method: GET
path: "/api/counts/links/{cat1}/{cat2}"
tags: ["Index"]
---

# GET /api/counts/links/{cat1}/{cat2}

`GET /api/counts/links/{cat1}/{cat2}`

Returns the number of links between every book in `cat1` and every book in `cat2`. If no links exist between the requested category pair, this endpoint will return an error.

## Path parameters

- `cat1` string, required
- `cat2` string, required

## Response `200`

Successful Response

- CountsLinksItemJSON[]
  - `book1` string
  - `book2` string
  - `count` integer

---

[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)
