NQUIRE(1)
π NAME π
nquire β bestie, this is your girl for hitting up NCBI Entrez Utilities, other parameter-based web services, or straight-up FTP. raw queries, no filter β¨
It lives in the NCBI Entrez Direct User's Manual, and we're about to get into it π
β¨ SYNOPSIS β¨
nquire [-help] [-ftp host dir [file]] [-url URL] [-get [URL]] [-len URL]
[-lst host dir] [-dir host dir] [-eutils name] [-dwn host dir [file]]
[-asp host dir [file]]
[-ncbi|-eutils|-pubchem|-pugrest|-pugview|-datasets] [component ...]
[-tag value ...] [-examples] [-version]
πΈ DESCRIPTION πΈ
okay so picture this: nquire is out here doing raw HTTP(S) queries against web services β think NCBI E-Utilities, the ones that take GET or POST parameters β and it can also do downloads or listings from FTP and Aspera servers. π¦
heads up bestie: the Aspera thing needs you to install proprietary client software first. not us being dramatic, that's just the deal π
π OPTIONS π
π Documentation
-helpβ prints usage info, and it comes complete with a few examples too, some of which are extra cute and also show off how to usextract(1). π
π Query Commands
-ftp host dir [file]β use FTP instead of HTTP, periodt. and here's the tea on the shell implementation: it only accepts a filename on the command line when you invoke it from a (pseudo)terminal. any other time? it reads filenames from standard input. no cap. π-url URLβ the base URL for external search. that's it, that's the whole vibe. β¨-get [URL]β makes it use HTTP(S) GET instead of POST. simple as. π«Ά-len URLβ gives you the content length of the HTTP file. iconic for when you just need the numbers. π-lst host dirβ lists the contents of an FTP site. window shopping fr fr ποΈ-dir host dirβ an FTP listing, but with file sizes included. the receipts, bestie. π§Ύ
β¬οΈ File Downloads
-dwn host dir [file]β literally-ftpenergy, except it saves the contents to correspondingly named files in the current directory. so it just... puts them there. slay. π-asp host dir [file]β same as-dwn, but it uses Aspera's proprietary client if you've got it installed. iykyk π¦
π -url Shortcuts
these are just preset base URLs, zero thinking required, we love a shortcut:
-ncbiβhttps://www.ncbi.nlm.nih.gov-eutilsβhttps://eutils.ncbi.nlm.nih.gov/entrez/eutils-pubchemβhttps://pubchem.ncbi.nlm.nih.gov-pugrestβhttps://pubchem.ncbi.nlm.nih.gov/rest/pug-pugviewβhttps://pubchem.ncbi.nlm.nih.gov/rest/pug_view-datasetsβhttps://api.ncbi.nlm.nih.gov/datasets/v2alpha
β URL Additions
componentβ adds/componentonto the base URL. β οΈ it has to come BEFORE any tag/value pairs, that's the rule, don't fight it. π-tag value ...β adds&tag=value,...onto the base URL. β οΈ and this one has to come AFTER any simple components. order matters, bestie, it's giving choreography. π©°
π§ Miscellaneous
-examplesβ shows you examples of advanced queries. the main character energy of options. π-versionβ prints the version number. that's it! β
π SEE ALSO π
archive-nihocc(1), archive-nlmnlp(1), archive-nmcds(1), archive-pids(1), archive-pmc(1), archive-pubmed(1), archive-taxonomy(1), cit2pmid(1), curl(1), download-flatfile(1), download-ncbi-data(1), download-ncbi-software(1), download-pmc(1), download-pubmed(1), ecollect(1), edict(1), efetch(1), efilter(1), einfo(1), elink(1), epost(1), esearch(1), refseq-nm-cds(1), skip-if-file-exists(1), wget(1), xtract(1).
and that's the whole page, bestie π«Ά this one's brought to you by NCBI, dated 2025-05-26 β go query something iconic πβ¨
π¦ where this page comes from
- debian trixie: ncbi-entrez-direct 24.0.20250523+dfsg-1+b1 Β· PD
- ubuntu questing: ncbi-entrez-direct 24.0.20250523+dfsg-1
- ubuntu resolute: ncbi-entrez-direct 24.0.20250523+dfsg-2 Β· PD
- ubuntu stonking: ncbi-entrez-direct 24.0.20250523+dfsg-2 Β· PD
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms