{
  "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": "JbSoeebD0jyyqesbk"
  },
  "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": "The 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": "Which 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 keyword.",
            "default": 3
          },
          "searchLanguage": {
            "title": "Search Language",
            "type": "string",
            "description": "Language code for Google search (hl parameter).",
            "default": "en"
          },
          "searchCountry": {
            "title": "Search Country",
            "type": "string",
            "description": "Country code for Google search (gl parameter).",
            "default": "us"
          },
          "maxConcurrency": {
            "title": "Max Concurrency",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Maximum number of concurrent browser pages for crawling.",
            "default": 10
          },
          "requestTimeout": {
            "title": "Request Timeout (seconds)",
            "minimum": 10,
            "maximum": 120,
            "type": "integer",
            "description": "Timeout in seconds for each page request during crawling.",
            "default": 20
          },
          "maxPagesPerDomain": {
            "title": "Max Pages Per Domain",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of pages to crawl per domain found in SERP results.",
            "default": 50
          },
          "skipDomains": {
            "title": "Skip Domains",
            "type": "array",
            "description": "Domains to skip during crawling (e.g. youtube.com, facebook.com). These domains will not be crawled even if they appear in search results.",
            "items": {
              "type": "string"
            }
          },
          "checkExternalLinks": {
            "title": "Check External Links",
            "type": "boolean",
            "description": "Whether to check external links on crawled pages for broken (404) status.",
            "default": true
          },
          "linkCheckTimeout": {
            "title": "Link Check Timeout (seconds)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Timeout in seconds for each external link HTTP HEAD/GET check.",
            "default": 5
          },
          "maxExternalLinksPerPage": {
            "title": "Max External Links Per Page",
            "minimum": 10,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of external links to check per crawled page.",
            "default": 20
          },
          "targetStatusCodes": {
            "title": "Target Status Codes",
            "type": "array",
            "description": "HTTP status codes to flag as broken link opportunities. Default catches 404 (Not Found) and 410 (Gone).",
            "items": {
              "type": "integer"
            },
            "default": [
              404,
              410
            ]
          },
          "extractContactInfo": {
            "title": "Extract Contact Info",
            "type": "boolean",
            "description": "Whether to attempt extracting contact information (emails, social links) from crawled pages.",
            "default": true
          },
          "extractEmails": {
            "title": "Extract Emails",
            "type": "boolean",
            "description": "Extract email addresses found on crawled pages.",
            "default": true
          },
          "extractSocialLinks": {
            "title": "Extract Social Links",
            "type": "boolean",
            "description": "Extract social media profile links (Twitter, LinkedIn, Facebook, etc.) found on crawled pages.",
            "default": true
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Proxy settings for website crawling. SERP requests always use Google SERP proxy. For website crawling, the actor starts without proxy and escalates to datacenter then residential if blocked."
          },
          "forceProxy": {
            "title": "Force Proxy",
            "type": "boolean",
            "description": "Force all website crawling requests through proxy from the start, skipping the initial no-proxy attempt.",
            "default": false
          },
          "outputFormat": {
            "title": "Output Format",
            "enum": [
              "detailed",
              "summary",
              "csv-friendly"
            ],
            "type": "string",
            "description": "How detailed the output should be. 'detailed' includes all data, 'summary' provides a condensed view, 'csv-friendly' flattens nested data for easy CSV export.",
            "default": "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}