rest

Search the Masnavi by meaning (any language)

Semantic search: finds the beyts closest in MEANING to the query, not the ones containing its words. The query can be in ANY language — English, Persian, Spanish, Turkish, Arabic, … — e.g. 'feeling separated from your origin' → M1:1. Each hit carries a cosine-similarity score. Complements /api/search (lexical, Persian). status='unavailable' means the vector index is not built yet.

get/api/search_meaning

Request

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

Query parameters

qstring required

What the verse should MEAN, in any language.

Example:feeling separated from your origin
daftarinteger nullable

Restrict to a single daftar (1-6).

limitinteger

Max results to return.

Response

Successful Response

querystring required
statusstring

'ok' | 'unavailable' (index not built / no key) | 'error'

total_indexedinteger
notestring

Changes

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