curl --request POST \
--url https://api.getanyapi.com/v1/run/seo.backlinks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"limit": 10,
"target": "ahrefs.com"
}
'import requests
url = "https://api.getanyapi.com/v1/run/seo.backlinks"
payload = {
"limit": 10,
"target": "ahrefs.com"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({limit: 10, target: 'ahrefs.com'})
};
fetch('https://api.getanyapi.com/v1/run/seo.backlinks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.getanyapi.com/v1/run/seo.backlinks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'limit' => 10,
'target' => 'ahrefs.com'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.getanyapi.com/v1/run/seo.backlinks"
payload := strings.NewReader("{\n \"limit\": 10,\n \"target\": \"ahrefs.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.getanyapi.com/v1/run/seo.backlinks")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"limit\": 10,\n \"target\": \"ahrefs.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getanyapi.com/v1/run/seo.backlinks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"limit\": 10,\n \"target\": \"ahrefs.com\"\n}"
response = http.request(request)
puts response.read_body{
"costUsd": 123,
"items": 123,
"output": {
"data": {
"backlinks": [
{
"urlFrom": "<string>",
"anchor": "<string>",
"attributes": [
"<string>"
],
"dofollow": true,
"domainFrom": "<string>",
"domainFromCountry": "<string>",
"domainFromIp": "<string>",
"domainFromIsIp": true,
"domainFromPlatformTypes": [
"<string>"
],
"domainFromRank": 123,
"domainTo": "<string>",
"firstSeenUtc": 123,
"groupCount": 123,
"imageAlt": "<string>",
"imageUrl": "<string>",
"isBroken": true,
"isIndirect": true,
"isLost": true,
"isNew": true,
"isOriginal": true,
"lastSeenUtc": 123,
"linkType": "<string>",
"linksCount": 123,
"pageFromEncoding": "<string>",
"pageFromExternalLinks": 123,
"pageFromInternalLinks": 123,
"pageFromKeywordsTop10": 123,
"pageFromKeywordsTop100": 123,
"pageFromKeywordsTop3": 123,
"pageFromLanguage": "<string>",
"pageFromRank": 123,
"pageFromSize": 123,
"pageFromStatusCode": 123,
"pageFromTitle": "<string>",
"previousSeenUtc": 123,
"rank": 123,
"semanticLocation": "<string>",
"spamScore": 123,
"textAfter": "<string>",
"textBefore": "<string>",
"tldFrom": "<string>",
"urlTo": "<string>",
"urlToRedirectTarget": "<string>",
"urlToSpamScore": 123,
"urlToStatusCode": 123
}
],
"totalCount": 123
},
"found": true,
"reason": "not_found"
},
"provider": "<string>",
"replayed": true,
"hint": "<string>",
"jqError": "<string>",
"resultId": "<string>",
"source": {
"artworkKey": "<string>",
"id": "<string>",
"kind": "anonymous",
"name": "<string>"
}
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}SEO Backlinks
Get AnyAPI SEO backlinks for a domain or URL, each with the linking page, anchor text, dofollow flag, authority rank, spam score, and first and last seen dates as normalized JSON.
Price: billed per result - $28.80 per 1,000 requests base + $0.05 per 1,000 results, capped at $76.80 per 1,000 requests.
Routing: one lane serves this API today, so a failed attempt has nowhere to fail over to. Payment outcome follows the selected rail’s settlement policy.
Catalog: SEO Backlinks pricing and uptime - live USD price, lane routing, and measured 30-day uptime. Every Seo endpoint.
curl --request POST \
--url https://api.getanyapi.com/v1/run/seo.backlinks \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"limit": 10,
"target": "ahrefs.com"
}
'import requests
url = "https://api.getanyapi.com/v1/run/seo.backlinks"
payload = {
"limit": 10,
"target": "ahrefs.com"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({limit: 10, target: 'ahrefs.com'})
};
fetch('https://api.getanyapi.com/v1/run/seo.backlinks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.getanyapi.com/v1/run/seo.backlinks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'limit' => 10,
'target' => 'ahrefs.com'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.getanyapi.com/v1/run/seo.backlinks"
payload := strings.NewReader("{\n \"limit\": 10,\n \"target\": \"ahrefs.com\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.getanyapi.com/v1/run/seo.backlinks")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"limit\": 10,\n \"target\": \"ahrefs.com\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.getanyapi.com/v1/run/seo.backlinks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"limit\": 10,\n \"target\": \"ahrefs.com\"\n}"
response = http.request(request)
puts response.read_body{
"costUsd": 123,
"items": 123,
"output": {
"data": {
"backlinks": [
{
"urlFrom": "<string>",
"anchor": "<string>",
"attributes": [
"<string>"
],
"dofollow": true,
"domainFrom": "<string>",
"domainFromCountry": "<string>",
"domainFromIp": "<string>",
"domainFromIsIp": true,
"domainFromPlatformTypes": [
"<string>"
],
"domainFromRank": 123,
"domainTo": "<string>",
"firstSeenUtc": 123,
"groupCount": 123,
"imageAlt": "<string>",
"imageUrl": "<string>",
"isBroken": true,
"isIndirect": true,
"isLost": true,
"isNew": true,
"isOriginal": true,
"lastSeenUtc": 123,
"linkType": "<string>",
"linksCount": 123,
"pageFromEncoding": "<string>",
"pageFromExternalLinks": 123,
"pageFromInternalLinks": 123,
"pageFromKeywordsTop10": 123,
"pageFromKeywordsTop100": 123,
"pageFromKeywordsTop3": 123,
"pageFromLanguage": "<string>",
"pageFromRank": 123,
"pageFromSize": 123,
"pageFromStatusCode": 123,
"pageFromTitle": "<string>",
"previousSeenUtc": 123,
"rank": 123,
"semanticLocation": "<string>",
"spamScore": 123,
"textAfter": "<string>",
"textBefore": "<string>",
"tldFrom": "<string>",
"urlTo": "<string>",
"urlToRedirectTarget": "<string>",
"urlToSpamScore": 123,
"urlToStatusCode": 123
}
],
"totalCount": 123
},
"found": true,
"reason": "not_found"
},
"provider": "<string>",
"replayed": true,
"hint": "<string>",
"jqError": "<string>",
"resultId": "<string>",
"source": {
"artworkKey": "<string>",
"id": "<string>",
"kind": "anonymous",
"name": "<string>"
}
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}{
"error": "<string>",
"code": "<string>",
"payment": {
"costUsd": 1,
"rail": "<string>",
"settlementState": "charged_undelivered"
},
"requestId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}Authorizations
Your AnyAPI key as a Bearer token.
Headers
Optional wallet idempotency key, scoped to this customer for 24 hours. When the gateway honors the key, this synchronous in-process execution can continue after the caller disconnects, bounded by its execution deadline. A completed replayable result charges normally exactly once and can be replayed without another provider run or charge. A pending duplicate returns 409 idempotency_in_progress; reuse with different request semantics returns 409 idempotency_conflict.
1 - 255Query Parameters
Optional. Comma-separated keys (dotted paths like author.name descend into nested objects) to keep on each result item. Keys are matched relative to each result item after the data/items envelope is unwrapped, not against the top-level response envelope, so use jq to reshape the whole envelope. Shrinks the response without changing cost.
Optional. Cap the number of result rows returned; a _truncated note reports how many were withheld so you can page via the API's own limit. Does not change cost.
x >= 0Optional. Return only a structural outline (top-level keys, item counts, and per-field byte sizes) instead of the full data. Does not change cost.
Optional. A jq expression applied to the result envelope; its output replaces output (multiple outputs collect into an array). Reshape freely, e.g. jq=.data | {title, description, md: .markdown[:3500]}. Runs sandboxed with a 250ms / 2MB budget; on failure the full result is returned with a jqError. Does not change cost.
Optional. The most you are willing to pay for this one request, in US dollars (for example 0.05). Any route that would charge more than this is not used, so a request only ever runs on something you can afford. If nothing is available at or below your amount, the request is refused before it runs, nothing is charged, and the message tells you the cheapest price per request so you can raise it. Leave it out to accept the normal price.
Body
Optional, default true. When false, only the sources listed in source may serve; the request is refused with no charge if none of them can. When true, the listed sources are tried first and any other source may serve after them, at the normal price.
Optional. Source ids to skip for this request, taken from this endpoint's lanes[].source.id. The cheapest remaining source serves and the price is that of the dearest remaining source. An id that does not serve this endpoint, or that is also in source, is rejected as invalid input with no charge; skipping every source is rejected the same way.
1Count links pointing at the target's subdomains as well as the target itself.
Maximum number of backlinks to return. You are billed per returned result, so a lower limit costs less.
1 <= x <= 1000as_is returns every backlink; one_per_domain keeps one backlink per linking domain; one_per_anchor keeps one per anchor text.
as_is, one_per_domain, one_per_anchor Optional; omit it and routing is unchanged, with the cheapest source serving. Prefer sources whose typical response time (median over the trailing 30 days, as published on this endpoint's lane health) is under this many milliseconds; among those, the cheapest serves. This can raise your price: when the cheapest source misses the target, a faster and dearer one serves, and you are quoted and charged its price. If no source is that fast the request is still served, by whichever source offers the best speed for its price - it is never refused for being slow. Sources we have not timed are tried last. This is a preference, not a guarantee: the median describes past requests and is not a ceiling on this one, and it excludes any wait this request itself asks for. On a paginated walk it applies to the first page only: later pages stay with the source that page chose, at the price it was quoted.
x >= 1Optional. Source ids to prefer, in order, taken from this endpoint's lanes[].source.id in /catalog or /apis. Omit it and the cheapest source serves, with automatic failover. Listed sources are tried first in the order given, then the others, unless allowFallbacks is false. A single source with allowFallbacks false is served only by that source at its price, quoted and charged exactly, with no failover. The price is that of the dearest source that may serve. An id that does not serve this endpoint is rejected as invalid input with no charge; a listed source that is not serving right now is refused with no charge, so omit source to be served by another. On a paginated walk, later pages must include the source that served page one, or omit source.
1Return backlinks that are live now, ones that have been lost, or both.
live, lost, all Response
Normalized result.
USD charged on the original run. On a replay this value is echoed for parity; the replay itself is free.
Number of result rows returned. For per-result SKUs the per-item cost is charged against this count; for input-priced SKUs the charge is per submitted input, independent of this count.
Normalized output, or null when the replay payload was not retained.
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Backlinks pointing at the target. Populated whenever the provider has data for the entity.
Hide child attributes
Hide child attributes
URL of the page carrying the link. Populated whenever the provider has data for the entity.
Anchor text of the link.
rel attributes on the link, such as nofollow, sponsored, ugc, or noopener.
True when the link passes ranking value (no nofollow attribute). Populated whenever the provider has data for the entity.
Domain of the linking page. Populated whenever the provider has data for the entity.
Country code of the linking domain.
IP address of the linking domain.
True when the linking host is a bare IP address.
Site types of the linking domain, such as blogs, news, or ecommerce.
Authority rank of the linking domain on a 0-1000 scale.
Domain of the target URL.
When the backlink was first seen. UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
Backlinks grouped into this one by the requested mode.
Alt text of the linked image, for image links.
URL of the linked image, for image links.
True when the target URL no longer resolves.
True when the link reaches the target through a redirect or canonical.
True when the backlink has been removed.
True when the backlink appeared since the previous crawl.
True when the link was present on the first crawl of the linking page.
When the backlink was last seen. UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
How the link is placed: anchor, image, redirect, canonical, alternate, and so on.
Identical links from the linking page to the target.
Character encoding of the linking page.
Outbound links on the linking page.
Internal links on the linking page.
Keywords the linking page ranks in the top 10 for.
Keywords the linking page ranks in the top 100 for.
Keywords the linking page ranks in the top 3 for.
Language code of the linking page.
Authority rank of the linking page on a 0-1000 scale.
Size of the linking page in bytes.
HTTP status the linking page returned.
Title of the linking page.
When the backlink was seen on the crawl before the last one. UTC epoch timestamp in seconds (Unix time). Multiply by 1000 for a JS Date in milliseconds.
Authority rank of the backlink on a 0-1000 scale.
Page section holding the link, such as article, footer, or nav.
Spam score of the backlink on a 0-100 scale.
Text right after the link on the linking page.
Text right before the link on the linking page.
Top-level domain of the linking page.
Target URL the link points at. Populated whenever the provider has data for the entity.
Where the target URL redirects, if it does.
Spam score of the target URL on a 0-100 scale.
HTTP status the target URL returned.
Total backlinks matching the request, before the limit. Populated whenever the provider has data for the entity.
Present only when found is false, and says why there is no result. not_found: the source states the target does not exist, or returned nothing for it. A found: false answer is a successful call, not an error, and costUsd is what it actually cost.
not_found Always "AnyAPI".
True when this response replays the durable result of an earlier run without billing or upstream execution.
Optional one-line nudge, absent when there is nothing to say. large_result: suggests the fields/max_items/summary/jq controls for a big response. paging_unavailable: means this result came from a source that cannot return a nextCursor, so it may be INCOMPLETE and cannot be continued - re-run with requireFields: ["nextCursor"] to be served only by a source that can page, which may cost more per request.
Present only when a jq expression failed; output then carries the full unshaped result and this explains why the reshape did not apply.
Opaque handle to the full unshaped result, cached ~15 min. Re-shape it for free (fields/max_items/summary/jq) via GET /v1/results/{id}, no re-billing. Absent when the result was too large to cache.
The source that served this run. Pass its id back as source to prefer it again, or as ignoreSources to avoid it. Absent when no source identity applies to the run.
Hide child attributes
Hide child attributes
Key for this source's artwork.
Stable identifier for this source.
anonymous is a stable identity for an unattributed source; brand names the dataset that supplies the data.
anonymous, brand Display name for this source.