Find competitors with PHP
Get the top 100 competitors, look-alikes, and similar companies for any domain in PHP — ranked with match scores, relationship types, and confidence, powered by SimilarIQ's AI research engine. One key, ~60 seconds to first result.
Quick start
<?php
$ch = curl_init("https://similariq.ai/api/v1/search");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 180,
CURLOPT_HTTPHEADER => [
"X-API-Key: " . getenv("SIMILARIQ_API_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode(["domain" => "salesforce.com", "limit" => 100]),
]);
$data = json_decode(curl_exec($ch), true);
foreach (array_slice($data["competitors"], 0, 10) as $c) {{
echo "{{$c['rank']}}. {{$c['company']}} ({{$c['domain']}}) — {{$c['matchScore']}}\n";
}}
Works in any framework — Laravel, Symfony, WordPress plugins — anywhere PHP can make an HTTP request.
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 PHP?
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.