Start free →
Features

SDKs and CLI

Official Node and Python clients and a terminal command for search, bulk and export. How it works, what it costs and how to use it from the app, the API or an AI agent.

Updated 2026-11-25 · 2 free searches, no card · $0.0025 per look-alike

Quick answer

SimilarIQ ships an official Node SDK, an official Python SDK and a command-line tool. All three wrap the same API: search one domain for up to 100 ranked look-alikes, run bulk jobs over a file of domains, and export results as JSON or CSV. They use one sk-live- key and the same $0.25-per-search balance as the web app.

What the SDKs and CLI are and the problem they solve

The SimilarIQ API is a small set of HTTP endpoints, and you can call it with nothing but an HTTP client. But every team that does so writes the same code: set the auth header, wait for a search that takes up to a minute, start a bulk job, poll it, download the file, handle the error codes.

The official clients remove that repetition. The Node SDK and the Python SDK give you one method per task. The CLI gives you one command per task, for the cases where you do not want to write a program at all. Both SDKs avoid third-party dependencies, so adding them to a project does not drag in a dependency tree to audit.

They exist for the developer half of the product's audience: engineers building enrichment jobs, internal tools and agents, and operators who are comfortable in a terminal and want a CSV without opening a browser.

Nothing about them is a separate product. They call the same endpoints you could call yourself, against the same account, so anything you do with a client is visible in the web app and anything you do in the web app is readable from a client.

How they work: installation and method names

Install the Node SDK with npm install similariq-sdk. It needs Node 18 or later, has zero dependencies and ships TypeScript types. Install the Python SDK with pip install similariq. It needs Python 3.8 or later and uses only the standard library. Install the CLI globally with npm install -g similariq.

The two SDKs expose the same operations with each language's naming style. Exact signatures and return shapes are documented at /sdk. The methods are:

  • search: one domain in, up to 100 ranked look-alikes out. 1 credit.
  • bulk: start a bulk job. 1 credit per domain.
  • bulkWait or bulk_wait: wait for a bulk job to finish.
  • bulkDownload or bulk_download: fetch a finished job's results.
  • history and results: list past searches and re-read one. Free.
  • companies: read My Companies. Free.
  • saveCompany or save_company, and savedCompanies or saved_companies: the watchlist. Free.
  • share and balance: create a share link and check remaining credits. Free.

The CLI commands

Run similariq login to authenticate, or set the SIMILARIQ_API_KEY environment variable, which is the better choice in CI and on servers. After that, similariq search stripe.com --limit 100 runs a search and prints the ranked list.

Add --json for machine-readable output or --csv for a spreadsheet-ready table. For volume, similariq bulk domains.txt --wait --out results.csv reads a file of domains, starts a bulk job, waits for it and writes one combined file.

The read commands mirror the app. similariq history lists past searches. similariq results followed by a search ID re-opens one. similariq companies prints My Companies. similariq save followed by a domain adds to the watchlist, and similariq saved lists it. similariq share followed by a search ID creates a public read-only link. similariq balance shows remaining credits. Full reference is at /cli.

A worked example

A RevOps analyst has a text file of 500 closed-won customer domains and wants look-alikes for every one. She runs similariq balance to confirm there is enough credit, then similariq bulk domains.txt --wait --out results.csv.

The job costs one credit per domain: 500 credits, or $125. It returns up to 50,000 look-alike rows in one file. Each row has a company, a domain, a match score, a type and a confidence score. She filters the CSV to high-scoring Direct and Adjacent rows and loads the result into the CRM.

An engineer doing the same thing inside a service would use the SDK instead: call bulk with the list, bulkWait until the job completes, and bulkDownload to get the results. In Python the last two are bulk_wait and bulk_download. The cost is identical, because the price is per domain searched, not per client used.

If the file were smaller, the arithmetic scales down in a straight line: 20 domains is $5.00 and 200 domains is $50. There is no setup fee for a bulk job. You need enough balance to cover one credit per domain.

Getting a key from the app

All three clients authenticate with an API key created in the SimilarIQ web app. Sign up, which includes 2 free searches and requires no credit card, and create a key. It starts with sk-live- and is shown once, so store it right away.

