Upstream quirks
Behavior of the live Dryad API v2, with the API documentation at
datadryad.org/api and the OpenAPI document at
https://datadryad.org/openapi.yml as the reference. Where a quirk affects
bibliofabric.dryad, the behavior of the client is noted.
The answer format is HAL+JSON with route-specific embedded keys
Every list route answers one envelope: the records under _embedded (the
key is stash:datasets, stash:versions, or stash:files), the grand
total in total, the page size in count, and the paging links in
_links. There is no page object. Single-record routes answer the
record itself, with no envelope. bibliofabric.dryad unwraps the first list
under _embedded and keeps the rest of the envelope in Page.meta.
Page numbers start at 1, and page 0 aliases page 1
page=0 and page=1 answer identical content, but the _links.next of
that page points at page=2. A harvest that starts at page 0 and follows
next silently skips one page. bibliofabric.dryad sets the dialect's page
start to 1.
per_page above 100 is silently clamped
The documentation names 100 as the maximum per_page. A larger value does
not fail: the API answers with 100 records and echoes the requested value
in _links.self. bibliofabric.dryad clamps page_size to 100 before
sending.
There is no sort, cursor, or field selection
No list route takes a sort parameter (search ranks by relevance only),
there is no cursor paging (_links.next just bumps page), and no route
supports field projection. bibliofabric.dryad's dialect leaves all three
switches off, so sort=, cursor=, and select= raise
ConfigurationError before any request.
The DOI must be URL-encoded in paths
Dataset paths take the DOI as doi:10.5061/dryad.<suffix>, percent-encoded
(doi%3A10.5061%2Fdryad.<suffix>). bibliofabric.dryad accepts the bare
DOI, the doi: spelling in any case, and doi.org or datadryad.org URLs,
then encodes it.
File and version ids live in the links, not in fields
A file record has no id field: the numeric id is the tail of
_links.self.href (/api/v2/files/<id>). The same holds for versions.
The records also carry the parent dataset and version under stash:dataset
and stash:version links. bibliofabric.dryad exposes the ids as id and
version_id properties that parse the links.
Author roles come in two shapes
The roles list of an author holds CRediT role objects
({"role": ..., "identifier": ...}) on newer records and plain strings on
others. The DryadAuthor.roles field accepts both.
All download routes need a token
GET /datasets/{doi}/download, GET /versions/{id}/download, and
GET /files/{id}/download answer 401
({"error": "Unauthorized, must have current bearer token"}) for callers
without a bearer token, even for public datasets and files. bibliofabric.dryad
wraps all three and they carry the token when DRYAD_CLIENT_ID and
DRYAD_CLIENT_SECRET are set; without credentials they raise
AuthError.
HEAD is not routed everywhere
HEAD /versions/{id}/download answers 405, and other download routes may
behave the same. exists() falls back to one GET when HEAD fails, so
probes stay correct.
The report index can be empty, and the report route serves the CSVs
GET /reports answers the report names under _links.reports
(datasets_with_possible_articles, orchid_conflicts, and others). The
index is served by more than one backend node: on 2026-11-30 the same
route answered a list of five names and, minutes later, an empty list.
Callers must handle an empty list; reports.names() then returns [].
GET /reports/{name} serves the CSV (HTTP 200, text/plain) for the
names the index lists; earlier in 2026 the same route answered 404
({"error": "Could not find requested report <name>"}) for every name
and 406 to any Accept other than */*, so both behaviors can return.
bibliofabric.dryad sends Accept: */*, maps a 404 to
NotFoundError, and guards the name client-side with
ConfigurationError. The report names carry dates
(sri_lanka_remapping_2025-11-18), so they change over time.
Large version zips answer 405 before the auth check
GET /versions/{id}/download answers 405 (The dataset is too large for
zip file generation) for versions whose dataset is about a gigabyte or
larger, and it does so before the token check, so an anonymous caller
sees 405 (APIError) instead of 401. Download such files individually
through client.files.download().
Unknown query parameters are ignored
The routes do not reject unknown parameters; a typo in a filter name
silently returns an unfiltered result. Use the filter models
(DryadBrowseFilters, DryadSearchFilters), whose fields carry the exact
wire names.
Rate limit
Callers without credentials may send 30 requests per minute. The client's default pace of 0.5 requests per second stays inside that limit at all times. The limit for token holders is not published.