# Head-to-Head Competitor Analysis | AI Website Comparison (`harmony_labs/head-to-head-competitor-analysis`) Actor

Crawl two websites and get an AI-written comparison: positioning, pricing, feature gaps, messaging, and key differences. 1–3 min, $10, no API keys.

- **URL**: https://apify.com/harmony\_labs/head-to-head-competitor-analysis.md
- **Developed by:** [Harmony](https://apify.com/harmony_labs) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $7,000.00 / 1,000 comparison reports

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Head-to-Head Competitor Analysis

Paste your URL and a competitor's URL. Get back a structured 7-section comparative intelligence brief in 1–3 minutes: positioning, pricing, feature gaps, messaging, tech stack, and the 3–5 most important differences. Neutral and factual — not a sales doc. Styled HTML output (print to PDF, screenshot for a deck). $10 per report. No API keys. MCP-compatible.

### What you get

One competitive analysis report per run.
One neutral, factual comparison report per run (not a sales doc, not two separate analyses). Covers:

- Overview — what each company does, who they serve, where they overlap
- Positioning — value props, target audience, key differentiators, side by side
- Pricing — tiers, entry price, free tier, billing model, and what each signals
- Feature & Capability Comparison — what each offers that the other doesn't, named specifically
- Messaging & Tone — CTAs, social proof, brand voice, and what the differences imply
- Tech Stack — CMS, hosting, analytics, marketing tools detected on each site
- Key Differences — the 3-5 most important differences, factual and unranked
- Styled HTML output — open it in a browser, print to PDF, or screenshot for a deck

### How it works

1. Crawls up to N pages of each website (prioritizing /about, /team, /portfolio, /pricing, /features, /customers, /case-studies, /insights, /research, /blog)
2. Sends both content sets to an LLM for comparative analysis
3. 3. Returns the full report as plain text in the dataset, plus a styled HTML report in the key-value store

### Input

| Field | Description |
|---|---|
| Your Website | Your company's website URL |
| Competitor Website | The competitor's website URL |
| Industry | Optional context for the analysis |
| Max Pages (per site) | Pages to crawl on each site (default: 10) |
| LLM Model | Gemini 2.5 Flash or Claude Haiku 4.5 |

### Output

One row in the dataset:

| Field | Description |
|---|---|
| my\_url | Your website URL |
| competitor\_url | Competitor's website URL |
| report | Full comparative report (styled HTML & plain text) |

### Use cases

- Competitive analysis — understand where you and a competitor differ
- Product strategy — find feature gaps and positioning differences
- Sales preparation — know how a competitor frames their offering before a call
- Due diligence — compare positioning, pricing, and features before a meeting or investment decision
- Board/investor updates — quarterly competitive landscape comparison
- Market research — understand how two players in the same space differentiate
- Weekly competitor monitoring — schedule a run per competitor and track how the comparison shifts over time

### Pricing

Pay-per-event: $10 per completed comparison report.

### Notes

- No API keys required — LLM calls via Apify's OpenRouter proxy
- Average run time: 1-3 minutes (two sites + competitive analysis)
- Sites that block scraping (Cloudflare, bot detection) may return fewer pages. The report reflects only what was successfully crawled.
- Tech stack detection is based on visible signals in page content (scripts, meta tags, mentions). For deeper fingerprinting, pair with a dedicated tool like BuiltWith.

### MCP

Add this to your MCP client config to use this actor as a tool:

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com/?tools=harmony_labs/head-to-head-competitor-analysis"
    }
  }
}

```

### Related

- [Competitor Intelligence Report](https://apify.com/harmony_labs/competitor-intel-report) — single-site deep dive (tech stack, customers, positioning)
- [AI Keyword Generator](https://apify.com/harmony_labs/ai-keyword-generator) — seed keyword in, ranked long-tail keywords out

# Actor input Schema

## `myUrl` (type: `string`):

Your company's website URL

## `competitorUrl` (type: `string`):

The competitor's website URL to compare against

## `industry` (type: `string`):

Optional: specify the industry for better context

## `maxPagesPerSite` (type: `integer`):

Number of pages to crawl on each website

## `model` (type: `string`):

Which model to use

## Actor input object example

```json
{
  "myUrl": "https://stripe.com",
  "competitorUrl": "https://ramp.com",
  "maxPagesPerSite": 5,
  "model": "anthropic/claude-haiku-4.5"
}
```

# Actor output Schema

## `reportUrl` (type: `string`):

No description

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "myUrl": "https://stripe.com",
    "competitorUrl": "https://ramp.com"
};

// Run the Actor and wait for it to finish
const run = await client.actor("harmony_labs/head-to-head-competitor-analysis").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "myUrl": "https://stripe.com",
    "competitorUrl": "https://ramp.com",
}

# Run the Actor and wait for it to finish
run = client.actor("harmony_labs/head-to-head-competitor-analysis").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "myUrl": "https://stripe.com",
  "competitorUrl": "https://ramp.com"
}' |
apify call harmony_labs/head-to-head-competitor-analysis --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,harmony_labs/head-to-head-competitor-analysis"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/zqVgmlBZvutqBod1l/builds/ABVBFykVUyVDrbQ9k/openapi.json
