API ReferenceKadambini
Search Corpus
Search verses in the Sanskrit corpus. Modes: - fulltext: Search verse text (IAST + SLP1) using Postgres full-text search - translation: Search English/Hindi translations Results ranked by relevance (ts_rank).
GET /kadambini/v1/search
Search verses in the Sanskrit corpus.
Modes:
- fulltext: Search verse text (IAST + SLP1) using Postgres full-text search
- translation: Search English/Hindi translations
Results ranked by relevance (ts_rank).
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
q | string | Yes | Search query |
mode | string | No | Search mode Default: fulltext |
work | string | No | Filter by work title (partial match) |
category | string | No | Filter by work category |
limit | integer | No | Default: 10 |
offset | integer | No | Default: 0 |
Response
| Field | Type | Description |
|---|---|---|
query | string | Query |
mode | string | Mode |
hits | SearchHit[] | Hits |
total | integer | Total |
Examples
curl
curl -H "X-API-Key: vz_live_YOUR_KEY" \
"https://api.vibz.art/kadambini/v1/search?q=dharma&limit=5"Python
from vibzart import Vibzart
client = Vibzart(api_key="vz_live_...")
result = client.kadambini.search(q="dharma", limit=5)
print(result.data)TypeScript
import { Vibzart } from "@vibzart/sdk";
const client = new Vibzart({ apiKey: "vz_live_..." });
const result = await client.kadambini.search({ q: "dharma", limit: 5 });
console.log(result.data);