Skip to content

Journals

client.journals covers /journals and /journals/{issn}. Later blocks reuse the client from the first block.

import asyncio

from bibliofabric.crossref import CrossrefClient


client = CrossrefClient()


async def main() -> None:
    async with client:
        journal = await client.journals.get("0028-0836")
        print("journal:", journal.primary_title, "-", journal.publisher)
        print("total dois:", journal.counts.total_dois)


asyncio.run(main())
journal: Nature - Springer Science and Business Media LLC
total dois: 448214

get() accepts an ISSN in any common form: the compact spelling 00280836, the hyphenated form 0028-0836, or a Portal URL. The client normalizes it to the hyphenated form before the request. See Identifiers.

The route accepts only a plain query. sort, select, and filter raise ConfigurationError client-side, because the API answers 400 to them.

Search journals

page = await client.journals.search(query="neurology", page_size=3)
print("total:", page.total)
for j in page.results:
    print(" ", j.primary_title)
total: 272
  Neurology
  Experimental Neurology
  Pediatric Neurology

search() returns Page[Journal]; iterate(), collect(), first(), and count() page with offset (Crossref rejects cursor on this route). See Paging.

DOI counts per year

dois_by_year(issn) returns DOI counts per issued year from the journal record's breakdowns.dois-by-issued-year, as a dict[int, int]:

counts = await client.journals.dois_by_year("0028-0836")
print(dict(sorted(counts.items(), reverse=True)[:3]))
{2026: 4165, 2025: 4550, 2024: 4387}

All works of a journal

journals.works(issn) returns a works client bound to /journals/{issn}/works; see Works:

scoped = await client.journals.works("0028-0836").search(page_size=2)
print("total:", scoped.total)
for w in scoped.results:
    print(" ", w.doi, w.primary_title)
total: 447947
  10.1038/d41586-022-04447-0 Molecular engineering enables bright blue LEDs
  10.1038/245450a0 Nature of the Lower D Region of the Ionosphere