{
    "openapi": "3.1.0",
    "info": {
        "title": "apibacklinks API",
        "version": "1.0.0",
        "description": "Backlinks, referring domains, anchors and Domain Rating from our own web link index. JSON, UTF-8, CORS enabled.\n\nEach call is charged once from your prepaid dollar balance, whatever the number of rows (up to 1,000); domain, overview, stats and suggest are free. A call the index fails to answer, or one rejected as invalid, is not charged. Every paid answer carries `_balance` (cost and remaining balance in dollars) and the headers X-Credits-Cost / X-Credits-Remaining (micro-dollars).\n\nSign up for a key with $100 of free credit: https://apibacklinks.com/register.php · Documentation: https://apibacklinks.com/api-docs.php · MCP server: https://apibacklinks.com/mcp",
        "contact": {
            "url": "https://apibacklinks.com/api-docs.php"
        },
        "termsOfService": "https://apibacklinks.com/legal/terms.php"
    },
    "servers": [
        {
            "url": "https://apibacklinks.com/api/v1"
        }
    ],
    "security": [
        {
            "ApiKeyHeader": []
        },
        {
            "BearerAuth": []
        }
    ],
    "tags": [
        {
            "name": "Account"
        },
        {
            "name": "Domain reports"
        },
        {
            "name": "Bulk & multi-domain"
        },
        {
            "name": "Search & global"
        }
    ],
    "paths": {
        "/account": {
            "get": {
                "operationId": "account",
                "tags": [
                    "Account"
                ],
                "summary": "Balance of the key owner and the per-minute limit. Free.",
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/Ok"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/ping": {
            "get": {
                "operationId": "ping",
                "tags": [
                    "Account"
                ],
                "summary": "Checks a key. Free.",
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/Ok"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/health": {
            "get": {
                "operationId": "health",
                "tags": [
                    "Account"
                ],
                "summary": "Service status. No key required.",
                "security": [],
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/Ok"
                    }
                }
            }
        },
        "/overview": {
            "get": {
                "operationId": "overview",
                "tags": [
                    "Domain reports"
                ],
                "summary": "Full backlink profile of a domain: summary (backlinks, referring domains, dofollow, DR, first/last seen), top referring domains, anchors and pages.",
                "description": "Full backlink profile of a domain: summary (backlinks, referring domains, dofollow, DR, first/last seen), top referring domains, anchors and pages.\n\nPrice: free (a key is still required on /api/v1).",
                "x-price-usd": 0,
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "description": "Target domain without protocol, e.g. moz.com (www. is stripped). ?domain= is accepted too.",
                        "schema": {
                            "type": "string"
                        },
                        "example": "moz.com"
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/Ok"
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "402": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    },
                    "503": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/domain": {
            "get": {
                "operationId": "domain",
                "tags": [
                    "Domain reports"
                ],
                "summary": "Compact metrics of one domain: DR, backlinks, referring domains, dofollow backlinks and referring domains, first/last seen.",
                "description": "Compact metrics of one domain: DR, backlinks, referring domains, dofollow backlinks and referring domains, first/last seen.\n\nPrice: free (a key is still required on /api/v1).",
                "x-price-usd": 0,
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "description": "Target domain without protocol, e.g. moz.com (www. is stripped). ?domain= is accepted too.",
                        "schema": {
                            "type": "string"
                        },
                        "example": "moz.com"
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/Ok"
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "402": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    },
                    "503": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/refdomains": {
            "get": {
                "operationId": "refdomains",
                "tags": [
                    "Domain reports"
                ],
                "summary": "Referring domains with links, linking pages, dofollow links, donor DR and first/last seen.",
                "description": "Referring domains with links, linking pages, dofollow links, donor DR and first/last seen.\n\nPrice: $0.0002 per call.",
                "x-price-usd": 0.0002,
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "description": "Target domain without protocol, e.g. moz.com (www. is stripped). ?domain= is accepted too.",
                        "schema": {
                            "type": "string"
                        },
                        "example": "moz.com"
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "required": false,
                        "description": "Sort column.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "links",
                                "dr",
                                "pages",
                                "dofollow",
                                "first_seen",
                                "last_seen",
                                "domain"
                            ]
                        },
                        "example": "links"
                    },
                    {
                        "name": "order",
                        "in": "query",
                        "required": false,
                        "description": "Sort direction.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "desc",
                                "asc"
                            ]
                        },
                        "example": "desc"
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "description": "Page number, 1-based.",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        },
                        "example": 1
                    },
                    {
                        "name": "per",
                        "in": "query",
                        "required": false,
                        "description": "Rows per page (10–1000).",
                        "schema": {
                            "type": "integer",
                            "minimum": 10,
                            "maximum": 1000
                        },
                        "example": 50
                    },
                    {
                        "name": "follow",
                        "in": "query",
                        "required": false,
                        "description": "Only dofollow or only nofollow links.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "dofollow",
                                "nofollow"
                            ]
                        }
                    },
                    {
                        "name": "min_dr",
                        "in": "query",
                        "required": false,
                        "description": "Minimum Domain Rating of the referring domain (0–100).",
                        "schema": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "max_dr",
                        "in": "query",
                        "required": false,
                        "description": "Maximum Domain Rating of the referring domain (0–100).",
                        "schema": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "min_links",
                        "in": "query",
                        "required": false,
                        "description": "Minimum number of links.",
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        }
                    },
                    {
                        "name": "tld",
                        "in": "query",
                        "required": false,
                        "description": "Referring domain zone, e.g. org or co.uk.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "domain",
                        "in": "query",
                        "required": false,
                        "description": "Referring domain contains this.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "required": false,
                        "description": "Last seen on or after this date, YYYY-MM-DD.",
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "required": false,
                        "description": "Last seen on or before this date, YYYY-MM-DD.",
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/Ok"
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "402": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    },
                    "503": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/backlinks": {
            "get": {
                "operationId": "backlinks",
                "tags": [
                    "Domain reports"
                ],
                "summary": "Individual backlinks (source page, anchor, rel, link type, dates), or grouped by referring domain (group=domain) or source page (group=page). Deep pagination stops at 50,000 rows.",
                "description": "Individual backlinks (source page, anchor, rel, link type, dates), or grouped by referring domain (group=domain) or source page (group=page). Deep pagination stops at 50,000 rows.\n\nPrice: $0.0002 per call.",
                "x-price-usd": 0.0002,
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "description": "Target domain without protocol, e.g. moz.com (www. is stripped). ?domain= is accepted too.",
                        "schema": {
                            "type": "string"
                        },
                        "example": "moz.com"
                    },
                    {
                        "name": "group",
                        "in": "query",
                        "required": false,
                        "description": "Group rows by referring domain or by source page.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "domain",
                                "page"
                            ]
                        }
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "required": false,
                        "description": "Sort column.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "last_seen",
                                "dr",
                                "anchor",
                                "src_domain",
                                "link_type",
                                "links",
                                "pages",
                                "dofollow",
                                "first_seen"
                            ]
                        },
                        "example": "last_seen"
                    },
                    {
                        "name": "order",
                        "in": "query",
                        "required": false,
                        "description": "Sort direction.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "desc",
                                "asc"
                            ]
                        },
                        "example": "desc"
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "description": "Page number, 1-based.",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        },
                        "example": 1
                    },
                    {
                        "name": "per",
                        "in": "query",
                        "required": false,
                        "description": "Rows per page (10–1000).",
                        "schema": {
                            "type": "integer",
                            "minimum": 10,
                            "maximum": 1000
                        },
                        "example": 50
                    },
                    {
                        "name": "follow",
                        "in": "query",
                        "required": false,
                        "description": "Only dofollow or only nofollow links.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "dofollow",
                                "nofollow"
                            ]
                        }
                    },
                    {
                        "name": "rel",
                        "in": "query",
                        "required": false,
                        "description": "rel attribute contains this, e.g. ugc or sponsored.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "ltype",
                        "in": "query",
                        "required": false,
                        "description": "Link type, e.g. href or img.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "atype",
                        "in": "query",
                        "required": false,
                        "description": "Anchor type.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "empty",
                                "image",
                                "url",
                                "branded",
                                "generic"
                            ]
                        }
                    },
                    {
                        "name": "oneper",
                        "in": "query",
                        "required": false,
                        "description": "1 = one link per referring domain.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "1"
                            ]
                        }
                    },
                    {
                        "name": "anchor",
                        "in": "query",
                        "required": false,
                        "description": "Anchor text contains this (case-insensitive).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "src",
                        "in": "query",
                        "required": false,
                        "description": "Referring domain contains this.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "src_exact",
                        "in": "query",
                        "required": false,
                        "description": "Exactly this referring domain.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "target",
                        "in": "query",
                        "required": false,
                        "description": "Target URL contains this.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "title",
                        "in": "query",
                        "required": false,
                        "description": "Title of the linking page contains this.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "tld",
                        "in": "query",
                        "required": false,
                        "description": "Referring domain zone, e.g. org or co.uk.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "min_dr",
                        "in": "query",
                        "required": false,
                        "description": "Minimum Domain Rating of the referring domain (0–100).",
                        "schema": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "from",
                        "in": "query",
                        "required": false,
                        "description": "Last seen on or after this date, YYYY-MM-DD.",
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    },
                    {
                        "name": "to",
                        "in": "query",
                        "required": false,
                        "description": "Last seen on or before this date, YYYY-MM-DD.",
                        "schema": {
                            "type": "string",
                            "format": "date"
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/Ok"
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "402": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    },
                    "503": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/anchors": {
            "get": {
                "operationId": "anchors",
                "tags": [
                    "Domain reports"
                ],
                "summary": "Anchor texts of links to the domain with counts, dofollow counts and share.",
                "description": "Anchor texts of links to the domain with counts, dofollow counts and share.\n\nPrice: $0.0002 per call.",
                "x-price-usd": 0.0002,
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "description": "Target domain without protocol, e.g. moz.com (www. is stripped). ?domain= is accepted too.",
                        "schema": {
                            "type": "string"
                        },
                        "example": "moz.com"
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "required": false,
                        "description": "Sort column.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "cnt",
                                "dofollow",
                                "anchor"
                            ]
                        },
                        "example": "cnt"
                    },
                    {
                        "name": "order",
                        "in": "query",
                        "required": false,
                        "description": "Sort direction.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "desc",
                                "asc"
                            ]
                        },
                        "example": "desc"
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "description": "Page number, 1-based.",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        },
                        "example": 1
                    },
                    {
                        "name": "per",
                        "in": "query",
                        "required": false,
                        "description": "Rows per page (10–1000).",
                        "schema": {
                            "type": "integer",
                            "minimum": 10,
                            "maximum": 1000
                        },
                        "example": 50
                    },
                    {
                        "name": "anchor",
                        "in": "query",
                        "required": false,
                        "description": "Anchor text contains this (case-insensitive).",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "follow",
                        "in": "query",
                        "required": false,
                        "description": "Only dofollow or only nofollow links.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "dofollow",
                                "nofollow"
                            ]
                        }
                    },
                    {
                        "name": "min_links",
                        "in": "query",
                        "required": false,
                        "description": "Minimum number of links.",
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/Ok"
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "402": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    },
                    "503": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/anchor_cloud": {
            "get": {
                "operationId": "anchor_cloud",
                "tags": [
                    "Domain reports"
                ],
                "summary": "Top anchors with their share, from the pre-aggregated table (fast).",
                "description": "Top anchors with their share, from the pre-aggregated table (fast).\n\nPrice: $0.0002 per call.",
                "x-price-usd": 0.0002,
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "description": "Target domain without protocol, e.g. moz.com (www. is stripped). ?domain= is accepted too.",
                        "schema": {
                            "type": "string"
                        },
                        "example": "moz.com"
                    },
                    {
                        "name": "per",
                        "in": "query",
                        "required": false,
                        "description": "Rows per page (10–1000).",
                        "schema": {
                            "type": "integer",
                            "minimum": 10,
                            "maximum": 1000
                        },
                        "example": 50
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/Ok"
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "402": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    },
                    "503": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/toppages": {
            "get": {
                "operationId": "toppages",
                "tags": [
                    "Domain reports"
                ],
                "summary": "Most linked pages of the domain with backlinks and dofollow backlinks.",
                "description": "Most linked pages of the domain with backlinks and dofollow backlinks.\n\nPrice: $0.0002 per call.",
                "x-price-usd": 0.0002,
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "description": "Target domain without protocol, e.g. moz.com (www. is stripped). ?domain= is accepted too.",
                        "schema": {
                            "type": "string"
                        },
                        "example": "moz.com"
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "required": false,
                        "description": "Sort column.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "backlinks",
                                "dofollow"
                            ]
                        },
                        "example": "backlinks"
                    },
                    {
                        "name": "order",
                        "in": "query",
                        "required": false,
                        "description": "Sort direction.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "desc",
                                "asc"
                            ]
                        },
                        "example": "desc"
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "description": "Page number, 1-based.",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        },
                        "example": 1
                    },
                    {
                        "name": "per",
                        "in": "query",
                        "required": false,
                        "description": "Rows per page (10–1000).",
                        "schema": {
                            "type": "integer",
                            "minimum": 10,
                            "maximum": 1000
                        },
                        "example": 50
                    },
                    {
                        "name": "url",
                        "in": "query",
                        "required": false,
                        "description": "Target URL contains this.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "follow",
                        "in": "query",
                        "required": false,
                        "description": "Only pages with dofollow links.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "dofollow"
                            ]
                        }
                    },
                    {
                        "name": "min_backlinks",
                        "in": "query",
                        "required": false,
                        "description": "Minimum backlinks of the page.",
                        "schema": {
                            "type": "integer",
                            "minimum": 0
                        }
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/Ok"
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "402": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    },
                    "503": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/dr_distribution": {
            "get": {
                "operationId": "dr_distribution",
                "tags": [
                    "Domain reports"
                ],
                "summary": "Number of referring domains in each Domain Rating band (0-14 … 70-100).",
                "description": "Number of referring domains in each Domain Rating band (0-14 … 70-100).\n\nPrice: $0.0001 per call.",
                "x-price-usd": 0.0001,
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "description": "Target domain without protocol, e.g. moz.com (www. is stripped). ?domain= is accepted too.",
                        "schema": {
                            "type": "string"
                        },
                        "example": "moz.com"
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/Ok"
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "402": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    },
                    "503": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/tld_breakdown": {
            "get": {
                "operationId": "tld_breakdown",
                "tags": [
                    "Domain reports"
                ],
                "summary": "Referring domains grouped by domain zone.",
                "description": "Referring domains grouped by domain zone.\n\nPrice: $0.0001 per call.",
                "x-price-usd": 0.0001,
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "description": "Target domain without protocol, e.g. moz.com (www. is stripped). ?domain= is accepted too.",
                        "schema": {
                            "type": "string"
                        },
                        "example": "moz.com"
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/Ok"
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "402": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    },
                    "503": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/bulk_dr": {
            "get": {
                "operationId": "bulk_dr",
                "tags": [
                    "Bulk & multi-domain"
                ],
                "summary": "DR, backlinks and referring domains for up to 2000 domains in one call (unknown domains come back with zeros). Also POST with the list in the body. Alias: authority.",
                "description": "DR, backlinks and referring domains for up to 2000 domains in one call (unknown domains come back with zeros). Also POST with the list in the body. Alias: authority.\n\nPrice: $0.0001 per call.",
                "x-price-usd": 0.0001,
                "parameters": [
                    {
                        "name": "domains",
                        "in": "query",
                        "required": true,
                        "description": "Up to 2000 domains separated by commas, spaces or new lines (POST: one per line in the body).",
                        "schema": {
                            "type": "string"
                        },
                        "example": "github.com,moz.com,nytimes.com"
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/Ok"
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "402": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    },
                    "503": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            },
            "post": {
                "operationId": "bulk_dr_post",
                "tags": [
                    "Bulk & multi-domain"
                ],
                "summary": "Same as GET, with the domain list in the request body (one per line).",
                "description": "DR, backlinks and referring domains for up to 2000 domains in one call (unknown domains come back with zeros). Also POST with the list in the body. Alias: authority.\n\nPrice: $0.0001 per call.",
                "x-price-usd": 0.0001,
                "parameters": [],
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/Ok"
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "402": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    },
                    "503": {
                        "$ref": "#/components/responses/Error"
                    }
                },
                "requestBody": {
                    "required": true,
                    "content": {
                        "text/plain": {
                            "schema": {
                                "type": "string"
                            },
                            "example": "github.com\nmoz.com\nnytimes.com"
                        }
                    }
                }
            }
        },
        "/compare": {
            "get": {
                "operationId": "compare",
                "tags": [
                    "Bulk & multi-domain"
                ],
                "summary": "Side-by-side DR, backlinks, referring domains and dofollow for up to 20 domains.",
                "description": "Side-by-side DR, backlinks, referring domains and dofollow for up to 20 domains.\n\nPrice: $0.0001 per call.",
                "x-price-usd": 0.0001,
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "description": "Up to 20 domains, comma separated.",
                        "schema": {
                            "type": "string"
                        },
                        "example": "semalt.com,moz.com,ahrefs.com"
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/Ok"
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "402": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    },
                    "503": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/intersect": {
            "get": {
                "operationId": "intersect",
                "tags": [
                    "Bulk & multi-domain"
                ],
                "summary": "Link intersect: referring domains that link to at least two of 2–10 domains, by overlap and links.",
                "description": "Link intersect: referring domains that link to at least two of 2–10 domains, by overlap and links.\n\nPrice: $0.0002 per call.",
                "x-price-usd": 0.0002,
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "description": "2 to 10 domains, comma separated.",
                        "schema": {
                            "type": "string"
                        },
                        "example": "moz.com,ahrefs.com,semrush.com"
                    },
                    {
                        "name": "per",
                        "in": "query",
                        "required": false,
                        "description": "Rows per page (10–1000).",
                        "schema": {
                            "type": "integer",
                            "minimum": 10,
                            "maximum": 1000
                        },
                        "example": 50
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/Ok"
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "402": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    },
                    "503": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/linkgap": {
            "get": {
                "operationId": "linkgap",
                "tags": [
                    "Bulk & multi-domain"
                ],
                "summary": "Link gap: referring domains of your competitors that do not link to you, with how many competitors each one links to (from the top-100 referring domains of each domain).",
                "description": "Link gap: referring domains of your competitors that do not link to you, with how many competitors each one links to (from the top-100 referring domains of each domain).\n\nPrice: $0.0002 per call.",
                "x-price-usd": 0.0002,
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "description": "Your domain.",
                        "schema": {
                            "type": "string"
                        },
                        "example": "moz.com"
                    },
                    {
                        "name": "vs",
                        "in": "query",
                        "required": true,
                        "description": "1 to 10 competitor domains, comma separated.",
                        "schema": {
                            "type": "string"
                        },
                        "example": "ahrefs.com,semrush.com"
                    },
                    {
                        "name": "min_hits",
                        "in": "query",
                        "required": false,
                        "description": "Only donors linking to at least this many competitors.",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        }
                    },
                    {
                        "name": "min_dr",
                        "in": "query",
                        "required": false,
                        "description": "Minimum Domain Rating of the referring domain (0–100).",
                        "schema": {
                            "type": "integer",
                            "minimum": 0,
                            "maximum": 100
                        }
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "required": false,
                        "description": "Sort column.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "hits",
                                "dr",
                                "links"
                            ]
                        },
                        "example": "hits"
                    },
                    {
                        "name": "per",
                        "in": "query",
                        "required": false,
                        "description": "Rows per page (10–1000).",
                        "schema": {
                            "type": "integer",
                            "minimum": 10,
                            "maximum": 1000
                        },
                        "example": 50
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/Ok"
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "402": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    },
                    "503": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/search": {
            "get": {
                "operationId": "search",
                "tags": [
                    "Search & global"
                ],
                "summary": "Full-text search over a 15-million-link sample of the index by anchor, page title or URL.",
                "description": "Full-text search over a 15-million-link sample of the index by anchor, page title or URL.\n\nPrice: $0.0003 per call.",
                "x-price-usd": 0.0003,
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "description": "Search text.",
                        "schema": {
                            "type": "string"
                        },
                        "example": "seo tools"
                    },
                    {
                        "name": "field",
                        "in": "query",
                        "required": false,
                        "description": "Where to search.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "anchor",
                                "title",
                                "url"
                            ]
                        },
                        "example": "anchor"
                    },
                    {
                        "name": "follow",
                        "in": "query",
                        "required": false,
                        "description": "Only dofollow links.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "dofollow"
                            ]
                        }
                    },
                    {
                        "name": "ltype",
                        "in": "query",
                        "required": false,
                        "description": "Link type, e.g. href or img.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "tld",
                        "in": "query",
                        "required": false,
                        "description": "Referring domain zone, e.g. org or co.uk.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "domain",
                        "in": "query",
                        "required": false,
                        "description": "Only links pointing to this domain.",
                        "schema": {
                            "type": "string"
                        }
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "required": false,
                        "description": "Sort column.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "seen_date"
                            ]
                        },
                        "example": "seen_date"
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "description": "Page number, 1-based.",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        },
                        "example": 1
                    },
                    {
                        "name": "per",
                        "in": "query",
                        "required": false,
                        "description": "Rows per page (10–1000).",
                        "schema": {
                            "type": "integer",
                            "minimum": 10,
                            "maximum": 1000
                        },
                        "example": 50
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/Ok"
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "402": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    },
                    "503": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/keyword": {
            "get": {
                "operationId": "keyword",
                "tags": [
                    "Search & global"
                ],
                "summary": "Sites that receive links with exactly this anchor text, ranked by relevance (DR × links), links or DR.",
                "description": "Sites that receive links with exactly this anchor text, ranked by relevance (DR × links), links or DR.\n\nPrice: $0.0003 per call.",
                "x-price-usd": 0.0003,
                "parameters": [
                    {
                        "name": "kw",
                        "in": "query",
                        "required": true,
                        "description": "Exact anchor text.",
                        "schema": {
                            "type": "string"
                        },
                        "example": "backlink checker"
                    },
                    {
                        "name": "sort",
                        "in": "query",
                        "required": false,
                        "description": "Sort column.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "rel",
                                "links",
                                "dr"
                            ]
                        },
                        "example": "rel"
                    },
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "description": "Page number, 1-based.",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        },
                        "example": 1
                    },
                    {
                        "name": "per",
                        "in": "query",
                        "required": false,
                        "description": "Rows per page (10–1000).",
                        "schema": {
                            "type": "integer",
                            "minimum": 10,
                            "maximum": 1000
                        },
                        "example": 50
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/Ok"
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "402": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    },
                    "503": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/top": {
            "get": {
                "operationId": "top",
                "tags": [
                    "Search & global"
                ],
                "summary": "Domains with Domain Rating 90 and above.",
                "description": "Domains with Domain Rating 90 and above.\n\nPrice: $0.0001 per call.",
                "x-price-usd": 0.0001,
                "parameters": [
                    {
                        "name": "page",
                        "in": "query",
                        "required": false,
                        "description": "Page number, 1-based.",
                        "schema": {
                            "type": "integer",
                            "minimum": 1
                        },
                        "example": 1
                    },
                    {
                        "name": "per",
                        "in": "query",
                        "required": false,
                        "description": "Rows per page (10–1000).",
                        "schema": {
                            "type": "integer",
                            "minimum": 10,
                            "maximum": 1000
                        },
                        "example": 50
                    },
                    {
                        "name": "order",
                        "in": "query",
                        "required": false,
                        "description": "Sort direction.",
                        "schema": {
                            "type": "string",
                            "enum": [
                                "desc",
                                "asc"
                            ]
                        },
                        "example": "desc"
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/Ok"
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "402": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    },
                    "503": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/suggest": {
            "get": {
                "operationId": "suggest",
                "tags": [
                    "Search & global"
                ],
                "summary": "Domain autocomplete (at least 2 characters).",
                "description": "Domain autocomplete (at least 2 characters).\n\nPrice: free (a key is still required on /api/v1).",
                "x-price-usd": 0,
                "parameters": [
                    {
                        "name": "q",
                        "in": "query",
                        "required": true,
                        "description": "Beginning of a domain name.",
                        "schema": {
                            "type": "string"
                        },
                        "example": "sema"
                    }
                ],
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/Ok"
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "402": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    },
                    "503": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        },
        "/stats": {
            "get": {
                "operationId": "stats",
                "tags": [
                    "Search & global"
                ],
                "summary": "Totals of the dataset.",
                "description": "Totals of the dataset.\n\nPrice: free (a key is still required on /api/v1).",
                "x-price-usd": 0,
                "parameters": [],
                "responses": {
                    "200": {
                        "$ref": "#/components/responses/Ok"
                    },
                    "400": {
                        "$ref": "#/components/responses/Error"
                    },
                    "401": {
                        "$ref": "#/components/responses/Error"
                    },
                    "402": {
                        "$ref": "#/components/responses/Error"
                    },
                    "403": {
                        "$ref": "#/components/responses/Error"
                    },
                    "429": {
                        "$ref": "#/components/responses/Error"
                    },
                    "503": {
                        "$ref": "#/components/responses/Error"
                    }
                }
            }
        }
    },
    "components": {
        "securitySchemes": {
            "ApiKeyHeader": {
                "type": "apiKey",
                "in": "header",
                "name": "X-API-Key"
            },
            "BearerAuth": {
                "type": "http",
                "scheme": "bearer"
            }
        },
        "schemas": {
            "Balance": {
                "type": "object",
                "properties": {
                    "cost_usd": {
                        "type": "number",
                        "description": "what this call cost"
                    },
                    "usd": {
                        "type": "number",
                        "description": "balance left"
                    }
                }
            },
            "Ok": {
                "type": "object",
                "required": [
                    "ok"
                ],
                "additionalProperties": true,
                "properties": {
                    "ok": {
                        "type": "boolean",
                        "const": true
                    },
                    "rows": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "additionalProperties": true
                        }
                    },
                    "total": {
                        "type": "integer"
                    },
                    "page": {
                        "type": "integer"
                    },
                    "per": {
                        "type": "integer"
                    },
                    "_balance": {
                        "$ref": "#/components/schemas/Balance"
                    }
                }
            },
            "Error": {
                "type": "object",
                "required": [
                    "ok",
                    "error"
                ],
                "properties": {
                    "ok": {
                        "type": "boolean",
                        "const": false
                    },
                    "error": {
                        "type": "string"
                    },
                    "code": {
                        "type": "string",
                        "examples": [
                            "missing_api_key",
                            "invalid_api_key",
                            "account_blocked",
                            "insufficient_balance",
                            "rate_limited",
                            "bad_request",
                            "not_found",
                            "method_not_allowed",
                            "service_unavailable"
                        ]
                    }
                }
            }
        },
        "responses": {
            "Ok": {
                "description": "Success",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Ok"
                        }
                    }
                }
            },
            "Error": {
                "description": "Error (not charged)",
                "content": {
                    "application/json": {
                        "schema": {
                            "$ref": "#/components/schemas/Error"
                        }
                    }
                }
            }
        }
    }
}