Masnavi.ai Rest API

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

GitHub OpenAPI

Operations 17

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 #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/masnavi-ai:masnavi-ai-rest-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

masnavi-ai-rest-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: masnavi.ai Rest API
  description: 'Rumi''s Masnavi-ye Maʿnavi as a public REST + MCP service. 25,635 beyts across six daftars, sourced from ganjoor.net. Ten tools: search, search_meaning (semantic, any language), lookup, verify, get_section, get_range, find_sections, table_of_contents, random_beyt, explain. No authentication required. Designed for AI agents, Custom GPTs, Gemini Gems, and any HTTP client.'
  contact:
    name: masnavi.ai
    url: https://masnavi.ai/
  license:
    name: Public Domain (source text)
    url: https://creativecommons.org/publicdomain/mark/1.0/
  version: 0.9.48
servers:
- url: https://masnavi.ai
  description: Production
tags:


# --- truncated at 32 KB (40 KB total) ---
# Full source: https://artifacts.apis.io/masnavi-ai/openapi/masnavi-ai-rest-api-openapi.yml