paper_firehose.core.apis.openalex_client

OpenAlex API client for fetching paper abstracts.

OpenAlex is an open catalog of scholarly papers that provides metadata including abstracts, sometimes in an inverted-index format that needs reconstruction.

Functions

get_openalex_abstract(doi, *, mailto[, session])

Fetch an abstract from OpenAlex by DOI, reconstructing when inverted-indexed.

paper_firehose.core.apis.openalex_client.get_openalex_abstract(doi, *, mailto, session=None)[source]

Fetch an abstract from OpenAlex by DOI, reconstructing when inverted-indexed.

Parameters:
  • doi (str) – Digital Object Identifier to look up

  • mailto (str) – Contact email for OpenAlex User-Agent

  • session (Optional[Session]) – Optional requests.Session for backward compatibility

Return type:

Optional[str]

Returns:

Plain-text abstract or None if not available