---
title: "Fetch one complete ghazal of the Divan-e Shams"
method: GET
path: "/api/divan/ghazal"
tags: ["rest"]
---

# Fetch one complete ghazal of the Divan-e Shams

`GET /api/divan/ghazal`

## Request

- Base URL: `https://masnavi.ai`
- URL: `https://masnavi.ai/api/divan/ghazal`
- Auth: none declared

Returns every beyt of one ghazal by its canonical number (1..3230), plus prev/next numbers. Famous example: number=1393 → «مرده بدم زنده شدم…».

## Query parameters

- `number` integer, required: Ghazal number, e.g. 1393.

## Response `200`

Successful Response

- GhazalDetail
  - `ghazal` integer, required: Canonical ghazal number, 1..3230
  - `citation` string, required: 'G{n}' — cites the whole ghazal
  - `slug` string, required
  - `title_fa` string, required
  - `beyt_count` integer, required
  - `excerpt` string: First hemistich of the ghazal
  - `beyts` GhazalBeyt[]
    - `citation` string, required: Canonical divan citation, e.g. 'G1393:1'
    - `ghazal` integer, required
    - `beyt_in_ghazal` integer, required
    - `mesra1` string, required
    - `mesra2` string, required
  - `prev_ghazal` integer, nullable
  - `next_ghazal` integer, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/masnavi/apis/masnavi-ai.md) · [All operations](https://skmtc.dev/masnavi/apis/masnavi-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/masnavi/apis/masnavi-ai/revisions/2622163d327c?raw)