That one key works across the SDKs, the CLI, the REST API and the MCP server. If it is exposed, revoke it in the app and issue a new one. Because every key spends from the shared account balance, give each system its own key so that revoking one does not interrupt the others.

On a laptop, similariq login is the quick route. In automation, set SIMILARIQ_API_KEY so that no interactive step is needed and the key never appears in a command line or a log.

What it costs

The clients are free to install and add no fee. You pay for searches: $0.0025 per look-alike, 100 per search, so $0.25 per search, with one credit per domain in a bulk job. A search costs the same whether --limit is 10 or 100.

Read operations are free. history, results, companies, saved, share and balance never spend credits, in either SDK or in the CLI. A failed search returns its credit automatically. The minimum deposit is $10 and the balance does not expire, which suits scripts that run in bursts a few times a year. See pay-as-you-go pricing for the full model.

Pitfalls to avoid

Do not treat search as a quick call. It is a fresh research pass that takes roughly 30 to 60 seconds. In a web request handler, that will exceed most timeouts, so run it in a background job. In a loop over many domains, use bulk, which is asynchronous by design.

Do not commit the key. Put SIMILARIQ_API_KEY in your secret store and read it from the environment. A key in a public repository is a direct line to your balance, limited only by the monthly cap you set.

Do not lower the limit to save money. It will not. Request 100, keep the full result, and filter locally by score, type and confidence. And do not parse human-readable CLI output in scripts. Use --json or --csv, which exist for that purpose.

Pairing the clients with other features

The CLI and the app share one account, so they combine well. Run a bulk search from the terminal, then open My Companies in the browser to sort and filter everything it found. Or search in the app, copy the search ID, and pull the result into a script with similariq results.

The SDKs fit anywhere you already have code. A scheduled job can call balance first, stop if credit is low, then call search for each new account created that day. A sales tool can call share to produce a link a rep can paste into an email. Language-specific walkthroughs are available, including one for Python.

A third pairing is with an agent. An agent that is able to run shell commands can use the CLI as well as a person can, though the hosted MCP server is the more direct route for assistants.

When the SDKs and CLI are not the right tool

If you work in a language other than JavaScript, TypeScript or Python, call the REST API directly. It is one POST with a JSON body, and the OpenAPI spec at /openapi.json can generate a client for most languages.

If the consumer is an AI assistant, the hosted MCP server is a better fit than wrapping an SDK, because the assistant discovers the ten tools on its own. And if you need contacts, revenue, headcount or technographics, no SimilarIQ client returns them. The clients return the same result fields the API does, and the join to other data is yours to build on the domain.

Frequently asked questions

How do I install the SimilarIQ SDK?

For Node, run npm install similariq-sdk. It requires Node 18 or later and has zero dependencies. For Python, run pip install similariq. It requires Python 3.8 or later and uses only the standard library.

How do I install and use the SimilarIQ CLI?

Run npm install -g similariq, then similariq login. After that, similariq search stripe.com --limit 100 runs a search. Add --json or --csv to change the output format.

Can I run a bulk search from the terminal?

Yes. similariq bulk domains.txt --wait --out results.csv reads a file of domains, starts a bulk job, waits for it to finish and writes the combined results. It costs one credit per domain.

Do the SDKs cost extra?

No. The SDKs and CLI are free to install. Searches made through them cost the same $0.25 as searches in the app or through the API, and they draw on the same balance.

Does the Node SDK support TypeScript?

Yes. The Node SDK ships with TypeScript types and has zero dependencies. It runs on Node 18 and later.

Can I use an environment variable for the API key?

Yes. The CLI reads the key from SIMILARIQ_API_KEY, which is the recommended approach for CI and servers. For interactive use on your own machine, similariq login handles authentication.

Which SDK methods are free to call?

The read and organize methods are free: history, results, companies, the save and saved-companies methods, share and balance. Only search and bulk spend credits.

One website in. 100 look-alikes out.

2 free searches on signup, no card. Then $0.0025 per look-alike, with no subscription, no seats and no contract.