# Masnavi.ai Rest API

**Canonical:** https://apis.io/apis/masnavi-ai/masnavi-ai-rest-api/  
**Provider:** Masnavi.ai — https://apis.io/providers/masnavi-ai/  
**Base URL:** https://masnavi.ai

Masnavi.ai Rest API is published by [Masnavi.ai](https://apis.io/providers/masnavi-ai/) on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include REST. The published artifact set on APIs.io includes an OpenAPI specification.

The rest API from Masnavi.ai — 17 operation(s) for rest.

## Operations (17)

| Method | Path | Summary |
|---|---|---|
| GET | `/api/search` | Search the Masnavi |
| GET | `/api/search_meaning` | Search the Masnavi by meaning (any language) |
| GET | `/api/lookup` | Look up a specific beyt by citation |
| GET | `/api/verify` | Verify a Rumi quote against the corpus (anti-hallucination) |
| GET | `/api/section` | Retrieve a full section (story) of the Masnavi |
| GET | `/api/toc` | Browse the Masnavi's table of contents |
| GET | `/api/range` | Fetch a contiguous range of beyts |
| GET | `/api/find_sections` | Search section titles |
| GET | `/api/range.txt` | Plain-text download of a beyt range |
| GET | `/api/section.txt` | Plain-text download of a single section |
| GET | `/api/random` | Random beyt from the Masnavi |
| GET | `/api/divan/search` | Search the Divan-e Shams ghazals (full-text) |
| GET | `/api/divan/search_meaning` | Search the Divan-e Shams by meaning (any language) |
| GET | `/api/divan/ghazal` | Fetch one complete ghazal of the Divan-e Shams |
| GET | `/api/divan/random` | Random ghazal from the Divan-e Shams |
| GET | `/api/` | API directory |
| GET | `/api/beyt/{citation}/explanations` | Commentary for a specific beyt |

## Machine-readable artifacts (2)

- **OpenAPI** — https://artifacts.apis.io/masnavi-ai/openapi/masnavi-ai-rest-api-openapi.yml
- **APIsJSON** — https://artifacts.apis.io/masnavi-ai/apis.yml

## Tags

REST

## Use this from code or an agent

- **REST, no key:** `GET https://apis.io/api/v1/providers/masnavi-ai` returns the provider's full profile as JSON.
- **MCP:** `https://apis.io/mcp` (Streamable HTTP) — search the catalog, read any provider, compare providers, check agent readiness.
- **Free API key** for catalog-wide search, ratings and comparisons: sign in with GitHub, Google or LinkedIn at https://apis.io/developer/account/ (plans: https://apis.io/developer/plans/).

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/masnavi-ai/masnavi-ai-rest-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/masnavi-ai/.
