Skip to content

APIReferenceInsights

Get the whole theme sky

Updated

Page actions

ChatGPT and Claude are third-party services. The link gives them this page's public address and a short instruction. This site records nothing.

GET
/api/analytics/sky
curl --request GET \
--url 'https://example.com/api/analytics/sky?min_ppmi=0.7'

Every theme with its verse count, and the theme pairs whose PPMI clears min_ppmi.

min_ppmi
number
default: 0.7 <= 4

Minimum PPMI (finite).

OK

Media typeapplication/json
object
nodes
required
Array<object>
object
concept
required
string
n
required
integer
edges
required
Array<object>
object
source
required
string
target
required
string
ppmi
required
number
jaccard
required
number
shabad_count
required
integer
min_ppmi
required
number
note
required
string
Examplegenerated
{
"nodes": [
{
"concept": "example",
"n": 1
}
],
"edges": [
{
"source": "example",
"target": "example",
"ppmi": 1,
"jaccard": 1,
"shabad_count": 1
}
],
"min_ppmi": 1,
"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"
}