Semantic search across the Bible (with UB paragraphs)
curl --request POST \
--url https://api.urantia.dev/bible/search/semantic \
--header 'Content-Type: application/json' \
--data '
{
"q": "<string>",
"page": 0,
"limit": 20,
"bookCode": "<string>",
"urantiaParallelLimit": 3
}
'import requests
url = "https://api.urantia.dev/bible/search/semantic"
payload = {
"q": "<string>",
"page": 0,
"limit": 20,
"bookCode": "<string>",
"urantiaParallelLimit": 3
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
q: '<string>',
page: 0,
limit: 20,
bookCode: '<string>',
urantiaParallelLimit: 3
})
};
fetch('https://api.urantia.dev/bible/search/semantic', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.urantia.dev/bible/search/semantic",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'q' => '<string>',
'page' => 0,
'limit' => 20,
'bookCode' => '<string>',
'urantiaParallelLimit' => 3
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.urantia.dev/bible/search/semantic"
payload := strings.NewReader("{\n \"q\": \"<string>\",\n \"page\": 0,\n \"limit\": 20,\n \"bookCode\": \"<string>\",\n \"urantiaParallelLimit\": 3\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.urantia.dev/bible/search/semantic")
.header("Content-Type", "application/json")
.body("{\n \"q\": \"<string>\",\n \"page\": 0,\n \"limit\": 20,\n \"bookCode\": \"<string>\",\n \"urantiaParallelLimit\": 3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.urantia.dev/bible/search/semantic")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"q\": \"<string>\",\n \"page\": 0,\n \"limit\": 20,\n \"bookCode\": \"<string>\",\n \"urantiaParallelLimit\": 3\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"reference": "<string>",
"bookCode": "<string>",
"bookName": "<string>",
"chapter": 123,
"verseStart": 123,
"verseEnd": 123,
"text": "<string>",
"similarity": 123,
"urantiaParallels": [
{
"id": "<string>",
"standardReferenceId": "<string>",
"paperId": "<string>",
"paperTitle": "<string>",
"sectionTitle": "<string>",
"text": "<string>",
"similarity": 123,
"rank": 123
}
]
}
],
"meta": {
"page": 123,
"limit": 123,
"total": 123,
"totalPages": 123
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>"
}Bible
Bible Semantic Search
Free-form natural-language search across all 17,641 Bible chunks. Each result includes the top-N pre-computed Urantia paragraphs related to that chunk via the existing cross-reference data, so a single query surfaces both the Bible matches and the relevant UB content.
Query is embedded via text-embedding-3-small (1536-d) and matched against bible_chunks.embedding_small with a pgvector HNSW index. Latency is ~50-100ms on cache miss for the embedding call, ~30ms cached.
Optional filters: canon (ot, deuterocanon, nt), bookCode (any OSIS/USFM/full-name/alias). urantiaParallelLimit controls how many UB paragraphs to attach per result (0-10, default 3). Set to 0 to suppress.
POST
/
bible
/
search
/
semantic
Semantic search across the Bible (with UB paragraphs)
curl --request POST \
--url https://api.urantia.dev/bible/search/semantic \
--header 'Content-Type: application/json' \
--data '
{
"q": "<string>",
"page": 0,
"limit": 20,
"bookCode": "<string>",
"urantiaParallelLimit": 3
}
'import requests
url = "https://api.urantia.dev/bible/search/semantic"
payload = {
"q": "<string>",
"page": 0,
"limit": 20,
"bookCode": "<string>",
"urantiaParallelLimit": 3
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
q: '<string>',
page: 0,
limit: 20,
bookCode: '<string>',
urantiaParallelLimit: 3
})
};
fetch('https://api.urantia.dev/bible/search/semantic', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.urantia.dev/bible/search/semantic",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'q' => '<string>',
'page' => 0,
'limit' => 20,
'bookCode' => '<string>',
'urantiaParallelLimit' => 3
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.urantia.dev/bible/search/semantic"
payload := strings.NewReader("{\n \"q\": \"<string>\",\n \"page\": 0,\n \"limit\": 20,\n \"bookCode\": \"<string>\",\n \"urantiaParallelLimit\": 3\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.urantia.dev/bible/search/semantic")
.header("Content-Type", "application/json")
.body("{\n \"q\": \"<string>\",\n \"page\": 0,\n \"limit\": 20,\n \"bookCode\": \"<string>\",\n \"urantiaParallelLimit\": 3\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.urantia.dev/bible/search/semantic")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"q\": \"<string>\",\n \"page\": 0,\n \"limit\": 20,\n \"bookCode\": \"<string>\",\n \"urantiaParallelLimit\": 3\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "<string>",
"reference": "<string>",
"bookCode": "<string>",
"bookName": "<string>",
"chapter": 123,
"verseStart": 123,
"verseEnd": 123,
"text": "<string>",
"similarity": 123,
"urantiaParallels": [
{
"id": "<string>",
"standardReferenceId": "<string>",
"paperId": "<string>",
"paperTitle": "<string>",
"sectionTitle": "<string>",
"text": "<string>",
"similarity": 123,
"rank": 123
}
]
}
],
"meta": {
"page": 123,
"limit": 123,
"total": 123,
"totalPages": 123
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>"
}Body
application/json
Required string length:
1 - 2000Required range:
x >= 0Required range:
1 <= x <= 100Available options:
ot, deuterocanon, nt Minimum string length:
1Required range:
0 <= x <= 10⌘I