API Documentation

Backlinks API

Query backlink summary metrics and top backlink details by domain.

Test API

Endpoint

GET https://api.goanyapi.com/api/v1/backlink

With the current configuration, each successful request costs 4 credits.

Authentication

Authorization: Bearer YOUR_API_KEY

Request Parameters

ParameterTypeRequiredDescription
domainstringYesTarget domain, for example sitedata.dev

Example

GET /api/v1/backlink?domain=sitedata.dev
Authorization: Bearer YOUR_API_KEY

Response 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

FieldDescription
data.endpointFixed value: backlink
data.costCreditsCredits consumed by this request; 3 by default and configurable in the admin center
data.remainingCreditsRemaining credits after deduction
data.query.domainNormalized queried domain
data.domainTarget domain
data.backlinksTotal number of backlinks
data.dofollowBacklinksNumber of dofollow backlinks
data.dofollowRefdomainsReferring domains with dofollow links
data.domainRatingDomain Rating of the target domain
data.refdomainsTotal number of referring domains
data.topBacklinksArray of top backlink records
FieldDescription
anchorAnchor text
domainRatingDomain Rating of the referring domain
inRawWhether the link exists in raw HTML
inRenderedWhether the link exists in the rendered page
redirectChainRedirect chain; each item contains url and redirectCode
textPre / textPostText context before and after the link
titleReferring page title
urlFromReferring page URL
urlToDestination URL

Billing

The current request cost follows the API configuration shown on this page.

  • The active cost is controlled by Backlink Credits Cost in the admin center
  • No credits are deducted when the request fails or returns a non-zero business code