DBLP
The DBLP client (bibliofabric.dblp) reads the DBLP search API:
publication, person, and venue search plus the per-record XML pages. It
returns typed Pydantic models and enforces the paging limits and the one
request per second pace that DBLP asks API consumers to keep. An async
client and a generated sync twin expose the same calls.
Credentials
Every DBLP route is public, so there are no credentials and no key
settings. The client defaults to one request per second on one connection;
tune it with DBLP_MAX_REQUESTS_PER_SECOND and DBLP_MAX_CONCURRENCY, as
the settings guide describes.
Quick start
import asyncio
from bibliofabric.dblp import DblpClient
async def main() -> None:
async with DblpClient() as client:
page = await client.publications.search(query="database", page_size=3)
print(f"{page.total} publications match 'database'; first:")
for row in page.results:
print(" ", row.key, "-", row.title)
page = await client.authors.search(query="gerhard weikum")
author = page.results[0]
print("author:", author.name, f"({author.pid})")
page = await client.venues.search(query="sigmod")
print(f"{page.total} venues match 'sigmod'; first:", page.results[0].name)
record = await client.records.get("journals/biodb/JoshiMKJIS25")
print("record:", record.pubtype, record.key)
asyncio.run(main())
64983 publications match 'database'; first:
journals/biodb/JoshiMKJIS25 - GenDiS3 database: census on the prevalence of protein domain superfamilies of known structure in the entire sequence database.
author: Gerhard Weikum (w/GerhardWeikum)
6 venues match 'sigmod'; first: ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems (PODS)
record: article journals/biodb/JoshiMKJIS25
Sync quick start
from bibliofabric.dblp import DblpSyncClient
with DblpSyncClient() as client:
page = client.publications.search(query="database", page_size=3)
print(page.total, "publications match")
record = client.records.get("journals/biodb/JoshiMKJIS25")
print(record.pubtype, record.key)
The first lines match the async script above. The sync client uses plain
httpx.Client and never starts or touches an event loop, so it fits
scripts, notebooks, and threads; see
async and sync clients.
What the client offers
| Attribute | Returns | Methods |
|---|---|---|
client.publications |
Publication records |
search, iterate, collect, first, count |
client.authors |
Author records |
search, iterate, collect, first, count |
client.venues |
Venue records |
search, iterate, collect, first, count |
client.records |
PublicationRecord records |
get, exists |
DBLP has no single-record JSON route for search hits and no batch route,
so get, exists, and batch_get raise ConfigurationError on the three
search resources; the record pages are their own resource, client.records,
whose get() accepts the bare DBLP key and the dblp.org/rec/ URL in its
spellings. select= raises ConfigurationError everywhere because DBLP
has no field selection. The query terms a caller sends are prefix-matched:
DBLP searches database* for the query database, and Page.meta
carries the prefix completions with their hit counts.
The bot challenge
DBLP fronts every host with Anubis. A client
without the challenge cookie receives an HTML proof-of-work page (HTTP 202)
instead of JSON on first contact. A browser visit to https://dblp.org once
issues the cookie, which then works for the API; pass it through a
pre-warmed http_client=, as the example scripts do. See
upstream quirks.
Examples
Runnable scripts live in packages/bibliofabric/examples/dblp:
quickstart.py: publication, person, and venue search plus one record page.sync_quickstart.py: the same calls with the sync client.
Next
- Publications: the publication search and the record pages.
- Authors: the person search and person ids.
- Venues: the venue search.
- Upstream quirks: what the live API does differently from its FAQ.
- API reference: every public class generated from the source.