{
  "openapi": "3.0.1",
  "info": {
    "title": "Backlink Opportunity Finder",
    "description": "Find broken backlink opportunities at scale. Searches Google for your keywords, crawls ranking pages with anti-detection browser, discovers dead external links (404/410), and extracts contact info for outreach. Pay only per keyword searched and opportunity found.",
    "version": "0.1",
    "x-build-id": "16dFLDv6cVPdvEYJh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/muhdarifx~backlink-opportunity-finder/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-muhdarifx-backlink-opportunity-finder",
        "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/muhdarifx~backlink-opportunity-finder/runs": {
      "post": {
        "operationId": "runs-sync-muhdarifx-backlink-opportunity-finder",
        "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/muhdarifx~backlink-opportunity-finder/run-sync": {
      "post": {
        "operationId": "run-sync-muhdarifx-backlink-opportunity-finder",
        "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": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "Search Keywords",
            "minItems": 1,
            "type": "array",
            "description": "Search keywords to find backlink opportunities for.",
            "items": {
              "type": "string"
            }
          },
          "googleDomain": {
            "title": "Google Domain",
            "enum": [
              "google.com",
              "google.co.uk",
              "google.de",
              "google.fr",
              "google.es",
              "google.it",
              "google.com.br",
              "google.ca",
              "google.com.au",
              "google.co.in",
              "google.co.jp"
            ],
            "type": "string",
            "description": "Google domain to search.",
            "default": "google.com"
          },
          "resultsPerKeyword": {
            "title": "Results Per Keyword",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many Google results to collect per search query.",
            "default": 10
          },
          "searchLanguage": {
            "title": "Search Language",
            "type": "string",
            "description": "Google search language code.",
            "default": "en"
          },
          "searchCountry": {
            "title": "Search Country",
            "type": "string",
            "description": "Google search country code.",
            "default": "us"
          },
          "competitorDomains": {
            "title": "Competitor Domains",
            "type": "array",
            "description": "Competitor domains used to expand SERP queries and record competitor mentions.",
            "items": {
              "type": "string"
            }
          },
          "replacementUrl": {
            "title": "Replacement URL",
            "type": "string",
            "description": "Your replacement page to include in deterministic pitch angles.",
            "default": ""
          },
          "domainAllowlist": {
            "title": "Domain Allowlist",
            "type": "array",
            "description": "Only crawl SERP results on these domains or subdomains. Leave empty to allow all non-skipped domains.",
            "items": {
              "type": "string"
            }
          },
          "minOpportunityScore": {
            "title": "Minimum Opportunity Score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only output opportunities with this score or higher.",
            "default": 0
          },
          "includeNoContactResults": {
            "title": "Include No-contact Results",
            "type": "boolean",
            "description": "Output opportunities even when no email, social profile, or contact page was found.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Max URL Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum concurrent page crawl workers. Runtime adapts within this cap.",
            "default": 10
          },
          "maxRunMinutes": {
            "title": "Max Run Minutes",
            "minimum": 1,
            "maximum": 180,
            "type": "integer",
            "description": "Maximum run time before workers stop accepting new work.",
            "default": 4
          },
          "requestTimeout": {
            "title": "Request Timeout (seconds)",
            "minimum": 10,
            "maximum": 120,
            "type": "integer",
            "description": "Timeout in seconds for each page request.",
            "default": 20
          },
          "maxPagesPerDomain": {
            "title": "Max Pages Per Domain",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum source pages to crawl per domain.",
            "default": 50
          },
          "maxHtmlBytes": {
            "title": "Max HTML Bytes",
            "minimum": 100000,
            "maximum": 10000000,
            "type": "integer",
            "description": "Skip pages whose HTML response exceeds this size.",
            "default": 2000000
          },
          "skipNonHtml": {
            "title": "Skip Non-HTML",
            "type": "boolean",
            "description": "Skip responses whose content type is not HTML.",
            "default": true
          },
          "skipNonEnglish": {
            "title": "Skip Non-English",
            "type": "boolean",
            "description": "Use a lightweight text heuristic to skip pages that do not look English.",
            "default": false
          },
          "skipDomains": {
            "title": "Skip Domains",
            "type": "array",
            "description": "Additional domains to skip during crawling.",
            "items": {
              "type": "string"
            }
          },
          "checkExternalLinks": {
            "title": "Check External Links",
            "type": "boolean",
            "description": "Whether to check external links on crawled pages.",
            "default": true
          },
          "linkCheckTimeout": {
            "title": "Link Check Timeout (seconds)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Timeout in seconds for each external link check.",
            "default": 5
          },
          "maxExternalLinksPerPage": {
            "title": "Max External Links Per Page",
            "minimum": 10,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum external dofollow links to check per page.",
            "default": 20
          },
          "targetStatusCodes": {
            "title": "Target Status Codes",
            "type": "array",
            "description": "HTTP status codes that count as confirmed broken opportunities.",
            "items": {
              "type": "integer"
            },
            "default": [
              404,
              410
            ]
          },
          "enableSoft404Detection": {
            "title": "Detect Soft 404s",
            "type": "boolean",
            "description": "Classify 200 pages that look like not-found pages as soft_404.",
            "default": true
          },
          "extractContactInfo": {
            "title": "Extract Contact Info",
            "type": "boolean",
            "description": "Whether to extract emails, social links, and contact pages.",
            "default": true
          },
          "extractEmails": {
            "title": "Extract Emails",
            "type": "boolean",
            "description": "Extract email addresses from crawled pages.",
            "default": true
          },
          "extractSocialLinks": {
            "title": "Extract Social Links",
            "type": "boolean",
            "description": "Extract social profile links from crawled pages.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings for website crawling. SERP requests always use Google SERP proxy."
          },
          "forceProxy": {
            "title": "Force Proxy",
            "type": "boolean",
            "description": "Force all website crawling requests through proxy from the start.",
            "default": false
          },
          "exportFormat": {
            "title": "Primary Export Format",
            "enum": [
              "v2-detailed",
              "ahrefs-style",
              "semrush-style",
              "pitchbox",
              "buzzstream",
              "csv"
            ],
            "type": "string",
            "description": "Primary export format label. All supported export files are written to key-value store.",
            "default": "v2-detailed"
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}