World religions
Get UB Paragraphs for a Scripture Passage
Returns the 10 Urantia paragraphs closest in meaning to the chunk that holds this passage. A chunk is a group of passages of about one Urantia paragraph in length. Pre-computed with text-embedding-3-large (3072-d) cosine similarity. The ref must name one passage.
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.
GET
/
scriptures
/
{corpus}
/
{ref}
/
urantia-parallels
Top 10 Urantia paragraphs for a scripture passage
curl --request GET \
--url https://api.urantia.dev/scriptures/{corpus}/{ref}/urantia-parallelsimport requests
url = "https://api.urantia.dev/scriptures/{corpus}/{ref}/urantia-parallels"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.urantia.dev/scriptures/{corpus}/{ref}/urantia-parallels', 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/{corpus}/{ref}/urantia-parallels",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.urantia.dev/scriptures/{corpus}/{ref}/urantia-parallels"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.urantia.dev/scriptures/{corpus}/{ref}/urantia-parallels")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.urantia.dev/scriptures/{corpus}/{ref}/urantia-parallels")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"corpus": {
"id": "bhagavad-gita-besant-1922",
"slug": "bhagavad-gita",
"religion": "Hinduism",
"title": "The Bhagavad Gita",
"translator": "Annie Besant (4th edition)",
"year": 1922,
"refPrefix": "BG",
"urantiaSection": "131:4"
},
"passage": {
"id": "bhagavad-gita-besant-1922:BG 2.47",
"ref": "BG 2.47",
"division": 2,
"divisionTitle": null,
"subdivision": null,
"text": "Thy business is with the action only, never with its fruits; so let not the fruit of action be thy motive, nor be thou to inaction attached."
},
"chunk": {
"id": "bhagavad-gita-besant-1922:BG 2.47",
"reference": "BG 2.47-49",
"text": "Thy business is with the action only, never with its fruits; so let not the fruit of action be thy motive, nor be thou to inaction attached. Perform action, O Dhananjaya, dwelling in union with the divine, renouncing attachments and balanced evenly in success and failure: equilibrium is called yoga. Far lower than the Yoga of Discrimination is action, O Dhananjaya. Take thou refuge in the Pure Reason; pitiable are they who work for fruit."
},
"urantiaParallels": [
{
"id": "4:131.3.5",
"standardReferenceId": "131:3.5",
"paperId": "131",
"paperTitle": "The World’s Religions",
"sectionTitle": "Buddhism",
"text": "“No religionist may hope to attain the enlightenment of immortal wisdom who persists in being slothful, indolent, feeble, idle, shameless, and selfish. But whoso is thoughtful, prudent, reflective, fervent, and earnest — even while he yet lives on earth — may attain the supreme enlightenment of the peace and liberty of divine wisdom. Remember, every act shall receive its reward. Evil results in sorrow and sin ends in pain. Joy and happiness are the outcome of a good life. Even the evildoer enjoys a season of grace before the time of the full ripening of his evil deeds, but inevitably there must come the full harvest of evil-doing. Let no man think lightly of sin, saying in his heart: ‘The penalty of wrongdoing shall not come near me.’ What you do shall be done to you, in the judgment of wisdom. Injustice done to your fellows shall come back upon you. The creature cannot escape the destiny of his deeds.",
"similarity": 0.442891,
"rank": 1
},
{
"id": "2:48.7.13",
"standardReferenceId": "48:7.13",
"paperId": "48",
"paperTitle": "The Morontia Life",
"sectionTitle": "Morontia Mota",
"text": "11. The weak indulge in resolutions, but the strong act. Life is but a day’s work — do it well. The act is ours; the consequences God’s.",
"similarity": 0.422695,
"rank": 2
}
]
}
}{
"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"
}{
"type": "https://urantia.dev/errors/not-found",
"title": "Not Found",
"status": 404,
"detail": "Paragraph not found"
}Path Parameters
Corpus id, slug, or ref prefix, e.g. bhagavad-gita, bg, or dhammapada
Required string length:
1 - 64A passage (2.47, BG 2.47, Dhp 183, Epictetus 3.22.5), a short range (2.47-49), or a whole chapter (2)
Required string length:
1 - 32Response
The passage with its top 10 Urantia paragraphs
Show child attributes
Show child attributes
⌘I
Top 10 Urantia paragraphs for a scripture passage
curl --request GET \
--url https://api.urantia.dev/scriptures/{corpus}/{ref}/urantia-parallelsimport requests
url = "https://api.urantia.dev/scriptures/{corpus}/{ref}/urantia-parallels"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.urantia.dev/scriptures/{corpus}/{ref}/urantia-parallels', 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/{corpus}/{ref}/urantia-parallels",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.urantia.dev/scriptures/{corpus}/{ref}/urantia-parallels"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.urantia.dev/scriptures/{corpus}/{ref}/urantia-parallels")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.urantia.dev/scriptures/{corpus}/{ref}/urantia-parallels")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"corpus": {
"id": "bhagavad-gita-besant-1922",
"slug": "bhagavad-gita",
"religion": "Hinduism",
"title": "The Bhagavad Gita",
"translator": "Annie Besant (4th edition)",
"year": 1922,
"refPrefix": "BG",
"urantiaSection": "131:4"
},
"passage": {
"id": "bhagavad-gita-besant-1922:BG 2.47",
"ref": "BG 2.47",
"division": 2,
"divisionTitle": null,
"subdivision": null,
"text": "Thy business is with the action only, never with its fruits; so let not the fruit of action be thy motive, nor be thou to inaction attached."
},
"chunk": {
"id": "bhagavad-gita-besant-1922:BG 2.47",
"reference": "BG 2.47-49",
"text": "Thy business is with the action only, never with its fruits; so let not the fruit of action be thy motive, nor be thou to inaction attached. Perform action, O Dhananjaya, dwelling in union with the divine, renouncing attachments and balanced evenly in success and failure: equilibrium is called yoga. Far lower than the Yoga of Discrimination is action, O Dhananjaya. Take thou refuge in the Pure Reason; pitiable are they who work for fruit."
},
"urantiaParallels": [
{
"id": "4:131.3.5",
"standardReferenceId": "131:3.5",
"paperId": "131",
"paperTitle": "The World’s Religions",
"sectionTitle": "Buddhism",
"text": "“No religionist may hope to attain the enlightenment of immortal wisdom who persists in being slothful, indolent, feeble, idle, shameless, and selfish. But whoso is thoughtful, prudent, reflective, fervent, and earnest — even while he yet lives on earth — may attain the supreme enlightenment of the peace and liberty of divine wisdom. Remember, every act shall receive its reward. Evil results in sorrow and sin ends in pain. Joy and happiness are the outcome of a good life. Even the evildoer enjoys a season of grace before the time of the full ripening of his evil deeds, but inevitably there must come the full harvest of evil-doing. Let no man think lightly of sin, saying in his heart: ‘The penalty of wrongdoing shall not come near me.’ What you do shall be done to you, in the judgment of wisdom. Injustice done to your fellows shall come back upon you. The creature cannot escape the destiny of his deeds.",
"similarity": 0.442891,
"rank": 1
},
{
"id": "2:48.7.13",
"standardReferenceId": "48:7.13",
"paperId": "48",
"paperTitle": "The Morontia Life",
"sectionTitle": "Morontia Mota",
"text": "11. The weak indulge in resolutions, but the strong act. Life is but a day’s work — do it well. The act is ours; the consequences God’s.",
"similarity": 0.422695,
"rank": 2
}
]
}
}{
"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"
}{
"type": "https://urantia.dev/errors/not-found",
"title": "Not Found",
"status": 404,
"detail": "Paragraph not found"
}
