rest

Fetch one complete ghazal of the Divan-e Shams

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

get/api/divan/ghazal

Request

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

Query parameters

numberinteger required

Ghazal number, e.g. 1393.

Response

Successful Response

ghazalinteger required

Canonical ghazal number, 1..3230

citationstring required

'G{n}' — cites the whole ghazal

slugstring required
title_fastring required
beyt_countinteger required
excerptstring

First hemistich of the ghazal

prev_ghazalinteger nullable
next_ghazalinteger nullable

Changes

No recorded changes to this operation across all 1 revision of this API.