Skip to content

Upstream quirks

These are behaviors of the re3data API. Every quirk below was observed against the live API; the API's own OpenAPI document (https://www.re3data.org/api/doc.json) is the documented reference. Where a quirk affects bibliofabric.re3data, the behavior of the client is noted.

The filters live on v40, not v1

The API ships three versions. /api/v40/ serves the Metadata Schema 4.0 and is the only version whose list route accepts filters. /api/v1/repositories serves schema 2.2 summaries and ignores every query parameter (verified byte-identical responses with and without filters), and /api/beta/ serves schema 2.2 with the old vocabulary (countries[] takes alpha-3 codes, subjects[] takes notation name strings such as 205 Medicine). bibliofabric.re3data targets v40 only; the legacy versions stay out of scope.

The list route answers 500 without a filter

/api/v40/repositories with no parameter answers HTTP 500, not an index of all repositories. Every recognized filter prevents the error. The client checks the outgoing parameters and raises ConfigurationError before sending when none is present.

There is no paging and no total

The list route serves every match in one response; the XML carries no total element and no paging parameters. search() returns the whole result set (one query matched 1162 repositories), Page.total is None, and count() is unsupported. Repeated values of one array filter intersect: a repository must match every value (institutional AND disciplinary matched 363 repositories where institutional alone matched 1064).

Array filters repeat one parameter per value

The array filters take the form countries[]=NZL repeated per value. Comma-joining inside one value matches nothing (countries[]=NZL,DEU answers an empty list). countries[] takes ISO 3166-1 alpha-3 codes (NZL, DEU, EEC), subjects[] takes the schema 4.0 DFG subject notations (11204), and types[] takes the repository type vocabulary (institutional, disciplinary). bibliofabric.re3data expands sequences into repeated parameters automatically.

Detail dates can be partial

startDate, endDate, entryDate, and lastUpdate are full YYYY-MM-DD dates on most records, but some records carry a bare year (1987) or a year-month value. Only full dates parse; a partial value leaves the model field as None.

Unrecognized filter names crash differently

A filter value the vocabulary does not know answers a clean empty <list>, while a lone parameter name the route does not know (no other parameter present) falls through to the unfiltered error path and answers HTTP 500. The client blocks that case: search() raises ConfigurationError before sending when no recognized parameter narrows the request. An unknown parameter sent alongside a valid query or filter is ignored and answers a normal 200 <list>; the client does not screen those.

Error bodies are XML

Every error answers with text/xml: <response><title>An error occurred</title><status>404</status><detail>Not Found</detail></response>. An unknown re3data id on the detail route answers 404 and maps to NotFoundError; any other error status (for example the unfiltered 500) maps to APIError.

The schema comment names 4.0, the namespace 4-0

The detail body declares the namespace http://www.re3data.org/schema/4-0 with an XML comment citing schema version 4.0. The parsers strip namespaces, so the prefix spelling does not matter to the client.

No dumps

re3data publishes no downloadable full-corpus dump; the API is the only machine interface. The legacy v1 list route is the closest thing to a full corpus export, but it serves schema 2.2 and stays out of scope.