bibliofabric.doaj
The Doaj client (bibliofabric.doaj) is a Python client for the DOAJ API v4. It types the journal and article search routes with Pydantic models, resolves journals by ISSN and articles by DOI, and enforces the paging limits the API imposes. It ships an async client and a generated sync twin with the same API. The search routes need no credentials.
Install
uv add bibliofabric
Requires Python 3.12 or newer.
The Doaj client ships in bibliofabric 0.9.0 and newer.
Quick start
import asyncio
from bibliofabric.doaj import DoajClient
async def main():
async with DoajClient() as client:
journal = await client.journals.get("1932-6203")
print(journal.title, journal.publisher_name)
page = await client.journals.search(query="title:plos")
print(page.total, [journal.title for journal in page.results])
article = await client.articles.get("10.3389/fpubh.2020.00115")
print(article.doi)
asyncio.run(main())
Where to go next
- Journals covers the journal record, search, sorting, and the ISSN lookup.
- Articles covers the article record and the DOI lookup.
- Upstream quirks lists what the live API does differently from its documentation.
Examples
Runnable scripts live in packages/bibliofabric/examples/doaj: a quickstart, an ISSN check across journals and article counts, a sync client tour, and the journal CSV download behind an explicit flag.