Upstream quirks
Behavior of the CORE API v3 that shapes how the client works, with the published OpenAPI document and the API documentation as the references. No live check ran while building the client, so every entry here comes from the published document, recorded production payloads indexed by search engines, and third-party API reviews; treat the live behavior as unverified.
Two field spellings are in circulation
The published OpenAPI document declares snake_case fields
(total_hits, search_id, year_published), while recorded production
responses answer camelCase (totalHits, yearPublished) with camelCase
envelope keys. The models accept both spellings for every field, and the
search unwrapper reads the total under both names.
Record fields changed shape between API generations
The document types authors as an array of strings, but recorded
production responses carry {"name": ...} objects; the document types
links as an array of strings, while reviews of the live API describe
objects with type and url. The models wrap scalar elements into the
object shape before validation, so both element shapes read. Date fields
come back as empty strings when a date is missing, which the models map to
None.
Search pages by offset and caps at 10,000
The search routes take q, limit, and offset. CORE documents a
10,000-result ceiling for the simple search; the documentation's own advice
for larger walks is its harvest notebooks, not the search route. The
published document's GET search path carries a trailing slash
(/v3/search/works/), the POST path none, and the client mirrors both.
Recorded production responses answer the same search without the trailing
slash.
The scroll pagination has no published contract
Older CORE API documentation and the official notebooks describe a scroll
search (scroll=true with a scrollId), but the current published
document defines no scroll or scrollId parameter, and the search
response carries a search_id instead. bibliofabric.core does not expose
scroll paging; it pages by offset.
Search requires a query
There is no unfiltered listing route: every search, count, and iteration
needs a q value, and the client raises ConfigurationError without one.
Field scoping lives in the query language (title:"...",
yearPublished>2018, _exists_:fullText), not in filter parameters.
Stats counts arrive as strings
The journal and data provider stats document their counts as strings
("countMetadata": "300000"). The stats models keep str | int, so
callers see the value as delivered.
Full text is credential-gated
The document's token table gives unauthenticated users 100 tokens per day and 10 requests per minute, and full text fields answer keyless requests with a "Not available for public API users" placeholder. A key raises the quota; it does not change the response schema.
The batch routes do not exist
CORE v3 has no batch retrieval route. The resources disable batch_get,
so a call raises ConfigurationError instead of guessing a query-language
workaround.