Skip to content

Upstream quirks

These are behaviors of the DBLP search API, with the FAQ entry as the documented reference. Every quirk below was observed against the live API. Where a quirk affects bibliofabric.dblp, the behavior of the client is noted.

Anubis protects every host

dblp.org and its mirrors (dblp.uni-trier.de, dblp.dagstuhl.de) answer the first request of a client without cookies with an HTML Anubis proof-of-work challenge page (HTTP 202), including the API routes. A browser solves the challenge once and keeps the dblp_org-auth-8702d140 cookie, which then lets every request through. The name ends in a policy hash, so it can change when DBLP updates its Anubis configuration. bibliofabric.dblp does not solve challenges; pass a pre-warmed http_client= with the cookie, or visit https://dblp.org in a browser first when scripting against the live site.

The live page size cap is 100, not 1000

The FAQ names 1000 as the cap of the h parameter "for bandwidth reasons". The live API answers h=1000 with @sent: 100: at most 100 hits leave the server per request. @computed, the number of computed hits in the envelope, also caps at 100. bibliofabric.dblp clamps page_size to 100 so no request asks for more than the API serves.

Queries are prefix-matched

DBLP runs the CompleteSearch engine and matches the right-most query term as a prefix: the query database searches database*. The envelope reports what the prefix matched under result.completions with three counts per completion (@sc the completion itself, @dc its documents, @oc its occurrences); Page.meta carries it.

Zero hits omit the hit list

A query without matches answers HTTP 200 with hits.@total: "0" and no hit key at all inside result.hits. bibliofabric.dblp returns an empty Page with total 0.

Scalar shapes vary

JSON serves XML-ish data, so list-or-scalar shapes vary: a single author or a single completion can arrive as an object where a list is usual, and venue on publication hits is a scalar on some records and a list on others. The models accept both; SafeList and small validators normalize them.

Attribute keys carry metadata

Envelope metadata lives in keys with a leading @: hits.@total, hits.@computed, hits.@sent, hits.@first, @score, @id, and note attributes such as @type. year and the counts are strings on the wire. The unwrapper reads @total for count(); the models map the rest with @-aliases.

Deep offsets answer empty, not error

An offset past the matched total (f=60000 against 64983 hits) answers HTTP 200 with @sent: 0 instead of an error, so a walk past the end stops cleanly.

Unknown query parameters are ignored

A request with an unrecognized parameter answers 200 like a request without it; the API does not reject unknown parameters.

Record pages are XML only

The per-record page exists at /rec/{key}.xml; there is no JSON record route (/rec/{key}.json answers 404). A record page holds exactly one record element below the <dblp> root, and its element name is the publication type. An unknown key answers 404 with an HTML error page. bibliofabric.dblp parses the XML page in client.records.get().

The XML and RDF dumps are the full corpus

DBLP publishes complete XML and RDF dumps under CC0 1.0 for full-corpus harvesting. bibliofabric.dblp reads only the search API and the per-record XML pages; it ships no dump loader.