Backlinks API
Query backlink summary metrics and top backlink details by domain.
Endpoint
GET https://api.goanyapi.com/api/v1/backlinkWith the current configuration, each successful request costs 4 credits.
Authentication
Authorization: Bearer YOUR_API_KEYRequest Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
domain | string | Yes | Target domain, for example sitedata.dev |
Example
GET /api/v1/backlink?domain=sitedata.dev
Authorization: Bearer YOUR_API_KEYResponse Example
{
"code": "ok",
"message": "ok",
"data": {
"endpoint": "backlink",
"remainingCredits": 97,
"query": {
"domain": "sitedata.dev"
},
"domain": "sitedata.dev",
"backlinks": 884,
"dofollowBacklinks": 14,
"dofollowRefdomains": 12,
"domainRating": 18,
"refdomains": 388,
"topBacklinks": [
{
"anchor": "SiteData",
"domainRating": 97,
"inRaw": false,
"inRendered": true,
"redirectChain": [],
"textPost": "domain intelligence tools",
"textPre": "Explore",
"title": "Example developer resources",
"urlFrom": "https://example.org/resources",
"urlTo": "https://sitedata.dev/"
}
]
}
}Response Fields
| Field | Description |
|---|---|
data.endpoint | Fixed value: backlink |
data.costCredits | Credits consumed by this request; 3 by default and configurable in the admin center |
data.remainingCredits | Remaining credits after deduction |
data.query.domain | Normalized queried domain |
data.domain | Target domain |
data.backlinks | Total number of backlinks |
data.dofollowBacklinks | Number of dofollow backlinks |
data.dofollowRefdomains | Referring domains with dofollow links |
data.domainRating | Domain Rating of the target domain |
data.refdomains | Total number of referring domains |
data.topBacklinks | Array of top backlink records |
topBacklinks Fields
| Field | Description |
|---|---|
anchor | Anchor text |
domainRating | Domain Rating of the referring domain |
inRaw | Whether the link exists in raw HTML |
inRendered | Whether the link exists in the rendered page |
redirectChain | Redirect chain; each item contains url and redirectCode |
textPre / textPost | Text context before and after the link |
title | Referring page title |
urlFrom | Referring page URL |
urlTo | Destination URL |
Billing
The current request cost follows the API configuration shown on this page.
- The active cost is controlled by
Backlink Credits Costin the admin center - No credits are deducted when the request fails or returns a non-zero business code