paper_firehose.core.apis.pubmed_client

PubMed API client for fetching paper abstracts.

PubMed (NCBI) provides access to biomedical literature abstracts through the E-utilities API (ESearch and EFetch).

Functions

get_pubmed_abstract_by_doi(doi, *[, session])

Look up a DOI in PubMed and return the combined abstract text if available.

paper_firehose.core.apis.pubmed_client.get_pubmed_abstract_by_doi(doi, *, session=None)[source]

Look up a DOI in PubMed and return the combined abstract text if available.

Uses ESearch to find PMID by DOI, then EFetch to retrieve the abstract XML.

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

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

Return type:

Optional[str]

Returns:

Plain-text abstract or None if not available