Search the Granth
Page actions
- Open OpenAPI JSON (opens in a new tab)
- Ask ChatGPT (opens in a new tab)
- Ask Claude (opens in a new tab)
ChatGPT and Claude are third-party services. The link gives them this page's public address and a short instruction. This site records nothing.
Preview: the published page may be older or missing.
https://docs.gurbanisoul.com/api/reference/operations/search/
const url = 'https://example.com/api/search?q=example&mode=auto&limit=50&offset=0';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://example.com/api/search?q=example&mode=auto&limit=50&offset=0'Search the Granth through the ranked waterfall (exact FTS, seeker lexicon, variants, English, passage, fold).
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”Query in Gurmukhi, romanised Gurmukhi or English.
Search mode.
Page size (clamped).
Page offset (clamped).
Responses
Section titled “ Responses ”OK
object
object
object
Examplegenerated
{ "mode": "example", "results": [ { "id": 1, "ang": 1, "raag": "example", "section": "example", "author": "example", "comp_type": "example", "comp_id": 1, "line_no": 1, "is_rahao": 1, "is_header": 1, "gurmukhi": "example", "translit": "example", "stanza_index": 1, "pada_total": 1, "source_category": "example", "en": "example", "matched_term": "example" } ], "related_themes": [ "example" ], "concept": { "name": "example", "terms": [ "example" ], "description": "example", "total": 1 }}Invalid request (bad or out-of-range parameter).
object
Examplegenerated
{ "error": "example"}Internal error (generic body; details are logged, never returned).
object
Examplegenerated
{ "error": "example"}Sri Guru Granth Sahib Ji — Knowledge Base wiki. Generated from commit c3d9360. Updated 24 October 2026. This copy may be out of date; the page is at https://docs.gurbanisoul.com/api/reference/operations/search/