World religions
Semantic Search Across World Religions Texts
Natural-language search across every scripture chunk, or one corpus with corpus. Each result carries its top Urantia paragraphs (urantiaParallelLimit, 0 to 10, default 3). The query is embedded with text-embedding-3-small and matched with a pgvector HNSW index.
These are semantic parallels, not curated ones. They show the passages closest in meaning by embedding similarity. They do not claim that two teachings are the same.
POST
/
scriptures
/
search
/
semantic
Semantic search across the world religions texts
curl --request POST \
--url https://api.urantia.dev/scriptures/search/semantic \
--header 'Content-Type: application/json' \
--data '
{
"q": "hatred ceases by love",
"limit": 2,
"urantiaParallelLimit": 1
}
'import requests
url = "https://api.urantia.dev/scriptures/search/semantic"
payload = {
"q": "hatred ceases by love",
"limit": 2,
"urantiaParallelLimit": 1
}
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: 'hatred ceases by love', limit: 2, urantiaParallelLimit: 1})
};
fetch('https://api.urantia.dev/scriptures/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/scriptures/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' => 'hatred ceases by love',
'limit' => 2,
'urantiaParallelLimit' => 1
]),
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/scriptures/search/semantic"
payload := strings.NewReader("{\n \"q\": \"hatred ceases by love\",\n \"limit\": 2,\n \"urantiaParallelLimit\": 1\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/scriptures/search/semantic")
.header("Content-Type", "application/json")
.body("{\n \"q\": \"hatred ceases by love\",\n \"limit\": 2,\n \"urantiaParallelLimit\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.urantia.dev/scriptures/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\": \"hatred ceases by love\",\n \"limit\": 2,\n \"urantiaParallelLimit\": 1\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"chunkId": "dhammapada-muller-1881:Dhp 3",
"reference": "Dhp 3-5",
"corpus": {
"id": "dhammapada-muller-1881",
"slug": "dhammapada",
"religion": "Buddhism",
"title": "The Dhammapada",
"translator": "F. Max Muller",
"year": 1881,
"refPrefix": "Dhp",
"urantiaSection": "131:3"
},
"text": "\"He abused me, he beat me, he defeated me, he robbed me,\"--in those who harbour such thoughts hatred will never cease. \"He abused me, he beat me, he defeated me, he robbed me,\"--in those who do not harbour such thoughts hatred will cease. For hatred does not cease by hatred at any time: hatred ceases by love, this is an old rule.",
"similarity": 0.599195,
"urantiaParallels": [
{
"id": "4:131.3.6",
"standardReferenceId": "131:3.6",
"paperId": "131",
"paperTitle": "The World’s Religions",
"sectionTitle": "Buddhism",
"text": "“The fool has said in his heart, ‘Evil shall not overtake me’; but safety is found only when the soul craves reproof and the mind seeks wisdom. The wise man is a noble soul who is friendly in the midst of his enemies, tranquil among the turbulent, and generous among the grasping. Love of self is like weeds in a goodly field. Selfishness leads to grief; perpetual care kills. The tamed mind yields happiness. He is the greatest of warriors who overcomes and subdues himself. Restraint in all things is good. He alone is a superior person who esteems virtue and is observant of his duty. Let not anger and hate master you. Speak harshly of no one. Contentment is the greatest wealth. What is given wisely is well saved. Do not to others those things you would not wish done to you. Pay good for evil; overcome evil with the good.",
"similarity": 0.412424,
"rank": 1
}
]
},
{
"chunkId": "dhammapada-muller-1881:Dhp 211",
"reference": "Dhp 211-213",
"corpus": {
"id": "dhammapada-muller-1881",
"slug": "dhammapada",
"religion": "Buddhism",
"title": "The Dhammapada",
"translator": "F. Max Muller",
"year": 1881,
"refPrefix": "Dhp",
"urantiaSection": "131:3"
},
"text": "Let, therefore, no man love anything; loss of the beloved is evil. Those who love nothing and hate nothing, have no fetters. From pleasure comes grief, from pleasure comes fear; he who is free from pleasure knows neither grief nor fear. From affection comes grief, from affection comes fear; he who is free from affection knows neither grief nor fear.",
"similarity": 0.441808,
"urantiaParallels": [
{
"id": "4:131.3.6",
"standardReferenceId": "131:3.6",
"paperId": "131",
"paperTitle": "The World’s Religions",
"sectionTitle": "Buddhism",
"text": "“The fool has said in his heart, ‘Evil shall not overtake me’; but safety is found only when the soul craves reproof and the mind seeks wisdom. The wise man is a noble soul who is friendly in the midst of his enemies, tranquil among the turbulent, and generous among the grasping. Love of self is like weeds in a goodly field. Selfishness leads to grief; perpetual care kills. The tamed mind yields happiness. He is the greatest of warriors who overcomes and subdues himself. Restraint in all things is good. He alone is a superior person who esteems virtue and is observant of his duty. Let not anger and hate master you. Speak harshly of no one. Contentment is the greatest wealth. What is given wisely is well saved. Do not to others those things you would not wish done to you. Pay good for evil; overcome evil with the good.",
"similarity": 0.475247,
"rank": 1
}
]
}
],
"meta": {
"page": 0,
"limit": 2,
"total": 2973,
"totalPages": 1487
}
}{
"type": "https://urantia.dev/errors/not-found",
"title": "Not Found",
"status": 404,
"detail": "Paragraph not found"
}{
"type": "https://urantia.dev/errors/not-found",
"title": "Not Found",
"status": 404,
"detail": "Paragraph not found"
}{
"type": "https://urantia.dev/errors/not-found",
"title": "Not Found",
"status": 404,
"detail": "Paragraph not found"
}Body
application/json
Required string length:
1 - 2000Corpus id, slug, or ref prefix, e.g. bhagavad-gita, bg, or dhammapada
Required string length:
1 - 64Required range:
x >= 0Required range:
1 <= x <= 50Required range:
0 <= x <= 10⌘I
Semantic search across the world religions texts
curl --request POST \
--url https://api.urantia.dev/scriptures/search/semantic \
--header 'Content-Type: application/json' \
--data '
{
"q": "hatred ceases by love",
"limit": 2,
"urantiaParallelLimit": 1
}
'import requests
url = "https://api.urantia.dev/scriptures/search/semantic"
payload = {
"q": "hatred ceases by love",
"limit": 2,
"urantiaParallelLimit": 1
}
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: 'hatred ceases by love', limit: 2, urantiaParallelLimit: 1})
};
fetch('https://api.urantia.dev/scriptures/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/scriptures/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' => 'hatred ceases by love',
'limit' => 2,
'urantiaParallelLimit' => 1
]),
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/scriptures/search/semantic"
payload := strings.NewReader("{\n \"q\": \"hatred ceases by love\",\n \"limit\": 2,\n \"urantiaParallelLimit\": 1\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/scriptures/search/semantic")
.header("Content-Type", "application/json")
.body("{\n \"q\": \"hatred ceases by love\",\n \"limit\": 2,\n \"urantiaParallelLimit\": 1\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.urantia.dev/scriptures/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\": \"hatred ceases by love\",\n \"limit\": 2,\n \"urantiaParallelLimit\": 1\n}"
response = http.request(request)
puts response.read_body{
"data": [
{
"chunkId": "dhammapada-muller-1881:Dhp 3",
"reference": "Dhp 3-5",
"corpus": {
"id": "dhammapada-muller-1881",
"slug": "dhammapada",
"religion": "Buddhism",
"title": "The Dhammapada",
"translator": "F. Max Muller",
"year": 1881,
"refPrefix": "Dhp",
"urantiaSection": "131:3"
},
"text": "\"He abused me, he beat me, he defeated me, he robbed me,\"--in those who harbour such thoughts hatred will never cease. \"He abused me, he beat me, he defeated me, he robbed me,\"--in those who do not harbour such thoughts hatred will cease. For hatred does not cease by hatred at any time: hatred ceases by love, this is an old rule.",
"similarity": 0.599195,
"urantiaParallels": [
{
"id": "4:131.3.6",
"standardReferenceId": "131:3.6",
"paperId": "131",
"paperTitle": "The World’s Religions",
"sectionTitle": "Buddhism",
"text": "“The fool has said in his heart, ‘Evil shall not overtake me’; but safety is found only when the soul craves reproof and the mind seeks wisdom. The wise man is a noble soul who is friendly in the midst of his enemies, tranquil among the turbulent, and generous among the grasping. Love of self is like weeds in a goodly field. Selfishness leads to grief; perpetual care kills. The tamed mind yields happiness. He is the greatest of warriors who overcomes and subdues himself. Restraint in all things is good. He alone is a superior person who esteems virtue and is observant of his duty. Let not anger and hate master you. Speak harshly of no one. Contentment is the greatest wealth. What is given wisely is well saved. Do not to others those things you would not wish done to you. Pay good for evil; overcome evil with the good.",
"similarity": 0.412424,
"rank": 1
}
]
},
{
"chunkId": "dhammapada-muller-1881:Dhp 211",
"reference": "Dhp 211-213",
"corpus": {
"id": "dhammapada-muller-1881",
"slug": "dhammapada",
"religion": "Buddhism",
"title": "The Dhammapada",
"translator": "F. Max Muller",
"year": 1881,
"refPrefix": "Dhp",
"urantiaSection": "131:3"
},
"text": "Let, therefore, no man love anything; loss of the beloved is evil. Those who love nothing and hate nothing, have no fetters. From pleasure comes grief, from pleasure comes fear; he who is free from pleasure knows neither grief nor fear. From affection comes grief, from affection comes fear; he who is free from affection knows neither grief nor fear.",
"similarity": 0.441808,
"urantiaParallels": [
{
"id": "4:131.3.6",
"standardReferenceId": "131:3.6",
"paperId": "131",
"paperTitle": "The World’s Religions",
"sectionTitle": "Buddhism",
"text": "“The fool has said in his heart, ‘Evil shall not overtake me’; but safety is found only when the soul craves reproof and the mind seeks wisdom. The wise man is a noble soul who is friendly in the midst of his enemies, tranquil among the turbulent, and generous among the grasping. Love of self is like weeds in a goodly field. Selfishness leads to grief; perpetual care kills. The tamed mind yields happiness. He is the greatest of warriors who overcomes and subdues himself. Restraint in all things is good. He alone is a superior person who esteems virtue and is observant of his duty. Let not anger and hate master you. Speak harshly of no one. Contentment is the greatest wealth. What is given wisely is well saved. Do not to others those things you would not wish done to you. Pay good for evil; overcome evil with the good.",
"similarity": 0.475247,
"rank": 1
}
]
}
],
"meta": {
"page": 0,
"limit": 2,
"total": 2973,
"totalPages": 1487
}
}{
"type": "https://urantia.dev/errors/not-found",
"title": "Not Found",
"status": 404,
"detail": "Paragraph not found"
}{
"type": "https://urantia.dev/errors/not-found",
"title": "Not Found",
"status": 404,
"detail": "Paragraph not found"
}{
"type": "https://urantia.dev/errors/not-found",
"title": "Not Found",
"status": 404,
"detail": "Paragraph not found"
}
