---
title: "Random ghazal from the Divan-e Shams"
method: GET
path: "/api/divan/random"
tags: ["rest"]
---

# Random ghazal from the Divan-e Shams

`GET /api/divan/random`

## Request

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

## Response `200`

Successful Response

- GhazalSummary
  - `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

---

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