Skip to main content
GET
/
paragraphs
/
random
Get a random paragraph
curl --request GET \
  --url https://api.urantia.dev/paragraphs/random
import requests

url = "https://api.urantia.dev/paragraphs/random"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://api.urantia.dev/paragraphs/random', 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/random",
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/random"

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/random")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.urantia.dev/paragraphs/random")

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": {
    "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>"
      }
    ],
    "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>"
      }
    ]
  },
  "navigation": {
    "prev": "<string>",
    "next": "<string>"
  }
}
{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>"
}
{
"type": "<string>",
"title": "<string>",
"status": 123,
"detail": "<string>"
}

Query Parameters

include
string
format
enum<string>
default:default
Available options:
default,
rag
lang
enum<string>
default:eng
Available options:
eng,
es,
fr,
pt,
de,
ko
minLength
integer
Required range: x >= 1
maxLength
integer
Required range: x >= 1

Response

A random paragraph

data
object
required
navigation
object