# Semrush Referring Domains API

> Domains linking to the target, with the number of backlinks from each domain.

Source: https://www.sandbase.ai/apis/semrush/referring-domains
API reference: https://www.sandbase.ai/apis/semrush/referring-domains/docs

## Facts

- Provider: Semrush
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/semrush/referring-domains`
- Price: From $0.08 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/referring-domains` with `Authorization: Bearer $SANDBASE_API_KEY` and the parameters as a JSON body.

| Parameter | Type | Required | Allowed values |
| --- | --- | --- | --- |
| `target` | string | yes |  |
| `target_type` | string | yes |  |

## FAQ

### How do I use the Semrush Referring Domains API?

Send a POST request to https://api.sandbase.ai/v1/api/semrush/referring-domains 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 Referring Domains API cost?

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

### What parameters does the Semrush Referring Domains API accept?

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

### What does the Semrush Referring Domains API return?

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

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

No. Semrush Referring Domains 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 Referring Domains API

Domains linking to the target, with the number of backlinks from each domain.

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/referring-domains" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"target": "nike.com", "target_type": "root_domain"}'
```

#### Parameters

| Name | Type | Required | Description |
|---|---|---|---|
| `target` | string | Yes | Domain, subdomain or URL to analyze, e.g. "nike.com". |
| `target_type` | string | Yes | Type of target: "root_domain", "domain" or "url". |

#### Pricing

Billed at the actual cost of each call, about $0.08 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.
