# Semrush Backlinks API

> Backlinks pointing to a domain or URL, with source URL, target URL and anchor text.

Source: https://www.sandbase.ai/apis/semrush/backlinks
API reference: https://www.sandbase.ai/apis/semrush/backlinks/docs

## Facts

- Provider: Semrush
- Type: Data API
- Endpoint: `POST https://api.sandbase.ai/v1/api/semrush/backlinks`
- 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/backlinks` 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 Backlinks API?

Send a POST request to https://api.sandbase.ai/v1/api/semrush/backlinks 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 Backlinks 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 Backlinks 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 Backlinks API return?

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

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

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

Backlinks pointing to a domain or URL, with source URL, target URL and anchor text.

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/backlinks" \
  -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.
