fetch_records
Fetch full records for a list of UIDs from NCBI databases like PubMed or Protein, with options for rettype and retmode.
Instructions
Fetch full records (EFetch) for a list of UIDs. USE SPARINGLY: records can be large.
rettype/retmode combinations are database-specific, e.g.:
pubmed: rettype="abstract"|"medline", retmode="text"|"xml"
pmc: rettype="full" (retmode="xml")
protein/nuccore: rettype="fasta"|"gb"|"gp", retmode="text"
Response is truncated to max_chars characters; check the "truncated" flag.
Examples: fetch_records(db="pubmed", ids="34523456", rettype="abstract") fetch_records(db="protein", ids="NP_000509.1", rettype="fasta")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db | Yes | ||
| ids | Yes | ||
| retmode | No | text | |
| rettype | Yes | ||
| max_chars | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||