Get a paragraph with surrounding context
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": "<string>",
"standardReferenceId": "<string>",
"sortId": "<string>",
"paperId": "<string>",
"sectionId": "<string>",
"partId": "<string>",
"paperTitle": "<string>",
"sectionTitle": "<string>",
"paragraphId": "<string>",
"text": "<string>",
"htmlText": "<string>",
"labels": [
"<string>"
],
"audio": {},
"language": "<string>",
"entities": [
{
"id": "<string>",
"name": "<string>",
"type": "being"
}
],
"bibleParallels": [
{
"chunkId": "<string>",
"reference": "<string>",
"bookCode": "<string>",
"chapter": 123,
"verseStart": 123,
"verseEnd": 123,
"text": "<string>",
"similarity": 123,
"rank": 123,
"source": "<string>",
"embeddingModel": "<string>"
}
],
"urantiaParallels": [
{
"id": "<string>",
"standardReferenceId": "<string>",
"paperId": "<string>",
"paperTitle": "<string>",
"sectionTitle": "<string>",
"text": "<string>",
"similarity": 123,
"rank": 123,
"source": "<string>",
"embeddingModel": "<string>"
}
]
},
"before": [
{
"id": "<string>",
"standardReferenceId": "<string>",
"sortId": "<string>",
"paperId": "<string>",
"sectionId": "<string>",
"partId": "<string>",
"paperTitle": "<string>",
"sectionTitle": "<string>",
"paragraphId": "<string>",
"text": "<string>",
"htmlText": "<string>",
"labels": [
"<string>"
],
"audio": {},
"language": "<string>",
"entities": [
{
"id": "<string>",
"name": "<string>",
"type": "being"
}
],
"bibleParallels": [
{
"chunkId": "<string>",
"reference": "<string>",
"bookCode": "<string>",
"chapter": 123,
"verseStart": 123,
"verseEnd": 123,
"text": "<string>",
"similarity": 123,
"rank": 123,
"source": "<string>",
"embeddingModel": "<string>"
}
],
"urantiaParallels": [
{
"id": "<string>",
"standardReferenceId": "<string>",
"paperId": "<string>",
"paperTitle": "<string>",
"sectionTitle": "<string>",
"text": "<string>",
"similarity": 123,
"rank": 123,
"source": "<string>",
"embeddingModel": "<string>"
}
]
}
],
"after": [
{
"id": "<string>",
"standardReferenceId": "<string>",
"sortId": "<string>",
"paperId": "<string>",
"sectionId": "<string>",
"partId": "<string>",
"paperTitle": "<string>",
"sectionTitle": "<string>",
"paragraphId": "<string>",
"text": "<string>",
"htmlText": "<string>",
"labels": [
"<string>"
],
"audio": {},
"language": "<string>",
"entities": [
{
"id": "<string>",
"name": "<string>",
"type": "being"
}
],
"bibleParallels": [
{
"chunkId": "<string>",
"reference": "<string>",
"bookCode": "<string>",
"chapter": 123,
"verseStart": 123,
"verseEnd": 123,
"text": "<string>",
"similarity": 123,
"rank": 123,
"source": "<string>",
"embeddingModel": "<string>"
}
],
"urantiaParallels": [
{
"id": "<string>",
"standardReferenceId": "<string>",
"paperId": "<string>",
"paperTitle": "<string>",
"sectionTitle": "<string>",
"text": "<string>",
"similarity": 123,
"rank": 123,
"source": "<string>",
"embeddingModel": "<string>"
}
]
}
]
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>"
}Paragraphs
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.
GET
/
paragraphs
/
{ref}
/
context
Get a paragraph with surrounding context
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": "<string>",
"standardReferenceId": "<string>",
"sortId": "<string>",
"paperId": "<string>",
"sectionId": "<string>",
"partId": "<string>",
"paperTitle": "<string>",
"sectionTitle": "<string>",
"paragraphId": "<string>",
"text": "<string>",
"htmlText": "<string>",
"labels": [
"<string>"
],
"audio": {},
"language": "<string>",
"entities": [
{
"id": "<string>",
"name": "<string>",
"type": "being"
}
],
"bibleParallels": [
{
"chunkId": "<string>",
"reference": "<string>",
"bookCode": "<string>",
"chapter": 123,
"verseStart": 123,
"verseEnd": 123,
"text": "<string>",
"similarity": 123,
"rank": 123,
"source": "<string>",
"embeddingModel": "<string>"
}
],
"urantiaParallels": [
{
"id": "<string>",
"standardReferenceId": "<string>",
"paperId": "<string>",
"paperTitle": "<string>",
"sectionTitle": "<string>",
"text": "<string>",
"similarity": 123,
"rank": 123,
"source": "<string>",
"embeddingModel": "<string>"
}
]
},
"before": [
{
"id": "<string>",
"standardReferenceId": "<string>",
"sortId": "<string>",
"paperId": "<string>",
"sectionId": "<string>",
"partId": "<string>",
"paperTitle": "<string>",
"sectionTitle": "<string>",
"paragraphId": "<string>",
"text": "<string>",
"htmlText": "<string>",
"labels": [
"<string>"
],
"audio": {},
"language": "<string>",
"entities": [
{
"id": "<string>",
"name": "<string>",
"type": "being"
}
],
"bibleParallels": [
{
"chunkId": "<string>",
"reference": "<string>",
"bookCode": "<string>",
"chapter": 123,
"verseStart": 123,
"verseEnd": 123,
"text": "<string>",
"similarity": 123,
"rank": 123,
"source": "<string>",
"embeddingModel": "<string>"
}
],
"urantiaParallels": [
{
"id": "<string>",
"standardReferenceId": "<string>",
"paperId": "<string>",
"paperTitle": "<string>",
"sectionTitle": "<string>",
"text": "<string>",
"similarity": 123,
"rank": 123,
"source": "<string>",
"embeddingModel": "<string>"
}
]
}
],
"after": [
{
"id": "<string>",
"standardReferenceId": "<string>",
"sortId": "<string>",
"paperId": "<string>",
"sectionId": "<string>",
"partId": "<string>",
"paperTitle": "<string>",
"sectionTitle": "<string>",
"paragraphId": "<string>",
"text": "<string>",
"htmlText": "<string>",
"labels": [
"<string>"
],
"audio": {},
"language": "<string>",
"entities": [
{
"id": "<string>",
"name": "<string>",
"type": "being"
}
],
"bibleParallels": [
{
"chunkId": "<string>",
"reference": "<string>",
"bookCode": "<string>",
"chapter": 123,
"verseStart": 123,
"verseEnd": 123,
"text": "<string>",
"similarity": 123,
"rank": 123,
"source": "<string>",
"embeddingModel": "<string>"
}
],
"urantiaParallels": [
{
"id": "<string>",
"standardReferenceId": "<string>",
"paperId": "<string>",
"paperTitle": "<string>",
"sectionTitle": "<string>",
"text": "<string>",
"similarity": 123,
"rank": 123,
"source": "<string>",
"embeddingModel": "<string>"
}
]
}
]
}
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>"
}Path Parameters
Query Parameters
Required range:
1 <= x <= 10Available options:
default, rag Available options:
eng, es, fr, pt, de, ko Response
Paragraph with context
Show child attributes
Show child attributes
⌘I