Find competitors with TypeScript
Get the top 100 competitors, look-alikes, and similar companies for any domain in TypeScript — ranked with match scores, relationship types, and confidence, powered by SimilarIQ's AI research engine. One key, ~60 seconds to first result.
Quick start
npm install similariq-sdk
import {{ SimilarIQ, type Competitor }} from "similariq-sdk";
const iq = new SimilarIQ({{ apiKey: process.env.SIMILARIQ_API_KEY! }});
const result = await iq.search("salesforce.com", {{ limit: 100 }});
const direct: Competitor[] = result.competitors.filter(c => c.type === "Direct");
console.log(`${{direct.length}} direct competitors found`);
The package ships complete .d.ts definitions — Competitor, SearchResult, bulk job types, and typed SimilarIQError with an HTTP status.
What you get back
{
"domain": "salesforce.com",
"totalCompetitors": 100,
"creditsRemaining": 199,
"competitors": [
{ "rank": 1, "company": "HubSpot", "domain": "hubspot.com",
"matchScore": 97, "type": "Direct", "confidence": 94,
"likelyCompetitor": true }
]
}
Frequently asked questions
What does SimilarIQ return for a domain?
The top 100 competitors, look-alikes, and similar companies for any company website — each with a 0-100 match score, relationship type (Direct, Indirect, Adjacent, Emerging), a confidence score, and a likely-competitor flag. Results come from SimilarIQ's proprietary AI research engine, cross-validated across multiple intelligence sources.
How much does it cost?
1 credit per search (up to 100 results). Credits come with plans from $6/month ($0.10-$0.24 per search) or pay-as-you-go at $0.50 per search. Free trial searches on signup. Failed searches auto-refund, and reading past results is always free.
How do I get an API key?
Sign up at similariq.ai, then create a key under API Keys in the app. The same sk-live- key works for the REST API, SDKs, CLI, and MCP server.
How long does a search take in TypeScript?
30-60 seconds — the engine researches the domain live across multiple intelligence sources and cross-validates before ranking. Set your HTTP timeout to at least 120 seconds, or use the bulk endpoints for large lists.