Get semantic neighbours
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/neighbors/
GET
/api/neighbors
const url = 'https://example.com/api/neighbors?line_id=1&limit=10';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/neighbors?line_id=1&limit=10'Semantic neighbours of a line (exact sparse cosine; relatedness bands in the UI).
Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”line_id
required
integer
Line id.
limit
integer
Maximum neighbours.
Responses
Section titled “ Responses ”OK
Media typeapplication/json
object
line_id
required
integer
level
required
string
source
required
string
line
required
object
id
required
integer
ang
required
integer
raag
required
null
author
required
string
comp_id
required
integer
gurmukhi
required
string
translit
required
string
en
required
string
neighbors
required
note
required
string
Examplegenerated
{ "line_id": 1, "level": "example", "source": "example", "line": { "id": 1, "ang": 1, "raag": "example", "author": "example", "comp_id": 1, "gurmukhi": "example", "translit": "example", "en": "example" }, "neighbors": [ { "id": 1, "score": 1, "ang": 1, "raag": "example", "author": "example", "comp_id": 1, "gurmukhi": "example", "translit": "example", "en": "example" } ], "note": "example"}Invalid request (bad or out-of-range parameter).
Media typeapplication/json
object
error
required
string
Examplegenerated
{ "error": "example"}Internal error (generic body; details are logged, never returned).
Media typeapplication/json
object
error
required
string
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/neighbors/