Upload UIDs to Entrez History
eutils_epostUpload UIDs to NCBI's History server to get a reusable handle. Use the handle to combine sets or process IDs from outside ESearch.
Instructions
Upload a list of UIDs to the NCBI History server and get a reusable handle.
Use this when you already have UIDs from somewhere other than an ESearch, or when you want to combine several sets. Many thousands of UIDs fit in one call.
Args:
db (string): database the UIDs belong to, for example "gene".
uids (string[] | string): UIDs or accessions, as an array or comma-separated string.
response_format ('markdown' | 'json'): output format. Default 'markdown'.
Returns: { database, uploaded, history: { db, web_env, query_key } }
Examples:
Use when: "fetch these five gene IDs" -> db="gene", uids=["7173","22018","54314"]
Use when: combining UID lists from two sources before one download
Don't use when: you are about to search; ESearch with usehistory already posts its own results
Error Handling:
Rejects UIDs containing URL metacharacters
Reports an upstream error if NCBI returns no History handle
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| db | Yes | Entrez database the UIDs belong to, for example "pubmed". | |
| uids | Yes | UIDs or accessions to upload, as an array or a comma-separated string. | |
| response_format | No | Output format: 'markdown' for human-readable text, or 'json' for machine-readable data. Default: 'markdown'. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| history | Yes | ||
| database | Yes | ||
| uploaded | Yes |