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

# GET /api/counts/{title}

`GET /api/counts/{title}`

Returns word and segment counts for a given text, organized by language.

## Path parameters

- `title` string, required

## Response `200`

Successful Response

- CountsJSON — Availability and coverage data for a text, broken down by language. `_all` covers all languages combined; `_he` and `_en` are language-specific. Each language bucket contains availability bitmaps (`availableTexts`), word/segment counts (`availableCounts`), and coverage statistics (`percentAvailable`, `completenessPercent`, `textComplete`, `sparseness`).
  - `_all` object — Coverage across all languages: `availableTexts` (per-chapter availability arrays) and `shape` (structural shape of the text).
    - `availableTexts` array[] — Nested arrays indicating which segments have text, one array per chapter.
      - integer[]
    - `shape` integer[] — Structural shape of the text (chapter/verse counts). Each position represents a chapter (i.e. the first value in the array is the number of verses in chapter 1, the following value in the array is the number of verses in chapter 2)
  - `_he` CountsLangJSON — Per-language coverage statistics for a text.
    - `availableTexts` array[] — Nested arrays indicating which segments have text in this language.
      - integer[]
    - `availableCounts` integer[] — Word and segment counts by unit (e.g. chapters, verses).
    - `percentAvailable` number — Percentage of segments that have text in this language.
    - `completenessPercent` number — Completeness score as a percentage.
    - `textComplete` boolean — Whether the text is considered complete in this language.
    - `sparseness` integer — Sparseness level (0 = dense, higher = more gaps).
    - `percentAvailableInvalid` boolean — True when the percentAvailable figure could not be calculated.
  - `_en` CountsLangJSON — Per-language coverage statistics for a text.
    - `availableTexts` array[] — Nested arrays indicating which segments have text in this language.
      - integer[]
    - `availableCounts` integer[] — Word and segment counts by unit (e.g. chapters, verses).
    - `percentAvailable` number — Percentage of segments that have text in this language.
    - `completenessPercent` number — Completeness score as a percentage.
    - `textComplete` boolean — Whether the text is considered complete in this language.
    - `sparseness` integer — Sparseness level (0 = dense, higher = more gaps).
    - `percentAvailableInvalid` boolean — True when the percentAvailable figure could not be calculated.

---

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