Skip to content

Scholix

client.scholix searches Scholexplorer, the OpenAIRE service for scholarly links. It talks to api.scholexplorer.openaire.eu through a second internal client that shares the Graph client's credentials and throttles itself to one request per second, because the host sends no rate-limit headers.

from aireloom import ScholixFilters

page = await client.scholix.search_links(
    ScholixFilters(sourcePid="10.1038/nature12373"), page_size=25
)
page.results  # list[ScholixRelationship]

The API requires one of sourcePid, targetPid, sourcePublisher, targetPublisher, sourceType, or targetType; a bare query returns 400.

Versions

V3 is the default endpoint. Queries with linkProvider are routed to V2 automatically because /v3/Links silently ignores linkProvider whereas /v2/Links filters by it:

page = await client.scholix.search_links(
    ScholixFilters(sourcePid="10.1038/nature12373", linkProvider="Crossref")
)

Passing from_date or to_date to search_links, iterate_links, search_links_v2, or iterate_links_v2 raises ConfigurationError immediately: V3 returns zero rows for date filters and V2 silently ignores date parameters (see upstream quirks). Filter results by link_publication_date client-side, or query Graph V4 research products with from_publication_date / to_publication_date.

search_links_v2 and iterate_links_v2 force the V2 endpoint directly.

Providers and publishers

providers = await client.scholix.list_link_providers()
publishers = await client.scholix.list_link_publishers(in_target=True, name="Elsevier")
kpi = await client.scholix.get_kpi()  # Prometheus text

The provider and publisher helpers use the V2 routes.