Your account · every product
Command line
Install the command-line tool, log in, run a scraper from a terminal: output formats and exit codes.
EnrichedNow has a command-line tool, enrichednow: run a scraper, wait for it and read its records from a
terminal or a script, with no request to write. It is built on the API and does nothing the API does not; a run
started from it costs what the same run costs anywhere else.
| Command | enrichednow |
| Runs on | Linux, macOS and Windows, on amd64 and arm64 |
| Authentication | Your API key: saved with enrichednow login, or read from ENRICHEDNOW_API_KEY |
| Source and releases | github.com/enrichednow/enrichednow-cli |
Install#
On Linux and macOS:
curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | shThe script downloads the latest release for your machine, checks it against the release's checksums.txt
(SHA-256), and puts enrichednow in /usr/local/bin if you can write there, otherwise in ~/.local/bin. Nothing
runs as root. Set ENRICHEDNOW_INSTALL_DIR to choose the directory and ENRICHEDNOW_VERSION to choose the version.
On Windows, download enrichednow_<version>_windows_amd64.zip (or arm64) from the
latest release and put enrichednow.exe on your
PATH.
Log in#
enrichednow loginIt asks for the key without showing it, checks that the API accepts it, and saves it on this computer, readable by you alone. The key is the one you use for the API: create it in the console, under API keys — see Authentication. A script can pipe the key in instead of typing it.
The key is looked for in this order: the --api-key flag, the environment variable ENRICHEDNOW_API_KEY, then what
login saved. So where the variable is already set, as in the other examples on this site, there is nothing to log
in to. enrichednow logout forgets the saved key.
Run a scraper#
enrichednow run careers.company --input domain=northwind.exampleThat starts a run of careers.company, shows its progress, waits for it to end and
prints its records. Give one --input name=value for each field; a value is turned into what the scraper's input
asks for (a number for a number field, true or false for a yes/no field), and text stays text.
enrichednow scrapers show careers.company lists the fields a scraper takes, and every scraper's page
here has this command with that scraper's own example input, on the CLI tab.
For an input that is not flat (a list, a nested value), give it whole, as JSON:
enrichednow run careers.company --input-json '{"domain": "northwind.example"}'--file input.json reads it from a file, and --file - from a pipe.
| Flag | |
|---|---|
--no-wait | Start the run, print its id and return. Follow it with enrichednow runs wait <run-id>. |
--timeout 10m | How long to wait. When the time is up the run goes on; the command says how to follow it. |
--limit N | Print at most N records. |
--format csv or ndjson | The records as the API writes them, instead of -o: see Output formats. |
--idempotency-key KEY | Name this start: the same command with the same key and input, within 24 hours, gives back the same run instead of a second one. |
--webhook-url URL | An https URL that is sent a signed POST when the run ends: see A webhook for one run. |
The request that starts a run always carries an idempotency key, yours or one the tool makes,
so after a connection error or a server error it is sent again without ever starting a second run. If the start still
fails, the error gives the key: run the same command with --idempotency-key and that key, and you get the run if it
was started, or a new one if it was not. Interrupting the wait does not stop the run; enrichednow runs cancel <run-id> does. What a run's status and reason mean is the same as everywhere:
Results and statuses.
Output formats#
Progress and the one-line summary of the run go to standard error; the records go to standard output, so the output can be piped or saved as it is.
-o table | The default: aligned columns for a person, with as many fields as fit the terminal. |
-o json (or --json) | Indented JSON: for records, a list of them. |
-o jsonl | One JSON object a line. |
-o csv | One column a field; a nested field becomes parent.child columns. A text cell a spreadsheet would run as a formula starts with an apostrophe. |
--out FILE | Write to a file instead. Without -o, the format follows the extension: .json, .csv, .txt (table), anything else JSON lines. |
--format csv or ndjson | On run and runs records: the records as the API writes them, a page of 1,000 at a time. A CSV has a column for each field of the scraper's record schema, in its order, so every run of one scraper has the same columns. |
The JSON is the API's, field for field, so it is safe to script against. --quiet leaves out the progress and the
hints:
enrichednow run careers.company --input domain=northwind.example -o jsonl --quietMind the two flags that look alike: --json chooses the output; --input-json gives the input.
Exit codes#
| Code | Meaning |
|---|---|
0 | It worked. For run and runs wait: the run ended ok or partial. |
1 | An error: the API refused the request, could not be reached, or the wait timed out. |
2 | A mistake in the command line. |
3 | The run ended failed, unsupported or cancelled. The status and the reason are printed. |
4 | No API key, or one the API did not accept. |
130 | Interrupted. |
A run that could not read its target is not an error of the command: it is exit code 3, with the status and the
reason, and it costs nothing — see Usage and units.
Other commands#
enrichednow scrapers list | The catalogue, with what a run of each costs. No key needed. |
enrichednow scrapers show <id> | One scraper: its input fields, the fields of its records, how it is charged. No key needed. |
enrichednow runs list / get <run-id> / wait <run-id> / cancel <run-id> | Your runs, one run, waiting for one, stopping one. |
enrichednow runs records <run-id> | The records a run found; --format csv or ndjson has the API write them. |
enrichednow webhooks list / add <url> / show / update / remove / rotate-secret | Your webhook endpoints. A secret is shown once, when an endpoint is added or rotated. |
enrichednow webhooks run-secret / deliveries / resend <delivery-id> / verify | The secret for one run's --webhook-url, what was sent, sending one again, checking a signature. |
enrichednow usage | Units used over a period. |
enrichednow health | Is the API up. No key needed. |
The dataset catalogue: enrichednow data datasets lists the dated datasets and
enrichednow data datasets get <id> shows one, with no key needed; enrichednow data rows <id> --as-of 2026-11-24
reads a dataset's rows as of a day (--optout exclude, --all, and --format ndjson for a row a line).
Every command has --help, with examples, and the tool's
own README lists every flag.