Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    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.

    Commandenrichednow
    Runs onLinux, macOS and Windows, on amd64 and arm64
    AuthenticationYour API key: saved with enrichednow login, or read from ENRICHEDNOW_API_KEY
    Source and releasesgithub.com/enrichednow/enrichednow-cli

    Install#

    On Linux and macOS:

    Shell
    curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

    The 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#

    Shell
    enrichednow login

    It 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#

    Shell
    enrichednow run careers.company --input domain=northwind.example

    That 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:

    Shell
    enrichednow run careers.company --input-json '{"domain": "northwind.example"}'

    --file input.json reads it from a file, and --file - from a pipe.

    Flag
    --no-waitStart the run, print its id and return. Follow it with enrichednow runs wait <run-id>.
    --timeout 10mHow long to wait. When the time is up the run goes on; the command says how to follow it.
    --limit NPrint at most N records.
    --format csv or ndjsonThe records as the API writes them, instead of -o: see Output formats.
    --idempotency-key KEYName 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 URLAn 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 tableThe 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 jsonlOne JSON object a line.
    -o csvOne 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 FILEWrite to a file instead. Without -o, the format follows the extension: .json, .csv, .txt (table), anything else JSON lines.
    --format csv or ndjsonOn 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:

    Shell
    enrichednow run careers.company --input domain=northwind.example -o jsonl --quiet

    Mind the two flags that look alike: --json chooses the output; --input-json gives the input.

    Exit codes#

    CodeMeaning
    0It worked. For run and runs wait: the run ended ok or partial.
    1An error: the API refused the request, could not be reached, or the wait timed out.
    2A mistake in the command line.
    3The run ended failed, unsupported or cancelled. The status and the reason are printed.
    4No API key, or one the API did not accept.
    130Interrupted.

    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 listThe 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-secretYour webhook endpoints. A secret is shown once, when an endpoint is added or rotated.
    enrichednow webhooks run-secret / deliveries / resend <delivery-id> / verifyThe secret for one run's --webhook-url, what was sent, sending one again, checking a signature.
    enrichednow usageUnits used over a period.
    enrichednow healthIs 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.