"PubMed" (Service Connection)

Connect to the PubMed API using the Wolfram Language to retrieve citations and abstracts for biomedical literature.

Connecting & Authenticating

ServiceConnect["PubMed"] creates a connection to the PubMed API. If a previously saved connection can be found, it will be used; otherwise, a new authentication request will be launched.

Requests

ServiceExecute["PubMed","request",params] sends a request to the PubMed API, using parameters params. The following gives possible requests.

Search Publications and Other Works

Request:

"PublicationSearch" a Dataset with information about publications matching search criteria

Parameters:
  • "ID"NoneID or list of IDs
    "Query"Nonequery terms
    "Author"Noneauthor's name
    "Title"Nonetitle keywords
    "Publisher"Nonepublisher name
    "CreationDate"Nonedate the citation was first created
    "CompletionDate"Nonedate the National Library of Medicine finished processing the citation
    "ModificationDate"Nonedate of the most recent revision
    "EntrezDate"Nonedate the citation was added to PubMed
    "PublicationDate"Nonedate or date interval that the article was published
    "ISBN"NoneISBN for books or book chapters
    "Language"None
  • language in which the article was published
  • "PublicationType"None
  • type of material the article represents (e.g. "Review", "Clinical Trial", "Retracted Publication", "Letter")
  • MaxItems20
  • maximum results to return
  • "Elements""Data"data elements to return
    "StartIndex"0
  • index of first search result to return
  • "SortBy"Nonefield to sort by ("MostRecent", "Relevance", "PublicationDate", "Author", "Journal", "Title")
  • List Publication Types

    Request:

    "PublicationTypes" a List of publication types

    Publication Abstract

    Request:

    "PublicationAbstract" abstract for the specified PubMed ID

    Parameters:
  • "ID"(required)ID or list of IDs
  • Parameter details

    Possible values for "Elements" include:
  • "Data"return a dataset with a limited set of fields
    "FullData"return a dataset with all available fields
  • Examples

    Basic Examples  (1)

    Create a new connection by launching an authentication dialog:

    Search publications by author and title:

    Paginate over long lists of results:

    Sort results by publication date:

    Retrieve information for a specific publication:

    Filter publications by type:

    Use dates to filter search results:

    Filter publications by language:

    Retrieve an abstract for a given publication: