# Semrush Domain vs Domain API

> Keyword gap between domains: shared and unique keywords with each domain's ranking position.

Source: https://www.sandbase.ai/apis/semrush/domain-vs-domain
API reference: https://www.sandbase.ai/apis/semrush/domain-vs-domain/docs

## Facts

- Provider: Semrush
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/semrush/domain-vs-domain`
- Price: From $0.16 per call
- Capabilities: api, semrush, seo
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

`POST https://api.sandbase.ai/v1/api/semrush/domain-vs-domain` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `database` | string | yes |  |
| `domains` | string | yes |  |

## FAQ

### How do I use the Semrush Domain vs Domain API?

Send a POST request to https://api.sandbase.ai/v1/api/semrush/domain-vs-domain with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.

### How much does the Semrush Domain vs Domain API cost?

From $0.16 per call, billed from your SandBase balance. You are only charged for calls you make; there is no subscription.

### What parameters does the Semrush Domain vs Domain API accept?

Required: database (string) and domains (string). The Parameters table and the Playground on this page list every field.

### What does the Semrush Domain vs Domain API return?

A JSON response returned in the same HTTP request (synchronous).

### Do I need a Semrush developer account or API key?

No. Semrush Domain vs Domain runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Semrush API access separately.

## README

### Semrush Domain vs Domain API

Keyword gap between domains: shared and unique keywords with each domain's ranking position.

The result is returned in `outputs[0].data` as the official Semrush API response, unchanged.

#### Request

```bash
curl -X POST "https://api.sandbase.ai/v1/api/semrush/domain-vs-domain" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"database": "us", "domains": "*|or|nike.com|*|or|adidas.com"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `database` | string | Yes | Regional Semrush database, e.g. "us", "uk", "de". |
| `domains` | string | Yes | Domains to compare in Semrush syntax, e.g. "*|or|nike.com|*|or|adidas.com". |

#### Pricing

Billed at the actual cost of each call, about $0.16 for a typical request; the cost grows with the number of rows returned. Searches with no results are billed at their actual cost. Failed calls are not charged.
