Backlinks
Anchor Text Analysis
Analyze anchor text distribution across backlinks to any domain.
POST
from $0.04/call/v1/seo/backlinks/anchorsUsage
const res = await fetch('https://api.yepapi.com/v1/seo/backlinks/anchors', {
method: 'POST',
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({ target: 'vercel.com', limit: 50 }),
});
const { data } = await res.json();
console.log(data);curl -X POST https://api.yepapi.com/v1/seo/backlinks/anchors \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"target": "vercel.com", "limit": 50}'Request Body
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
target | string | Yes | Domain to analyze anchor text for | — |
limit | number | No | Maximum number of anchors to return | 100 |
Response
{
"ok": true,
"data": {
"target": "vercel.com",
"anchors": [
{
"anchor": "",
"backlinks": 556528,
"dofollow": 0,
"firstSeen": "2019-01-16",
"lastSeen": "",
"referringDomains": 3809
},
{
"anchor": "Vercel",
"backlinks": 662041,
"dofollow": 0,
"firstSeen": "2020-02-17",
"lastSeen": "",
"referringDomains": 13396
}
]
}
}Response Fields
| Field | Type | Description |
|---|---|---|
ok | boolean | Whether the request succeeded |
data.target | string | The domain that was analyzed |
data.anchors | array | List of anchor texts used in backlinks to the target |
data.anchors[].anchor | string | The anchor text string (empty string for image or non-text links) |
data.anchors[].backlinks | number | Total number of backlinks using this anchor text |
data.anchors[].dofollow | number | Number of dofollow backlinks using this anchor text |
data.anchors[].firstSeen | string | Date this anchor text was first discovered |
data.anchors[].lastSeen | string | Date this anchor text was last confirmed (empty if still active) |
data.anchors[].referringDomains | number | Number of unique domains using this anchor text |
Under the Hood
Returns anchor text distribution sorted by backlink count.