Get pages tagged with a subject
curl --request GET \
--url https://venivididavinci.com/api/v1/subjects/{id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://venivididavinci.com/api/v1/subjects/{id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://venivididavinci.com/api/v1/subjects/{id}', 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://venivididavinci.com/api/v1/subjects/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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://venivididavinci.com/api/v1/subjects/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://venivididavinci.com/api/v1/subjects/{id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://venivididavinci.com/api/v1/subjects/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"subject": {
"id": "geometry",
"label": "Physics & Mechanics",
"bucket": "physics-and-natural-world",
"bucketLabel": "Physics & the Natural World",
"scope": "<string>",
"pages": 123
},
"folios": {
"total": 123,
"limit": 123,
"offset": 123,
"data": [
{
"slug": "ambrosiana-drawings",
"index": 123,
"title": "Mechanical Science, Balances, and the Centre of Gravity",
"subjects": [
"geometry"
],
"url": "<string>",
"label": "<string>",
"kind": "leaf",
"thumbnail": "<string>"
}
]
}
}{
"error": {
"code": "not_found",
"message": "No collection with slug 'codex-atlantis'. See GET /v1/collections."
}
}{
"error": {
"code": "rate_limited",
"message": "Anonymous limit is 60 requests/hour. Pass an X-API-Key header for more."
}
}Subjects
Get pages tagged with a subject
One subject term plus a paginated list of every page tagged with it, across all collections.
GET
/
subjects
/
{id}
Get pages tagged with a subject
curl --request GET \
--url https://venivididavinci.com/api/v1/subjects/{id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://venivididavinci.com/api/v1/subjects/{id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://venivididavinci.com/api/v1/subjects/{id}', 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://venivididavinci.com/api/v1/subjects/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <api-key>"
],
]);
$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://venivididavinci.com/api/v1/subjects/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://venivididavinci.com/api/v1/subjects/{id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://venivididavinci.com/api/v1/subjects/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"subject": {
"id": "geometry",
"label": "Physics & Mechanics",
"bucket": "physics-and-natural-world",
"bucketLabel": "Physics & the Natural World",
"scope": "<string>",
"pages": 123
},
"folios": {
"total": 123,
"limit": 123,
"offset": 123,
"data": [
{
"slug": "ambrosiana-drawings",
"index": 123,
"title": "Mechanical Science, Balances, and the Centre of Gravity",
"subjects": [
"geometry"
],
"url": "<string>",
"label": "<string>",
"kind": "leaf",
"thumbnail": "<string>"
}
]
}
}{
"error": {
"code": "not_found",
"message": "No collection with slug 'codex-atlantis'. See GET /v1/collections."
}
}{
"error": {
"code": "rate_limited",
"message": "Anonymous limit is 60 requests/hour. Pass an X-API-Key header for more."
}
}Authorizations
Optional — raises your rate limit. Patron keys get the highest tier.
Path Parameters
Subject id from the vocabulary. One of the 25 frozen subject terms.
Available options:
geometry, arithmetic-and-proportion, physics-and-mechanics, hydraulics, anatomy, geology, astronomy, optics-and-light, botany, flight, machines-and-devices, weapons-and-fortification, architecture, civil-engineering, painting-and-perspective, figure-studies, sculpture-and-casting, horses-and-animals, landscape, cartography, ornament-and-heraldry, lists-and-accounts, language-and-latin, personal-notes, fables-and-prose Query Parameters
Page size (default 50, max 200).
Required range:
1 <= x <= 200Zero-based offset into the full result set.
Required range:
x >= 0