RAiD
The RAiD client (bibliofabric.raid) talks to the RAiD Federation API at
api.raid.org. RAiD is the Research Activity
Identifier (ISO 23527): a persistent identifier for research projects and
their sub-projects. The Federation API serves the open-access RAiDs of the
registered agencies in one searchable dataset, together with the directory
of their service points. Calls return typed Pydantic models, and every
async method has a generated sync twin with the same API.
Credentials
The API is public and read-only. It enforces no rate limit and asks for
fair use, so the client paces itself at 2 requests per second with
concurrency 2 and pages sequentially. The served records come verbatim
from the minting agencies, and each record names its own license in
identifier.license (CC-0 on every record in the live dataset); the API
document names Apache 2.0 for the API itself. Tunables such as
RAID_TIMEOUT are described in Settings. Install
bibliofabric as described in Setup.
Quick start
import asyncio
from bibliofabric.raid import RaidClient
async def main() -> None:
async with RaidClient() as client:
page = await client.raids.search(query="coral reef", page_size=5)
print(page.total)
for raid in page.results:
print(raid.id, raid.title[0].text if raid.title else "")
raid = await client.raids.get("10.26259/488751")
print(raid.id, raid.date.start_date if raid.date else None)
asyncio.run(main())
93
https://raid.org/10.71826/db4100aa NESP SCaW Project IP2.02.03 - Plastic-Reinforced Artificial Reef Structures; Improving Understanding, 2022-2023 (UNSW, CU)
https://raid.org/10.82210/0a5e3e91 NERP TE Project 1.2 - Marine wildlife management in the Great Barrier Reef World Heritage Area, 2011-2014 (JCU)
https://raid.org/10.82210/8bb22f7a NERP TE Project 1.3 - Characterising the cumulative impacts of global, regional and local stressors on the present and past biodiversity of the GBR, 2011-2014 (UQ)
https://raid.org/10.82210/0b33221b NERP TE Project 10.1 - Social and economic long term monitoring programme (SELTMP), 2011-2014 (CSIRO, JCU)
https://raid.org/10.82210/d9f454c8 NERP TE Project 10.2 - Socio-economic systems and reef resilience, 2012-2014 (JCU)
https://raid.org/10.26259/488751 2023-07-24
A handle argument takes the bare prefix/suffix path (10.26259/488751)
or a full https://raid.org/ URL; see
Identifiers. raid.id is the RAiD handle URL
the record carries.
Search and filters
client.raids.search() pages with an opaque cursor: pass
page.next_cursor back as cursor, or use iterate() and collect(),
which walk the pages for you. count() returns totalCount without a
full crawl.
The filter model carries the identifier filters of the route. Each field
maps to one query parameter, and the API accepts at most one identifier
filter per request, so setting two raises ConfigurationError before a
request is sent. q (the query= argument), updated_since, and
created_since combine with one identifier filter.
page = await client.raids.search(
{"ror": "038sjwq14"}, # organisation ROR, bare id or URL
query="coral", # keyword search over titles and descriptions
updated_since="2026-11-01", # ISO 8601 date or epoch seconds
)
The identifier fields are raid, orcid, ror, doi, related_raid,
geonames, openstreetmap, webarchive, isni, isbn, ark, and
rrid. The API normalises flexible input (bare ids, hyphenated ids, and
URLs) to the canonical form it stores, and answers a malformed identifier
with an empty result instead of an error. The upstream aliases
contributor, organisation, and relatedObject are not model fields;
pass them through params= if a raw alias is wanted.
Keeping a copy current
The federated dataset regenerates on a daily ingest, not per request. For
an incremental sync, keep sources.syncFrom from a crawl and pass it as
updated_since on the next one:
page = await client.raids.search(page_size=100)
sync_from = page.meta["sources"]["syncFrom"]
# later:
page = await client.raids.search(page_size=100, updated_since=sync_from)
page.meta also carries pageInfo, the paging state of the response.
A RAiD reaches the API up to a day after it changed, and syncFrom is
the time to use, not the time of your own request.
Prefix listings and service points
client.raids.by_prefix("10.26259") lists every RAiD minted under one
service point's handle prefix, with the same paging arguments as the
search. client.service_points.list() returns the directory: each entry
carries the service point's id, name, and identifierOwner ROR, and
id matches raid.identifier.owner.service_point on a record.
Sync quick start
The generated twin RaidSyncClient has the same methods without async
and await, and works in plain scripts, in Jupyter, and inside a running
event loop. See Async and sync clients for when
to pick which.
from bibliofabric.raid import RaidSyncClient
with RaidSyncClient() as client:
page = client.raids.search(query="coral reef", page_size=5)
raid = client.raids.get("10.26259/488751")
Errors
Errors raise NotFoundError, APIError, or ConfigurationError; see
Errors. The API rejects unknown query parameters,
bad limit values, foreign cursors, and multiple identifier filters with
HTTP 400 and a JSON error body. How the models parse unknown fields is
covered in Results; a RAiD record keeps fields the
model does not declare in model_extra.
Examples
Runnable scripts live in packages/bibliofabric/examples/raid:
quickstart.py: search, filter, lookup, prefix listing, service points.sync_quickstart.py: the incremental sync pattern withsyncFromandupdated_since.
Next
- Upstream quirks: what differs from the documented behavior.
- Reference: the typed API of the client.
- The RAiD metadata schema: https://metadata.raid.org.