| 1 |
.TH NQUIRE 1 2025-05-26 NCBI "NCBI Entrez Direct User's Manual" |
| 2 |
.SH NAME |
| 3 |
nquire \- query NCBI Entrez Utilities, other parameter\-based web services, or FTP |
| 4 |
.SH SYNOPSIS |
| 5 |
\fBnquire\fP |
| 6 |
[\|\fB\-help\fP\|] |
| 7 |
[\|\fB\-ftp\fP\ \fIhost\fP\ \fIdir\fP\ [\|\fIfile\fP\|]\|] |
| 8 |
[\|\fB\-url\fP\ \fIURL\fP\|] |
| 9 |
[\|\fB\-get\fP\ [\|\fIURL\fP\]\|] |
| 10 |
[\|\fB\-len\fP\ \fIURL\fP\|] |
| 11 |
[\|\fB\-lst\fP\ \fIhost\fP\ \fIdir\fP\|] |
| 12 |
[\|\fB\-dir\fP\ \fIhost\fP\ \fIdir\fP\|] |
| 13 |
[\|\fB\-eutils\fP\ \fIname\fP\|] |
| 14 |
[\|\fB\-dwn\fP\ \fIhost\fP\ \fIdir\fP\ [\|\fIfile\fP\|]\|] |
| 15 |
[\|\fB\-asp\fP\ \fIhost\fP\ \fIdir\fP\ [\|\fIfile\fP\|]\|] |
| 16 |
[\|\fB\-ncbi\fP|\fB\-eutils\fP|\fB\-pubchem\fP|\ |
| 17 |
\fB\-pugrest\fP|\fB\-pugview\fP|\fB\-datasets\fP\|] |
| 18 |
[\|\fIcomponent\fP ...\|] |
| 19 |
[\|\fB\-\fP\fItag\fP\ \fIvalue\fP ...\|] |
| 20 |
[\|\fB\-examples\fP\|] |
| 21 |
[\|\fB\-version\fP\|] |
| 22 |
.SH DESCRIPTION |
| 23 |
\fBnquire\fP performs raw HTTP(S) queries |
| 24 |
against web services such as NCBI E\-Utilities |
| 25 |
that take \fBGET\fP or \fBPOST\fP parameters, |
| 26 |
or downloads or listings from FTP and Aspera servers. |
| 27 |
(Aspera support requires installing proprietary client software.) |
| 28 |
.SH OPTIONS |
| 29 |
.SS Documentation |
| 30 |
.TP |
| 31 |
\fB\-help\fP |
| 32 |
Print usage information, complete with a few examples, |
| 33 |
some additionally illustrating the use of \fBxtract\fP(1). |
| 34 |
.SS Query Commands |
| 35 |
.TP |
| 36 |
\fB\-ftp\fP\ \fIhost\fP\ \fIdir\fP\ [\|\fIfile\fP\|] |
| 37 |
Use FTP instead of HTTP. |
| 38 |
The shell implementation accepts a filename on the command line |
| 39 |
only when invoked from a (pseudo)terminal, |
| 40 |
and otherwise reads filenames from standard input. |
| 41 |
.TP |
| 42 |
\fB\-url\fP\ \fIURL\fP |
| 43 |
Base URL for external search. |
| 44 |
.TP |
| 45 |
\fB\-get\fP\ [\|\fIURL\fP\] |
| 46 |
Use HTTP(S) \fBGET\fP instead of \fBPOST\fP. |
| 47 |
.TP |
| 48 |
\fB\-len\fP\ \fIURL\fP |
| 49 |
Content length of HTTP file. |
| 50 |
.TP |
| 51 |
\fB\-lst\fP\ \fIhost\fP\ \fIdir\fP |
| 52 |
Lists contents of FTP site. |
| 53 |
.TP |
| 54 |
\fB\-dir\fP\ \fIhost\fP\ \fIdir\fP |
| 55 |
FTP listing with file sizes. |
| 56 |
.SS File Downloads |
| 57 |
.TP |
| 58 |
\fB\-dwn\fP\ \fIhost\fP\ \fIdir\fP\ [\|\fIfile\fP\|] |
| 59 |
Like \fB\-ftp\fP, but saves contents to correspondingly named files |
| 60 |
in the current directory. |
| 61 |
.TP |
| 62 |
\fB\-asp\fP\ \fIhost\fP\ \fIdir\fP\ [\|\fIfile\fP\|] |
| 63 |
Like \fB\-dwn\fP, but uses Aspera's proprietary client if installed. |
| 64 |
.SS \fB\-url\fP Shortcuts |
| 65 |
.TP 10 |
| 66 |
\fB\-ncbi\fP |
| 67 |
https://www.ncbi.nlm.nih.gov |
| 68 |
.TP 10 |
| 69 |
\fB\-eutils\fP |
| 70 |
https://eutils.ncbi.nlm.nih.gov/entrez/eutils |
| 71 |
.TP 10 |
| 72 |
\fB\-pubchem\fP |
| 73 |
https://pubchem.ncbi.nlm.nih.gov |
| 74 |
.TP 10 |
| 75 |
\fB\-pugrest\fP |
| 76 |
https://pubchem.ncbi.nlm.nih.gov/rest/pug |
| 77 |
.TP 10 |
| 78 |
\fB\-pugview\fP |
| 79 |
https://pubchem.ncbi.nlm.nih.gov/rest/pug_view |
| 80 |
.TP 10 |
| 81 |
\fB\-datasets\fP |
| 82 |
https://api.ncbi.nlm.nih.gov/datasets/v2alpha |
| 83 |
.SS URL Additions |
| 84 |
.TP |
| 85 |
\fIcomponent\fP |
| 86 |
Add \fB/\fP\fIcomponent\fP to the base URL. |
| 87 |
(Must precede any tag/value pairs.) |
| 88 |
.TP |
| 89 |
\fB\-\fP\fItag\fP\ \fIvalue\fP\ ... |
| 90 |
Add \fB&tag=\fP\fIvalue\fP,... to the base URL. |
| 91 |
(Must follow any simple components.) |
| 92 |
.SS Miscellaneous |
| 93 |
.TP |
| 94 |
\fB\-examples\fP |
| 95 |
Examples of advanced queries. |
| 96 |
.TP |
| 97 |
\fB\-version\fP |
| 98 |
Print version number. |
| 99 |
.SH SEE ALSO |
| 100 |
.BR archive\-nihocc (1), |
| 101 |
.BR archive\-nlmnlp (1), |
| 102 |
.BR archive\-nmcds (1), |
| 103 |
.BR archive\-pids (1), |
| 104 |
.BR archive\-pmc (1), |
| 105 |
.BR archive\-pubmed (1), |
| 106 |
.BR archive\-taxonomy (1), |
| 107 |
.BR cit2pmid (1), |
| 108 |
.BR curl (1), |
| 109 |
.BR download\-flatfile (1), |
| 110 |
.BR download\-ncbi\-data (1), |
| 111 |
.BR download\-ncbi\-software (1), |
| 112 |
.BR download\-pmc (1), |
| 113 |
.BR download\-pubmed (1), |
| 114 |
.BR ecollect (1), |
| 115 |
.BR edict (1), |
| 116 |
.BR efetch (1), |
| 117 |
.BR efilter (1), |
| 118 |
.BR einfo (1), |
| 119 |
.BR elink (1), |
| 120 |
.BR epost (1), |
| 121 |
.BR esearch (1), |
| 122 |
.BR refseq\-nm\-cds (1), |
| 123 |
.BR skip\-if\-file\-exists (1), |
| 124 |
.BR wget (1), |
| 125 |
.BR xtract (1). |