Get Paragraph Context
Returns the target paragraph along with N paragraphs before and after it (ordered by sort_id).
Useful for AI agents doing RAG that need surrounding context for better understanding.
The window query parameter controls how many paragraphs before/after to include (default: 2, max: 10).
Use ?include=entities to include typed entity mentions in the response.
Use ?edition=1955 (or another id from GET /editions) for the text of an older edition; the default is srt-2024. Use ?include=variants for the changes to each paragraph since 1955.
curl --request GET \
--url https://api.urantia.dev/paragraphs/{ref}/contextimport requests
url = "https://api.urantia.dev/paragraphs/{ref}/context"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.urantia.dev/paragraphs/{ref}/context', 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/paragraphs/{ref}/context",
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/paragraphs/{ref}/context"
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/paragraphs/{ref}/context")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.urantia.dev/paragraphs/{ref}/context")
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": {
"target": {
"id": "1:2.5.10",
"standardReferenceId": "2:5.10",
"sortId": "1.002.005.010",
"paperId": "2",
"sectionId": "5",
"partId": "1",
"paperTitle": "The Nature of God",
"sectionTitle": "The Love of God",
"paragraphId": "10",
"text": "But the love of God is an intelligent and farseeing parental affection. The divine love functions in unified association with divine wisdom and all other infinite characteristics of the perfect nature of the Universal Father. God is love, but love is not God. The greatest manifestation of the divine love for mortal beings is observed in the bestowal of the Thought Adjusters, but your greatest revelation of the Father’s love is seen in the bestowal life of his Son Michael as he lived on earth the ideal spiritual life. It is the indwelling Adjuster who individualizes the love of God to each human soul.",
"htmlText": "<span class=\"urantia-dev-pb-4\">But the love of God is an intelligent and farseeing parental affection. The divine love functions in unified association with divine wisdom and all other infinite characteristics of the perfect nature of the Universal Father. God is love, but love is not God. The greatest manifestation of the divine love for mortal beings is observed in the bestowal of the Thought Adjusters, but your greatest revelation of the Father’s love is seen in the bestowal life of his Son Michael as he lived on earth the ideal spiritual life. It is the indwelling Adjuster who individualizes the love of God to each human soul.</span>",
"labels": [],
"audio": {
"tts-1-hd": {
"nova": {
"url": "https://cdn.urantia.dev/audio/eng/paragraphs/nova/tts-1-hd-nova-1:2.5.10.mp3",
"format": "mp3",
"bitrate": 160,
"duration": 38.1,
"fileSize": 761760
},
"onyx": {
"url": "https://cdn.urantia.dev/audio/eng/paragraphs/onyx/tts-1-hd-onyx-1:2.5.10.mp3",
"format": "mp3",
"bitrate": 160,
"duration": 37.8,
"fileSize": 756480
}
},
"gpt-4o-mini-tts": {
"cedar": {
"url": "https://cdn.urantia.dev/audio/eng/paragraphs/cedar/gpt-4o-mini-tts-cedar-1:2.5.10.mp3",
"format": "mp3",
"bitrate": 192,
"duration": 36.4,
"fileSize": 873995
}
}
},
"edition": "srt-2024"
},
"before": [
{
"id": "1:2.5.9",
"standardReferenceId": "2:5.9",
"sortId": "1.002.005.009",
"paperId": "2",
"sectionId": "5",
"partId": "1",
"paperTitle": "The Nature of God",
"sectionTitle": "The Love of God",
"paragraphId": "9",
"text": "The Father’s love follows us now and throughout the endless circle of the eternal ages. As you ponder the loving nature of God, there is only one reasonable and natural personality reaction thereto: You will increasingly love your Maker; you will yield to God an affection analogous to that given by a child to an earthly parent; for, as a father, a real father, a true father, loves his children, so the Universal Father loves and forever seeks the welfare of his created sons and daughters.",
"htmlText": "<span class=\"urantia-dev-pb-0\">The Father’s love follows us now and throughout the endless circle of the eternal ages. As you ponder the loving nature of God, there is only one reasonable and natural personality reaction thereto: You will increasingly love your Maker; you will yield to God an affection analogous to that given by a child to an earthly parent; for, as a father, a real father, a true father, loves his children, so the Universal Father loves and forever seeks the welfare of his created sons and daughters.</span>",
"labels": [],
"audio": {
"tts-1-hd": {
"nova": {
"url": "https://cdn.urantia.dev/audio/eng/paragraphs/nova/tts-1-hd-nova-1:2.5.9.mp3",
"format": "mp3",
"bitrate": 160,
"duration": 30.5,
"fileSize": 609600
},
"onyx": {
"url": "https://cdn.urantia.dev/audio/eng/paragraphs/onyx/tts-1-hd-onyx-1:2.5.9.mp3",
"format": "mp3",
"bitrate": 160,
"duration": 30.7,
"fileSize": 613440
}
},
"gpt-4o-mini-tts": {
"cedar": {
"url": "https://cdn.urantia.dev/audio/eng/paragraphs/cedar/gpt-4o-mini-tts-cedar-1:2.5.9.mp3",
"format": "mp3",
"bitrate": 192,
"duration": 32.4,
"fileSize": 779328
}
}
},
"edition": "srt-2024"
}
],
"after": [
{
"id": "1:2.5.11",
"standardReferenceId": "2:5.11",
"sortId": "1.002.005.011",
"paperId": "2",
"sectionId": "5",
"partId": "1",
"paperTitle": "The Nature of God",
"sectionTitle": "The Love of God",
"paragraphId": "11",
"text": "At times I am almost pained to be compelled to portray the divine affection of the heavenly Father for his universe children by the employment of the human word symbol love. This term, even though it does connote man’s highest concept of the mortal relations of respect and devotion, is so frequently designative of so much of human relationship that is wholly ignoble and utterly unfit to be known by any word which is also used to indicate the matchless affection of the living God for his universe creatures! How unfortunate that I cannot make use of some supernal and exclusive term which would convey to the mind of man the true nature and exquisitely beautiful significance of the divine affection of the Paradise Father.",
"htmlText": "<span class=\"urantia-dev-pb-4\">At times I am almost pained to be compelled to portray the divine affection of the heavenly Father for his universe children by the employment of the human word symbol <em>love.</em> This term, even though it does connote man’s highest concept of the mortal relations of respect and devotion, is so frequently designative of so much of human relationship that is wholly ignoble and utterly unfit to be known by any word which is also used to indicate the matchless affection of the living God for his universe creatures! How unfortunate that I cannot make use of some supernal and exclusive term which would convey to the mind of man the true nature and exquisitely beautiful significance of the divine affection of the Paradise Father.</span>",
"labels": [],
"audio": {
"tts-1-hd": {
"nova": {
"url": "https://cdn.urantia.dev/audio/eng/paragraphs/nova/tts-1-hd-nova-1:2.5.11.mp3",
"format": "mp3",
"bitrate": 160,
"duration": 45.9,
"fileSize": 918240
},
"onyx": {
"url": "https://cdn.urantia.dev/audio/eng/paragraphs/onyx/tts-1-hd-onyx-1:2.5.11.mp3",
"format": "mp3",
"bitrate": 160,
"duration": 45.6,
"fileSize": 912480
}
},
"gpt-4o-mini-tts": {
"cedar": {
"url": "https://cdn.urantia.dev/audio/eng/paragraphs/cedar/gpt-4o-mini-tts-cedar-1:2.5.11.mp3",
"format": "mp3",
"bitrate": 192,
"duration": 42.7,
"fileSize": 1025088
}
}
},
"edition": "srt-2024"
}
]
},
"meta": {
"edition": {
"id": "srt-2024",
"label": "Standard Reference Text, 2024",
"year": 2024,
"foundationVersion": "1.22",
"versionStamp": "UF-202412132348"
}
}
}{
"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"
}Query Parameters
Language for translated fields. es gives Spanish text for all 197 papers: an AI translation, released as CC0, with a translation label on each paragraph. Paper, section, and part titles are in Spanish too, and so are the included Papers parallels and entity names; the Bible and the other works, and the topic labels, stay in English. Entity names exist in es only; the other languages give English. Each paragraph has a language field that states the language of its text.
eng, es, fr, pt, de, ko curl --request GET \
--url https://api.urantia.dev/paragraphs/{ref}/contextimport requests
url = "https://api.urantia.dev/paragraphs/{ref}/context"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.urantia.dev/paragraphs/{ref}/context', 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/paragraphs/{ref}/context",
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/paragraphs/{ref}/context"
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/paragraphs/{ref}/context")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.urantia.dev/paragraphs/{ref}/context")
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": {
"target": {
"id": "1:2.5.10",
"standardReferenceId": "2:5.10",
"sortId": "1.002.005.010",
"paperId": "2",
"sectionId": "5",
"partId": "1",
"paperTitle": "The Nature of God",
"sectionTitle": "The Love of God",
"paragraphId": "10",
"text": "But the love of God is an intelligent and farseeing parental affection. The divine love functions in unified association with divine wisdom and all other infinite characteristics of the perfect nature of the Universal Father. God is love, but love is not God. The greatest manifestation of the divine love for mortal beings is observed in the bestowal of the Thought Adjusters, but your greatest revelation of the Father’s love is seen in the bestowal life of his Son Michael as he lived on earth the ideal spiritual life. It is the indwelling Adjuster who individualizes the love of God to each human soul.",
"htmlText": "<span class=\"urantia-dev-pb-4\">But the love of God is an intelligent and farseeing parental affection. The divine love functions in unified association with divine wisdom and all other infinite characteristics of the perfect nature of the Universal Father. God is love, but love is not God. The greatest manifestation of the divine love for mortal beings is observed in the bestowal of the Thought Adjusters, but your greatest revelation of the Father’s love is seen in the bestowal life of his Son Michael as he lived on earth the ideal spiritual life. It is the indwelling Adjuster who individualizes the love of God to each human soul.</span>",
"labels": [],
"audio": {
"tts-1-hd": {
"nova": {
"url": "https://cdn.urantia.dev/audio/eng/paragraphs/nova/tts-1-hd-nova-1:2.5.10.mp3",
"format": "mp3",
"bitrate": 160,
"duration": 38.1,
"fileSize": 761760
},
"onyx": {
"url": "https://cdn.urantia.dev/audio/eng/paragraphs/onyx/tts-1-hd-onyx-1:2.5.10.mp3",
"format": "mp3",
"bitrate": 160,
"duration": 37.8,
"fileSize": 756480
}
},
"gpt-4o-mini-tts": {
"cedar": {
"url": "https://cdn.urantia.dev/audio/eng/paragraphs/cedar/gpt-4o-mini-tts-cedar-1:2.5.10.mp3",
"format": "mp3",
"bitrate": 192,
"duration": 36.4,
"fileSize": 873995
}
}
},
"edition": "srt-2024"
},
"before": [
{
"id": "1:2.5.9",
"standardReferenceId": "2:5.9",
"sortId": "1.002.005.009",
"paperId": "2",
"sectionId": "5",
"partId": "1",
"paperTitle": "The Nature of God",
"sectionTitle": "The Love of God",
"paragraphId": "9",
"text": "The Father’s love follows us now and throughout the endless circle of the eternal ages. As you ponder the loving nature of God, there is only one reasonable and natural personality reaction thereto: You will increasingly love your Maker; you will yield to God an affection analogous to that given by a child to an earthly parent; for, as a father, a real father, a true father, loves his children, so the Universal Father loves and forever seeks the welfare of his created sons and daughters.",
"htmlText": "<span class=\"urantia-dev-pb-0\">The Father’s love follows us now and throughout the endless circle of the eternal ages. As you ponder the loving nature of God, there is only one reasonable and natural personality reaction thereto: You will increasingly love your Maker; you will yield to God an affection analogous to that given by a child to an earthly parent; for, as a father, a real father, a true father, loves his children, so the Universal Father loves and forever seeks the welfare of his created sons and daughters.</span>",
"labels": [],
"audio": {
"tts-1-hd": {
"nova": {
"url": "https://cdn.urantia.dev/audio/eng/paragraphs/nova/tts-1-hd-nova-1:2.5.9.mp3",
"format": "mp3",
"bitrate": 160,
"duration": 30.5,
"fileSize": 609600
},
"onyx": {
"url": "https://cdn.urantia.dev/audio/eng/paragraphs/onyx/tts-1-hd-onyx-1:2.5.9.mp3",
"format": "mp3",
"bitrate": 160,
"duration": 30.7,
"fileSize": 613440
}
},
"gpt-4o-mini-tts": {
"cedar": {
"url": "https://cdn.urantia.dev/audio/eng/paragraphs/cedar/gpt-4o-mini-tts-cedar-1:2.5.9.mp3",
"format": "mp3",
"bitrate": 192,
"duration": 32.4,
"fileSize": 779328
}
}
},
"edition": "srt-2024"
}
],
"after": [
{
"id": "1:2.5.11",
"standardReferenceId": "2:5.11",
"sortId": "1.002.005.011",
"paperId": "2",
"sectionId": "5",
"partId": "1",
"paperTitle": "The Nature of God",
"sectionTitle": "The Love of God",
"paragraphId": "11",
"text": "At times I am almost pained to be compelled to portray the divine affection of the heavenly Father for his universe children by the employment of the human word symbol love. This term, even though it does connote man’s highest concept of the mortal relations of respect and devotion, is so frequently designative of so much of human relationship that is wholly ignoble and utterly unfit to be known by any word which is also used to indicate the matchless affection of the living God for his universe creatures! How unfortunate that I cannot make use of some supernal and exclusive term which would convey to the mind of man the true nature and exquisitely beautiful significance of the divine affection of the Paradise Father.",
"htmlText": "<span class=\"urantia-dev-pb-4\">At times I am almost pained to be compelled to portray the divine affection of the heavenly Father for his universe children by the employment of the human word symbol <em>love.</em> This term, even though it does connote man’s highest concept of the mortal relations of respect and devotion, is so frequently designative of so much of human relationship that is wholly ignoble and utterly unfit to be known by any word which is also used to indicate the matchless affection of the living God for his universe creatures! How unfortunate that I cannot make use of some supernal and exclusive term which would convey to the mind of man the true nature and exquisitely beautiful significance of the divine affection of the Paradise Father.</span>",
"labels": [],
"audio": {
"tts-1-hd": {
"nova": {
"url": "https://cdn.urantia.dev/audio/eng/paragraphs/nova/tts-1-hd-nova-1:2.5.11.mp3",
"format": "mp3",
"bitrate": 160,
"duration": 45.9,
"fileSize": 918240
},
"onyx": {
"url": "https://cdn.urantia.dev/audio/eng/paragraphs/onyx/tts-1-hd-onyx-1:2.5.11.mp3",
"format": "mp3",
"bitrate": 160,
"duration": 45.6,
"fileSize": 912480
}
},
"gpt-4o-mini-tts": {
"cedar": {
"url": "https://cdn.urantia.dev/audio/eng/paragraphs/cedar/gpt-4o-mini-tts-cedar-1:2.5.11.mp3",
"format": "mp3",
"bitrate": 192,
"duration": 42.7,
"fileSize": 1025088
}
}
},
"edition": "srt-2024"
}
]
},
"meta": {
"edition": {
"id": "srt-2024",
"label": "Standard Reference Text, 2024",
"year": 2024,
"foundationVersion": "1.22",
"versionStamp": "UF-202412132348"
}
}
}{
"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"
}
