Skip to content

Members

client.members covers /members and /members/{id}. A member is the publisher account that deposits records, and member ids are plain integers (78 is Elsevier). 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:
        member = await client.members.get(78)
        print("member:", member.id, "-", member.primary_name)
        print("prefixes:", member.prefixes)


asyncio.run(main())
member: 78 - Elsevier BV
prefixes: ['10.1016']

get() accepts the integer id or its string form. The record carries DOI counts under member.counts, per-type breakdowns under member.counts_type, and the owned prefixes under member.prefix (a list of {name, value} entries).

Search members

The route accepts query plus the member filters (prefix, backfile_doi_count, current_doi_count in MemberFilters). sort and select raise ConfigurationError client-side:

from bibliofabric.crossref import MemberFilters

page = await client.members.search(MemberFilters(prefix="10.1038"), page_size=2)
print("total:", page.total)
for m in page.results:
    print(" ", m.id, m.primary_name)
total: 1
  297 Springer Science and Business Media LLC

All works of a member

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

scoped = await client.members.works(78).search(page_size=1)
print("total:", scoped.total)
total: 25651157

A member's work list can hold tens of millions of records. Count it before you iterate, and bound iterate() with limit.