Skip to content

JUFO

The Jufo client (bibliofabric.jufo) reads the JUFO publication channel REST API v1.1, the database behind the Publication Forum (Julkaisufoorumi) classification. It covers the three kinds of publication channels: journals and series, book publishers, and conferences. Calls return typed Pydantic models through an async client and a generated sync twin.

Credentials

The API needs no credentials. The client paces itself to 2 requests per second with 2 concurrent requests. Tune both with JUFO_MAX_REQUESTS_PER_SECOND and JUFO_MAX_CONCURRENCY; see the settings guide. The constructor also takes a keyword-only mailto= contact address; it overrides JUFO_MAILTO and appears in the User-Agent the client sends.

Quick start

import asyncio

from bibliofabric.jufo import JufoClient


async def main() -> None:
    async with JufoClient() as client:
        # One full record by JUFO id.
        channel = await client.channels.get("64592")
        print(channel.name, channel.level, channel.type)

        # Search by name (nimi) narrowed to one channel type.
        page = await client.journals.search(query="artificial intelligence")
        for hit in page.results[:3]:
            print(hit.jufo_id, hit.name)

        # Identifier lookups return hit stubs; fetch the full record by id.
        hits = await client.book_publishers.by_isbn_prefix("978-87-74")
        for hit in hits[:3]:
            channel = await client.channels.get(hit.jufo_id)
            print(channel.name, channel.isbn_prefixes)


asyncio.run(main())
Oxford journal of archaeology 2 Lehti/sarja
51837 Artificial intelligence
51463 Applied artificial intelligence
51841 Artificial intelligence review
C.A. Reitzel ['978-87-7421', '978-87-7876', '978-87-87504']
Danmarks pædagogiske universitets forlag ['978-87-7416', '978-87-7684']
Fadls forlag a/s ['978-87-7437', '978-87-7749']

The identifier lookups use one search request. The name search above sends one request too; hydrating every hit with channels.get() costs one request per hit.

Sync quick start

from bibliofabric.jufo import JufoSyncClient

with JufoSyncClient() as client:
    channel = client.channels.get("64592")
    print(channel.name, channel.level_history)

Use the sync client in scripts, notebooks, or threads; it never starts or touches an event loop. See async and sync clients for when each fits. Both variants take the same parameters and raise the same errors.

What the client offers

Attribute Returns Methods get() accepts
client.channels Channel search, iterate, collect, first, get, exists JUFO id: "64592", 64592, or the record URL of a hit
client.journals ChannelHit search, iterate, collect, first, by_issn no get()
client.book_publishers ChannelHit search, iterate, collect, first, by_isbn_prefix no get()
client.conferences ChannelHit search, iterate, collect, first, by_issn, by_abbreviation no get()

The search route returns hit stubs (Jufo_ID, Link, Name, Type), not full records; client.channels.get(hit.jufo_id) fetches the record. query= is the name search, filters= carries the typed filter models (JournalFilters, BookPublisherFilters, ConferenceFilters, ChannelFilters). The API pages no results, so search() returns one page, iterate() yields that page and stops, and count() is disabled because the API reports no totals. Every search needs at least one criterion; a criterion-free search would dump the first 100 records of the whole database upstream, so the client raises ConfigurationError instead. See upstream quirks.

Read the nightly dump

The whole database ships as a nightly zip at https://jufo-rest.csc.fi/v1.1/massa.json.zip (about 4 MB compressed, about 43,000 channels, 55 MB unpacked). Save the file yourself; the client sends no request for it. Then read every channel offline:

from bibliofabric.jufo import iter_dump_records

for channel in iter_dump_records("massa.json.zip"):
    print(channel.jufo_id, channel.name, channel.level)

iter_dump_records() takes the path of the zip or an open binary file object and yields one validated Channel per record, reading the member in chunks so memory use stays flat. The records carry the dump-only keys (Channel_ID, Source, newLevel, sherpaIndex, oaType, saAllowed, ReEvaluation, Jufo_2024, Jufo_2025) as model extras; see upstream quirks for how the dump schema differs from the routes. The database is maintained by the Publication Forum and the upstream pages name no data license.

Examples

Runnable scripts live in packages/bibliofabric/examples/jufo:

Next