Upstream quirks
Findings from about 40 requests against the live Zenodo REST API on 2026-11-27, plus about 28 more against the vocabularies, subcommunities, and OAI-PMH routes the same day, with the developers.zenodo.org documentation as the reference. Where a quirk affects zenotheca, the behavior of the client is noted.
The served API is the legacy record schema
GET /api/records answers records in the legacy shape (recid,
conceptrecid, conceptdoi, metadata, state, submitted, owners,
stats, swh) even though several links values point at the newer
InvenioRDM routes (versions, latest, parent, files, draft). The
documentation links an OpenAPI schema that does not match either shape
completely, so the live API was treated as ground truth and the models use
extra="allow".
Rate limits differ per route (checked on 2026-11-28)
The documentation names no limit. The live API sends x-ratelimit-limit headers that split the routes in two groups for callers without a token:
- The record search (
/api/records, with or withoutq) and the search over the records of one community (/api/communities/{slug}/records) allow 30 requests per minute. The 31st request answers 429 with{"message": "30 per 1 minute"}and aRetry-Afterheader of the seconds until the window resets. - Every other route allows 133 per minute: a record, its files, its versions, the communities list, a community's subcommunities, and the vocabularies.
A pace of 2 requests per second therefore fails on a long iteration over a search. zenotheca puts the two search routes in the search rate class at 0.5 requests per second and keeps 2 requests per second for everything else. The limits for token holders were not checked.
Paging limits
sizecaps at 25 without an access token.size=101answers HTTP 400 withPage size cannot be greater than 25. Please use authenticated requests to increase the limit to 100.zenotheca clampspage_sizeto 25.- Deep paging hits Elasticsearch's
max_result_windowof 10,000:page=401&size=25answers HTTP 400 withInvalid querystring parameters.There is no cursor paging anywhere;links.nextjust bumpspage. zenotheca rejectspage * sizeproducts above 10,000 before sending. - The versions listing pages like a search (
sizedefault 25,sortversion) and reports the family size inhits.total(97 versions for the ROR data concept on 2026-11-27).
Redirects stand in for concept resolution
GET /api/records/{conceptrecid}answers302with a relativeLocation: /api/records/{newest version id}and an HTML body.GET /api/records/{recid}/versions/latestanswers301with an absoluteLocationto the newest version.- Both redirects are followed by
records.get()andrecords.latest(). A concept id in theversions()path answers 404 (The persistent identifier does not exist.), because the concept id is not itself a record.
Sorting and searching
- Verified record sorts are
bestmatch(the default),mostrecent, and-mostrecent. Any other value answers HTTP 400 (Invalid sort option). mostrecentorders by last update, not by publication date. To find the newest release of a concept, useversions()orlatest()instead.- The
communitiesquery parameter accepts a slug (communities=ror-data), and the same clause works insideq(q=communities:ror-data). - Quoted phrases work in
q(q=title:"ROR Data"). - Without
all_versions=truea search answers one record per concept; with it, every version counts (3 records for theror-datacommunity became 99). HEAD /api/records/{id}answers 200 for existing records, soexists()keeps the default HEAD-based behavior.
Records, files, and links
idis an integer whilerecidandconceptrecidare numeric strings.- The
linksmap mostly carries URL strings, butlinks.thumbnailsis a nested object keyed by size.ZenothecaRecord.linkstherefore accepts arbitrary JSON values. GET /api/records/{id}/filesanswers an object (enabled,default_preview,order,entries,links), not a bare array. Each entry carrieskey,size,checksum,mimetype,bucket_id, andlinks.self/content/container.GET /api/records/{id}/files/{key}/contentstreams the bytes, answers206 Partial Contentwithaccept-ranges: bytesfor aRangerequest, and servesapplication/octet-stream. File names with spaces, parentheses, percent signs, and dashes work when URL-quoted; zenotheca quotes the key.- Some
metadatafields moved into typed blocks:resource_typeis{"id": ..., "title": ..., "type": "dataset"}andlicenseis{"id": "cc-zero"}.creators[].affiliationisnullon newer records.
Communities
- The community list answers
hitswith the newer community schema: a UUIDid, aslug,metadata(title,description,typeas an object with localized titles,organizations,website),access,custom_fields,deletion_status, andrevision_id. - The
/communities/{slug}routes accept the slug; therecordslink of a community points at/api/communities/{slug}/records, which answers the record search envelope.
Vocabularies (studied on 2026-11-27, about 28 requests)
GET /api/vocabularies/{name}answers the search envelope (hits.hits,hits.total,links,page,sortBytitle). The parametersq,page, andsizework like on a record search.- Verified vocabularies with entries:
resourcetypes(43 entries),licenses(37 forq=creative),languages(22 forq=english), andcommunitytypes(4:event,organization,project,topic). fundersandaffiliationsunder/api/vocabulariesanswer an empty list, but the same vocabularies have entries on their own top-level routes:/api/funders,/api/awards,/api/affiliations, and/api/subjects(verified 2026-11-28). Unknown names such asdatatypesorfreekeywordsanswer HTTP 404 with{"status": 404, "message": "Not found."}, and/api/namesanswers 403.- Record exports live on the website, not under
/api:/records/{id}/export/{format}answers twelve formats with their own media types;risandxmlanswer 404./api/records/{id}/files-archiveanswers 403 without a token. - An entry carries
id,created,updated,links.self,revision_id,titleanddescriptionas language maps, an optionalicon,tags,props, andtype.
Subcommunities (studied on 2026-11-27)
GET /api/communities/{slug}/subcommunitiesanswers the community envelope withsortBynewestand thetype,funder, andorganizationaggregations. A spot check across known communities (zenodo,ecfunded,clarin,openaire) found none with children; several documented slugs (ecfunding,dlcclist,dli-vifa,elpub,europeancommission) answer 404. The live test useszenodoand asserts an empty result.
OAI-PMH (studied on 2026-11-27)
- The endpoint is
https://zenodo.org/oai2d, protocol 2.0, and needs no token. Metadata prefixes:datacite,datacite4,dcat,marc21,marcxml,oai_datacite,oai_datacite4,oai_dc. - Successful answers use HTTP 200; error answers use HTTP 422 with an
<error code="..."/>element.noRecordsMatch(a date or set window with no records, including single-day windows on recent dates) andnoSetHierarchyanswer 422, not 200 with an empty list; zenotheca maps both to empty pages andidDoesNotExisttoNotFoundError. ListSetsreturns 50 sets per page; the resumption token carriesexpirationDate,cursor, andcompleteListSize(48,294 sets on 2026-11-27, token page 2 verified withcursor50).ListRecordsreturned 50 records for a one-week window (from=2026-11-20,until=2026-11-26,oai_datacite4) withcompleteListSize92,554.
Routes outside this client
GET /api/deposit/depositions(the legacy write route) answers HTTP 403 withPermission denied.without credentials. Write routes are out of scope until an account exists to test them.- Zenodo rejects requests without a
User-Agentheader; the client always sends one built from the package name and version. - With an access token the API documents a page size of 100; the value was
not verified live (no token was available on 2026-11-27), and zenotheca
only allows the larger cap when
ZENOTHECA_API_TOKENis set.