# Semrush Domain Competitors

Returns the domain summary plus the competitor map Semrush shows for it: up to 7 competitors with monthly visits, Authority Score, and rank. Domains without coverage return covered=false (never charged).

- **Documentation:** [https://scrappa.co/docs/semrush-api/semrush_domain_competitors](https://scrappa.co/docs/semrush-api/semrush_domain_competitors)
- **API group:** Semrush API
- **Endpoint:** `GET https://scrappa.co/api/semrush/domain/competitors`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `domain` | string | Yes | Root domain or subdomain to analyze (e.g. semrush.com). Subdomains resolve to their root domain where Semrush only tracks the root. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/semrush/domain/competitors?domain=semrush.com"
```

## Example response

```json
{
    "search_parameters": {
        "engine": "semrush_domain_competitors",
        "domain": "semrush.com"
    },
    "covered": true,
    "summary": {
        "domain": "semrush.com",
        "authority_score": 78,
        "visits": 24500000
    },
    "competitors": [
        {
            "domain": "ahrefs.com",
            "authority_score": 80,
            "visits": 19800000
        }
    ]
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A parameter failed validation. |
| 503 | Semrush Upstream Unavailable | Semrush could not be fetched through the configured proxy pool after the full attempt budget. Never charged. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
