{
  "openapi": "3.0.1",
  "info": {
    "title": "Backlinks Scraper",
    "description": "Check for up to 15,000 backlinks per domain or URL with source & target URLs, anchor text, Moz DA/PA, Spam Score and more. Access backlink profiles, referring domains, dofollow/nofollow links & 6-month new/lost link history at scale with bulk support. Export to JSON, CSV, Excel & more.",
    "version": "0.0",
    "x-build-id": "yjflIF8mSr5WmkYPS"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/radeance~backlinks-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-radeance-backlinks-scraper",
        "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/radeance~backlinks-scraper/runs": {
      "post": {
        "operationId": "runs-sync-radeance-backlinks-scraper",
        "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/radeance~backlinks-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-radeance-backlinks-scraper",
        "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": [
          "urls"
        ],
        "properties": {
          "search_type": {
            "title": "Search Type",
            "enum": [
              "overview",
              "backlinks"
            ],
            "type": "string",
            "description": "Backlinks retrieves individual backlinks and enriches source domains with MOZ metrics. Backlinks overview returns one target profile including backlink history and target MOZ authority metrics.",
            "default": "backlinks"
          },
          "urls": {
            "title": "Domains or Page URLs",
            "minItems": 1,
            "type": "array",
            "description": "Bulk list of domains or page URLs with a recognized public suffix. Domain modes use the hostname only. Page modes use the full validated URL.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "Backlink Search Mode",
            "enum": [
              "domain",
              "unique_domain",
              "page",
              "unique_page"
            ],
            "type": "string",
            "description": "**Domain**: All backlinks to a domain, including subdomains. **Unique domain**: One backlink per referring hostname to that domain, keeping the first accepted record. **Page**: Backlinks to the exact page URL. **Unique page**: One backlink per referring hostname to that exact page, keeping the first accepted record. Sources are queried concurrently and deduplicated as responses arrive. Output is not sorted by last_seen. Overview uses the corresponding domain or page scope.",
            "default": "domain"
          },
          "max_backlinks": {
            "title": "Maximum backlinks per target",
            "minimum": 1,
            "maximum": 15000,
            "type": "integer",
            "description": "Maximum combined, deduplicated backlinks per target, from 1 to 15,000 (default 5,000). Fewer may be available or affordable. Ignored for overview searches.",
            "default": 15000
          },
          "output_fields": {
            "title": "Output fields",
            "type": "array",
            "description": "Optional selection of data fields for individual backlinks or overview records. Leave empty to include every field for the selected search type. Metadata (data_captured_at, data_type, input_url, mode) is always included. Fields belonging to the other search type are omitted.",
            "items": {
              "type": "string",
              "enum": [
                "source_domain",
                "source_url",
                "target_domain",
                "target_url",
                "anchor_text",
                "last_seen",
                "metrics_available",
                "source_moz_domain_authority",
                "source_moz_spam_score",
                "platform_subdomain",
                "linking_pages",
                "nofollow_linking_pages",
                "redirect_linking_pages",
                "external_linking_pages",
                "external_nofollow_linking_pages",
                "external_redirect_linking_pages",
                "deleted_linking_pages",
                "referring_domains",
                "deleted_referring_domains",
                "nofollow_referring_domains",
                "total_backlinks",
                "total_referring_domains",
                "referring_c_blocks",
                "referring_ips",
                "target_moz_domain_authority",
                "target_moz_page_authority",
                "dofollow_backlinks",
                "nofollow_backlinks",
                "dofollow_percent",
                "nofollow_percent",
                "history_interval",
                "backlinks_history"
              ],
              "enumTitles": [
                "Source Domain",
                "Source Url",
                "Target Domain",
                "Target Url",
                "Anchor Text",
                "Last Seen",
                "Metrics Available",
                "Moz Domain Authority",
                "Moz Spam Score",
                "Platform Subdomain",
                "Linking Pages",
                "Nofollow Linking Pages",
                "Redirect Linking Pages",
                "External Linking Pages",
                "External Nofollow Linking Pages",
                "External Redirect Linking Pages",
                "Deleted Linking Pages",
                "Referring Domains",
                "Deleted Referring Domains",
                "Nofollow Referring Domains",
                "Total Backlinks",
                "Total Referring Domains",
                "Referring C Blocks",
                "Referring Ips",
                "Target Moz Domain Authority",
                "Target Moz Page Authority",
                "Dofollow Backlinks",
                "Nofollow Backlinks",
                "Dofollow Percent",
                "Nofollow Percent",
                "History Interval",
                "Backlinks History"
              ]
            },
            "default": []
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}