Works
List the Works
The Bible (World English Bible) and 21 texts of the world’s religions and traditions, each in the US public domain. id is what the other /works endpoints take: "bible" or a slug such as "dhammapada". unitLabel is the word for one unit of each work (verse, section, pauri).
GET
/
works
List the works beside the Papers
curl --request GET \
--url https://api.urantia.dev/worksimport requests
url = "https://api.urantia.dev/works"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.urantia.dev/works', 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/works",
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/works"
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/works")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.urantia.dev/works")
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": "bible",
"title": "The Bible (World English Bible)",
"tradition": "Jewish and Christian",
"religion": "Jewish and Christian",
"kind": "scripture",
"summary": "The Hebrew Bible, the deuterocanon, and the New Testament.",
"translator": "World English Bible",
"year": null,
"refPrefix": null,
"unitLabel": "verse",
"units": 38034,
"urantiaSection": null
},
{
"id": "diogenes-laertius-6",
"title": "Lives of Eminent Philosophers, Book 6: The Cynics",
"religion": "Cynic",
"tradition": "Cynic",
"kind": "classic",
"summary": "The lives and sayings of Diogenes and the other Cynic philosophers.",
"translator": "R. D. Hicks",
"year": 1925,
"refPrefix": "DL",
"unitLabel": "section",
"units": 105,
"urantiaSection": "131:1"
}
]
}{
"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"
}Response
The works
Show child attributes
Show child attributes
⌘I
List the works beside the Papers
curl --request GET \
--url https://api.urantia.dev/worksimport requests
url = "https://api.urantia.dev/works"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.urantia.dev/works', 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/works",
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/works"
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/works")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.urantia.dev/works")
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": "bible",
"title": "The Bible (World English Bible)",
"tradition": "Jewish and Christian",
"religion": "Jewish and Christian",
"kind": "scripture",
"summary": "The Hebrew Bible, the deuterocanon, and the New Testament.",
"translator": "World English Bible",
"year": null,
"refPrefix": null,
"unitLabel": "verse",
"units": 38034,
"urantiaSection": null
},
{
"id": "diogenes-laertius-6",
"title": "Lives of Eminent Philosophers, Book 6: The Cynics",
"religion": "Cynic",
"tradition": "Cynic",
"kind": "classic",
"summary": "The lives and sayings of Diogenes and the other Cynic philosophers.",
"translator": "R. D. Hicks",
"year": 1925,
"refPrefix": "DL",
"unitLabel": "section",
"units": 105,
"urantiaSection": "131:1"
}
]
}{
"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"
}
