Backlinq API Documentation
Four GET endpoints. Predictable JSON responses. Everything you need to add backlink data to your application.
First request in 3 minutes
Make your first request
Pass your API key in the X-API-Key header to fetch data for any domain.
Build with real data
Wire backlink intelligence into your app, reporting tool, or workflow.
API key authentication
Every request requires your API key passed in the X-API-Key header. Grab your key from the dashboard after signing up.
Keep your key private
Never put your API key in frontend code or public repositories. Store it in an environment variable on your server.
Four endpoints. All the data.
Domain Authority
/domain-authorityReturns the Domain Authority score, PageRank, Global Rank, and Spam Score for any domain.
Parameters
domain(string)requiredconst res = await fetch( "https://api.backlinq.dev/v1/domain-authority?domain=github.com", { headers: { "X-API-Key": "<your-key>" }} ); const data = await res.json(); console.log(data);
{ "domain": "github.com", "pageRank": 9, "rank": "1", "domainAuthority": 92, "spamScore": 1, "linksIn": 4821032 }
Backlink Profile
/backlinksReturns the total backlink count, referring domain count, and the top linking URLs for a domain.
Parameters
domain(string)requiredlimit(number)const res = await fetch( "https://api.backlinq.dev/v1/backlinks?domain=github.com&limit=20", { headers: { "X-API-Key": "<your-key>" }} ); const data = await res.json(); console.log(data);
{ "domain": "github.com", "pageRank": 9, "rank": "1", "domainAuthority": "not fetched — use domain-authority endpoint", "totalBacklinks": 8432109, "referringDomainsCount": 142876, "topBacklinks": [ { "url": "https://stackoverflow.com/q/2003505", "timestamp": "2024-11-15T08:32:00Z", "status": "200", "source": "moz" } ] }
Referring Domains
/referring-domainsReturns a deduplicated list of external domains that link to the target domain.
Parameters
domain(string)requiredlimit(number)const res = await fetch( "https://api.backlinq.dev/v1/referring-domains?domain=github.com&limit=50", { headers: { "X-API-Key": "<your-key>" }} ); const data = await res.json(); console.log(data);
{ "domain": "github.com", "totalFound": 2, "referringDomains": [ { "domain": "stackoverflow.com", "exampleUrl": "https://stackoverflow.com/q/2003505", "lastSeen": "2024-11-20T14:22:00Z", "source": "moz", "backlinkCount": 1842, "dofollowCount": 1614 } ] }
Compare Domains
/compareCompares 2 to 5 domains side by side, ranked by Domain Authority.
Parameters
domains(string)requiredconst res = await fetch( "https://api.backlinq.dev/v1/compare?domains=github.com,gitlab.com,bitbucket.org", { headers: { "X-API-Key": "<your-key>" }} ); const data = await res.json(); console.log(data);
{ "domains": ["github.com", "gitlab.com", "bitbucket.org"], "leaderboard": [ { "rank": 1, "domain": "github.com", "pageRank": 9, "domainAuthority": 92, "spamScore": 1 }, { "rank": 2, "domain": "gitlab.com", "pageRank": 8, "domainAuthority": 84, "spamScore": 2 }, { "rank": 3, "domain": "bitbucket.org", "pageRank": 7, "domainAuthority": 79, "spamScore": 3 } ] }
Status codes and errors
Invalid parameters or missing required fields.
Invalid or missing API key.
Quota exceeded. Upgrade your plan or wait for the reset.
Something went wrong on our end. Try again shortly.
Error Response Format
{ "error": true, "code": "RATE_LIMIT_EXCEEDED", "message": "Request quota exceeded. Upgrade your plan at /dashboard/billing" }
Plan quotas and limits
| Plan | Requests/Month | Price | Overage |
|---|---|---|---|
| Free | 30 | $0 | — |
| Pro | 500 | $49/mo | $0.10/request |
| Scale | 2,500 | $129/mo | $0.10/request |
Note: Quotas reset at the start of each billing cycle. Free tier accounts are cut off at 30 requests with no overage. Paid plans continue past their quota at $0.10 per additional request.
Official SDKs
The REST API is ready today. Native SDK packages are on the roadmap for the languages below.
JavaScript/TypeScript
Coming SoonPython
Coming SoonGo
Coming SoonRuby
Coming SoonPHP
Coming SoonRust
Coming SoonReady to start building?
Get your API key and make your first request in minutes. No credit card required.