get_pubmed_article_connections
Find articles similar to, citing, or referenced by a PubMed ID, or generate citations in styles like RIS, BibTeX, APA, and MLA using NCBI ELink and EFetch APIs.
Instructions
Finds articles related to a source PubMed ID (PMID) or retrieves formatted citations for it. Supports finding similar articles, articles that cite the source, articles referenced by the source (via NCBI ELink), or fetching data to generate citations in various styles (RIS, BibTeX, APA, MLA via NCBI EFetch and server-side formatting). Returns a JSON object detailing the connections or formatted citations.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
citationStyles | No | An array of citation styles to format the source article into when 'relationshipType' is 'citation_formats'. Supported styles: 'ris', 'bibtex', 'apa_string', 'mla_string'. Default is ['ris']. Formatting is performed server-side based on data fetched via EFetch. | |
maxRelatedResults | No | Maximum number of related articles to retrieve when 'relationshipType' is 'pubmed_similar_articles', 'pubmed_citedin', or 'pubmed_references'. ELink results from NCBI will be truncated by the server if they exceed this number. Default is 5, maximum is 50. | |
relationshipType | No | Specifies the type of connection or action: - 'pubmed_similar_articles': Finds articles similar to the source PMID (uses ELink `cmd=neighbor`). - 'pubmed_citedin': Finds articles in PubMed that cite the source PMID (uses ELink `linkname=pubmed_pubmed_citedin`). - 'pubmed_references': Finds articles in PubMed referenced by the source PMID (uses ELink `linkname=pubmed_pubmed_refs`). - 'citation_formats': Retrieves data for the source PMID and formats it into specified citation styles (RIS, BibTeX, APA, MLA via NCBI EFetch and server-side formatting). | pubmed_similar_articles |
sourcePmid | Yes | The PubMed Unique Identifier (PMID) of the source article for which to find connections or format citations. This PMID must be a valid number string. |