{
  "openapi": "3.0.1",
  "info": {
    "title": "Backlink Checker",
    "description": "Backlink checker: backlinks, referring domains and anchor texts for any site or page, with dofollow, rank, spam score and first-seen dates. Also link totals for long lists of sites, link gaps against competitors and monthly history back to 2019.",
    "version": "0.1",
    "x-build-id": "cOqAlVva0rOjgpznS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dami_studio~backlink-checker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dami_studio-backlink-checker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/dami_studio~backlink-checker/runs": {
      "post": {
        "operationId": "runs-sync-dami_studio-backlink-checker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/dami_studio~backlink-checker/run-sync": {
      "post": {
        "operationId": "run-sync-dami_studio-backlink-checker",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "targets"
        ],
        "properties": {
          "mode": {
            "title": "What to get",
            "enum": [
              "backlinks",
              "referringDomains",
              "anchors",
              "overview",
              "bulk",
              "pages",
              "networks",
              "competitors",
              "linkGap",
              "pageLinkGap",
              "history",
              "trend",
              "newLost"
            ],
            "type": "string",
            "description": "Pick one report. Each row is one link, one linking site, one anchor, one page or one site, depending on the report.",
            "default": "backlinks"
          },
          "targets": {
            "title": "Sites or pages",
            "type": "array",
            "description": "Domains (example.com), subdomains (blog.example.com) or full page addresses (https://example.com/pricing). One per line. In the two link gap reports these are your own sites, the ones the rows leave out.",
            "items": {
              "type": "string"
            }
          },
          "targetScope": {
            "title": "What counts as the site",
            "enum": [
              "auto",
              "domain",
              "host",
              "page",
              "prefix"
            ],
            "type": "string",
            "description": "Auto treats a bare domain as the whole site with its subdomains, and an address with a path as that one page.",
            "default": "auto"
          },
          "competitors": {
            "title": "Competitors (link gap reports)",
            "type": "array",
            "description": "Up to 20 sites or pages whose links you want. The rows are sites, or pages, that link to them and not to your sites.",
            "items": {
              "type": "string"
            }
          },
          "gapMatch": {
            "title": "Competitors to match",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "Any: the site links to at least one competitor. All: it links to every one of them.",
            "default": "any"
          },
          "excludeLinkingTo": {
            "title": "Also leave out sites linking to",
            "type": "array",
            "description": "Link gap reports: sites whose linkers you already have or don't want. Up to 10 together with your own sites.",
            "items": {
              "type": "string"
            }
          },
          "maxRowsPerTarget": {
            "title": "Rows per site",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Most rows a site can return in the list reports. In the link gap reports, most rows in all. Big sites have millions of backlinks, so set this to what you need.",
            "default": 100
          },
          "maxItems": {
            "title": "Maximum rows in all",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "The run stops once it has delivered this many rows with data, across all sites.",
            "default": 1000
          },
          "startOffset": {
            "title": "Skip the first rows",
            "minimum": 0,
            "maximum": 20000,
            "type": "integer",
            "description": "Start each list this far down, for example to pick up where an earlier run stopped.",
            "default": 0
          },
          "linkStatus": {
            "title": "Links to count",
            "enum": [
              "live",
              "lost",
              "all"
            ],
            "type": "string",
            "description": "Lost links are ones the crawler found before and no longer finds.",
            "default": "live"
          },
          "dofollowOnly": {
            "title": "Dofollow links only",
            "type": "boolean",
            "description": "Leave out links marked nofollow.",
            "default": false
          },
          "minSourceRank": {
            "title": "Minimum rank of the linking site",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "On the rank scale set below, 0 to 100 unless you pick 0 to 1000."
          },
          "maxSpamScore": {
            "title": "Maximum spam score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "0 to 100. Links scoring above this are left out."
          },
          "brokenLinks": {
            "title": "Broken links",
            "enum": [
              "include",
              "exclude",
              "only"
            ],
            "type": "string",
            "description": "A broken link points at a page that answers with an error (4xx or 5xx). Those are the ones worth asking a site to fix.",
            "default": "include"
          },
          "linkChange": {
            "title": "New or lost links",
            "enum": [
              "any",
              "newLatest",
              "newWithin",
              "lostWithin"
            ],
            "type": "string",
            "description": "For tracking a link profile from run to run.",
            "default": "any"
          },
          "changedWithinDays": {
            "title": "N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "The window for \"First seen in the last N days\" and \"Lost in the last N days\".",
            "default": 30
          },
          "linkTypes": {
            "title": "Link types",
            "type": "array",
            "description": "Leave empty for every type.",
            "items": {
              "type": "string",
              "enum": [
                "text",
                "image",
                "redirect",
                "canonical",
                "alternate",
                "meta",
                "link"
              ],
              "enumTitles": [
                "Text links",
                "Image links",
                "Redirects",
                "Canonical tags",
                "Alternate tags",
                "Meta tags",
                "Link tags"
              ]
            }
          },
          "sourceCountries": {
            "title": "Countries of the linking sites",
            "type": "array",
            "description": "Two-letter codes such as US or DE. Works with Backlinks and Link gap by page.",
            "items": {
              "type": "string"
            }
          },
          "sourceLanguage": {
            "title": "Language of the linking page",
            "type": "string",
            "description": "Two-letter code such as en or de."
          },
          "anchorContains": {
            "title": "Anchor text contains",
            "type": "string",
            "description": "Only links whose anchor text holds these words, in any letter case."
          },
          "excludeIndirect": {
            "title": "Leave out redirect and canonical links",
            "type": "boolean",
            "description": "Links that reach the site through a redirect or a canonical tag rather than pointing at it directly.",
            "default": false
          },
          "includeInternal": {
            "title": "Count links from its own subdomains",
            "type": "boolean",
            "description": "Off: a link from blog.example.com to example.com is not counted as a backlink.",
            "default": false
          },
          "includeSubdomains": {
            "title": "Count links to subdomains",
            "type": "boolean",
            "description": "For a whole domain: links to blog.example.com count for example.com too.",
            "default": true
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "auto",
              "rank",
              "sourceRank",
              "sourcePageRank",
              "backlinks",
              "referringDomains",
              "referringMainDomains",
              "referringPages",
              "intersections",
              "anchor",
              "wordCount",
              "firstSeen",
              "lastSeen",
              "lostDate",
              "spamScore",
              "brokenBacklinks"
            ],
            "type": "string",
            "description": "Auto keeps the strongest links first. Not every sort fits every report; the run says so if one doesn't.",
            "default": "auto"
          },
          "sortDirection": {
            "title": "Sort direction",
            "enum": [
              "desc",
              "asc"
            ],
            "type": "string",
            "description": "Which end of the sort comes first.",
            "default": "desc"
          },
          "grouping": {
            "title": "Group links (Backlinks)",
            "enum": [
              "all",
              "onePerSite",
              "onePerAnchor",
              "custom"
            ],
            "type": "string",
            "description": "One link per linking site gives a quick list of who links to you.",
            "default": "all"
          },
          "customGroupField": {
            "title": "Group by (custom grouping)",
            "enum": [
              "sourceDomain",
              "anchor",
              "sourceCountry",
              "sourceTld",
              "sourcePageLanguage",
              "sourcePageEncoding",
              "linkType",
              "sourcePageStatusCode",
              "semanticLocation"
            ],
            "type": "string",
            "description": "The column to group on when \"Group links\" is set to a number per value.",
            "default": "sourceDomain"
          },
          "customGroupLimit": {
            "title": "Links per group",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "For custom grouping: how many links each value keeps.",
            "default": 1
          },
          "customFilters": {
            "title": "Custom filters",
            "type": "array",
            "description": "Conditions on the result columns, for example [[\"sourceDomainRank\", \">=\", 50], \"and\", [\"anchor\", \"like\", \"%shoes%\"]]. Join with \"and\" or \"or\". In the link gap reports, put the competitor's number in front of a column: \"1.rank\" is the first competitor's. At most 8 conditions in all, counting the options above."
          },
          "customLinkFilters": {
            "title": "Custom link filters",
            "type": "array",
            "description": "Conditions on the links themselves, in the Backlinks report's column names, for example [[\"sourceDomainRank\", \">=\", 40], \"and\", [\"linkType\", \"=\", \"text\"]]. In Overview, Referring domains, Anchor texts and the other grouped reports they decide which links are counted, like \"Dofollow links only\" does."
          },
          "customSort": {
            "title": "Custom sort",
            "type": "array",
            "description": "Up to 3 rules such as firstSeen,desc, on the result columns. Replaces \"Sort by\".",
            "items": {
              "type": "string"
            }
          },
          "rankScale": {
            "title": "Rank scale",
            "enum": [
              "100",
              "1000"
            ],
            "type": "string",
            "description": "Ranks count the strength of the links pointing at a page or site. Pick the scale you are used to.",
            "default": "100"
          },
          "breakdownLimit": {
            "title": "Breakdown size",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many entries each breakdown keeps: endings of the linking sites, their countries, link types, link attributes and where links sit on the page.",
            "default": 10
          },
          "pagesDetail": {
            "title": "Page details (Most linked pages)",
            "enum": [
              "linkMetrics",
              "full"
            ],
            "type": "string",
            "description": "Full adds each page's title, headings, word count, language and technologies to its link counts. Works on a domain or subdomain.",
            "default": "linkMetrics"
          },
          "mainDomainsOnly": {
            "title": "Main domains only (Sites in common)",
            "type": "boolean",
            "description": "Count shop.example.com as example.com.",
            "default": true
          },
          "excludeLargeSites": {
            "title": "Leave out the largest sites (Sites in common)",
            "type": "boolean",
            "description": "Sites such as search engines and marketplaces share links with almost everyone and crowd out real competitors.",
            "default": true
          },
          "networkType": {
            "title": "Group networks by (Referring IPs or subnets)",
            "enum": [
              "ip",
              "subnet"
            ],
            "type": "string",
            "description": "One row per IP address of the linking sites, or per subnet, which groups sites hosted side by side.",
            "default": "ip"
          },
          "dateFrom": {
            "title": "From (history reports)",
            "type": "string",
            "description": "YYYY-MM-DD. History goes back to 2019-01-01 and starts there unless you set this; the two over-time reports start a year ago."
          },
          "dateTo": {
            "title": "To (history reports)",
            "type": "string",
            "description": "YYYY-MM-DD. Today unless you set it."
          },
          "groupBy": {
            "title": "Group dates by",
            "enum": [
              "day",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "For the two over-time reports. By day covers a year at most.",
            "default": "month"
          },
          "includeTargetSummary": {
            "title": "Add the site's totals to each row",
            "type": "boolean",
            "description": "List reports: each row also carries the site's rank, backlinks, referring domains, dofollow share and spam score. One more lookup per site.",
            "default": false
          },
          "exactDofollow": {
            "title": "Exact dofollow counts",
            "type": "boolean",
            "description": "Overview, Bulk metrics, Referring domains, Anchors, Pages and Networks: dofollow and nofollow counts taken from each link's own flag, the one the Backlinks report shows, so a link on a page whose robots tag says nofollow counts as nofollow. Rows get dofollowExact: true. One more lookup per site, or per 100 rows or fewer of a list, charged as a dofollow lookup.",
            "default": false
          },
          "includeChanges": {
            "title": "Add new and lost links",
            "type": "boolean",
            "description": "Overview and Bulk metrics: backlinks and referring domains gained and lost since the date below. Two more lookups per 100 sites that have data.",
            "default": false
          },
          "changesSince": {
            "title": "Changes since",
            "type": "string",
            "description": "YYYY-MM-DD, within the last year. 30 days ago unless you set it."
          },
          "bulkMetrics": {
            "title": "Bulk metrics to get",
            "type": "array",
            "description": "Each part is one lookup per 100 sites. The link profile has everything below except the site's own spam score. The spam score and the new and lost parts are looked up only for sites that have data.",
            "items": {
              "type": "string",
              "enum": [
                "profile",
                "rank",
                "backlinks",
                "referringDomains",
                "siteSpamScore",
                "newLostBacklinks",
                "newLostReferringDomains"
              ],
              "enumTitles": [
                "Link profile: rank, backlinks, dofollow split, referring domains, IPs, broken links, link spam score",
                "Rank only",
                "Backlink count only",
                "Referring domain counts only",
                "The site's own spam score",
                "New and lost backlinks since \"Changes since\"",
                "New and lost referring domains since \"Changes since\""
              ]
            },
            "default": [
              "profile"
            ]
          },
          "includeEmptyDomains": {
            "title": "Show sites without data",
            "type": "boolean",
            "description": "Overview and Bulk metrics: a free row for a site the index has nothing on, so the output lines up with your list.",
            "default": true
          },
          "minSiteRank": {
            "title": "Minimum rank of the site (Overview and Bulk metrics)",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Sites ranked under this are left out of the results and not charged."
          },
          "includeOrganicTraffic": {
            "title": "Add organic search traffic",
            "type": "boolean",
            "description": "Overview and Bulk metrics: estimated monthly visits from search and how many search results the site appears in. One more lookup per 100 sites that have data.",
            "default": false
          },
          "trafficCountry": {
            "title": "Traffic country",
            "enum": [
              "worldwide",
              "al",
              "dz",
              "ao",
              "ar",
              "am",
              "au",
              "at",
              "az",
              "bh",
              "bd",
              "be",
              "bo",
              "ba",
              "br",
              "bg",
              "bf",
              "kh",
              "cm",
              "ca",
              "cl",
              "co",
              "cr",
              "ci",
              "hr",
              "cy",
              "cz",
              "dk",
              "ec",
              "eg",
              "sv",
              "ee",
              "fi",
              "fr",
              "de",
              "gh",
              "gr",
              "gt",
              "hk",
              "hu",
              "in",
              "id",
              "ie",
              "il",
              "it",
              "jp",
              "jo",
              "kz",
              "ke",
              "lv",
              "lt",
              "my",
              "mt",
              "mx",
              "md",
              "mc",
              "ma",
              "mm",
              "nl",
              "nz",
              "ni",
              "ng",
              "mk",
              "no",
              "pk",
              "pa",
              "py",
              "pe",
              "ph",
              "pl",
              "pt",
              "ro",
              "sa",
              "sn",
              "rs",
              "sg",
              "sk",
              "si",
              "za",
              "kr",
              "es",
              "lk",
              "se",
              "ch",
              "tw",
              "th",
              "tn",
              "tr",
              "ua",
              "ae",
              "gb",
              "us",
              "uy",
              "ve",
              "vn"
            ],
            "type": "string",
            "description": "Where the search traffic is counted.",
            "default": "worldwide"
          },
          "requestTimeoutSecs": {
            "title": "Wait per lookup (seconds)",
            "minimum": 10,
            "maximum": 120,
            "type": "integer",
            "description": "How long one lookup may take before it is tried again.",
            "default": 60
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}