Get a collection with its pages
curl --request GET \
--url https://venivididavinci.com/api/v1/collections/{slug} \
--header 'X-API-Key: <api-key>'import requests
url = "https://venivididavinci.com/api/v1/collections/{slug}"
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/collections/{slug}', 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/collections/{slug}",
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/collections/{slug}"
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/collections/{slug}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://venivididavinci.com/api/v1/collections/{slug}")
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{
"collection": {
"slug": "ambrosiana-drawings",
"name": "Codex on the Flight of Birds",
"institution": "Biblioteca Reale",
"location": "Turin",
"category": "codex",
"pages": 123,
"enrichedPages": 123,
"url": "<string>",
"nameIT": "Codice sul volo degli uccelli"
},
"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."
}
}Collections
Get a collection with its pages
One collection plus a paginated list of its folios in reading order. Each folio summary carries enough to render an index or pick pages to fetch in full.
GET
/
collections
/
{slug}
Get a collection with its pages
curl --request GET \
--url https://venivididavinci.com/api/v1/collections/{slug} \
--header 'X-API-Key: <api-key>'import requests
url = "https://venivididavinci.com/api/v1/collections/{slug}"
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/collections/{slug}', 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/collections/{slug}",
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/collections/{slug}"
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/collections/{slug}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://venivididavinci.com/api/v1/collections/{slug}")
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{
"collection": {
"slug": "ambrosiana-drawings",
"name": "Codex on the Flight of Birds",
"institution": "Biblioteca Reale",
"location": "Turin",
"category": "codex",
"pages": 123,
"enrichedPages": 123,
"url": "<string>",
"nameIT": "Codice sul volo degli uccelli"
},
"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
Collection slug. One of the 28 enriched collections.
Available options:
ambrosiana-drawings, codex-arundel, codex-atlanticus, codex-flight-of-birds, codex-forster-i, codex-forster-ii, codex-forster-iii, codex-madrid-i, codex-madrid-ii, codex-urbinas, paris-ashburnham-a, paris-ashburnham-b, paris-ms-a, paris-ms-b, paris-ms-c, paris-ms-d, paris-ms-e, paris-ms-f, paris-ms-g, paris-ms-h, paris-ms-i, paris-ms-k, paris-ms-l, paris-ms-m, turin-drawings, uffizi-drawings, usa-collection-drawings, venice-accademia-drawings Query Parameters
Page size (default 50, max 200).
Required range:
1 <= x <= 200Zero-based offset into the full result set.
Required range:
x >= 0