Skip to content

CLI

Install the Deep Search CLI from npm as deepsearch-so, add an API key or the free sandbox key and run lookups and jobs from your terminal.

Install

The Deep Search CLI is on npm as deepsearch-so. Install it with npm install -g deepsearch-so, or run any command with npx deepsearch-so.

It is one self-contained command, deepsearch, with no dependencies to install at runtime. Scopes, usage and sandbox behaviour match the REST API, and it runs on Node.js 20.9 or newer.

Keys and options

To find a key, the CLI checks --api-key first, then the DEEPSEARCH_API_KEY variable, then ~/.deepsearch/config.json, the file deepsearch login writes with 0600 permissions. Every lookup command takes --json, --sandbox and --stream. Point it at a different deployment with --base-url, and cap how long a request may run with --timeout.

Everyday commands

Command list

CommandUse
search <query>Look up people from a name, phone number, email or username.
dossier <name>Build a person dossier, or replay a cached one.
chat <name> <message…>Ask about a person in plain language.
jobs <create|list|get|events|cancel|result>Create a job for any lookup, list jobs, follow events, cancel a job or fetch its result.
companies <query>Look up companies by name.
company <name>Build a dossier on one company.
reverse-image <url>Find public pages that show an image.
vin <vin>Decode a 17-character VIN.
address <address>Report on the property and place at a street address, never on its residents.
batch --input <json>Send up to ten operations at once and get a result for each.
statusCheck whether the developer API is available. Needs no key.
loginStore an API key and base URL for later commands.
config <get|set|path>Read, change or locate the saved settings.
While you build, add --sandbox to get the same Ada Lovelace sample data on every call, never charged. The CLI still needs a key, so if you have no account, set DEEPSEARCH_API_KEY to the public sandbox key dsk_test_deepsearch.