{
  "openapi": "3.0.1",
  "info": {
    "title": "SEO Site Audit Crawler (90+ Checks, PDF Report) · SiteVerdict",
    "description": "Crawl a whole website politely (robots.txt, sitemap seeding) and run 90+ technical and on-page SEO checks: titles, meta, canonicals, indexability, duplicates, thin content, headings, images, internal links, orphans. Site score, prioritised fixes, PDF/CSV report, monitoring.",
    "version": "1.1",
    "x-build-id": "SQphTNzG3ufTQHSnH"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/siteverdict~siteverdict-seo-site-auditor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-siteverdict-siteverdict-seo-site-auditor",
        "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/siteverdict~siteverdict-seo-site-auditor/runs": {
      "post": {
        "operationId": "runs-sync-siteverdict-siteverdict-seo-site-auditor",
        "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/siteverdict~siteverdict-seo-site-auditor/run-sync": {
      "post": {
        "operationId": "run-sync-siteverdict-siteverdict-seo-site-auditor",
        "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",
        "properties": {
          "startUrls": {
            "title": "Websites to audit",
            "type": "array",
            "description": "Start URL of each site, e.g. https://www.example.com/. Each site is crawled and scored separately (max 20 per run).",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxPagesPerSite": {
            "title": "Max pages per site",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper limit of URLs crawled per site (1-5,000). You are charged only for HTML pages actually analysed.",
            "default": 200
          },
          "maxDepth": {
            "title": "Max click depth",
            "minimum": 0,
            "maximum": 50,
            "type": "integer",
            "description": "How many clicks away from the start URL to follow links (0 = start page only). Sitemap URLs are still checked.",
            "default": 10
          },
          "useSitemap": {
            "title": "Seed from XML sitemap",
            "type": "boolean",
            "description": "Read the sitemap(s) listed in robots.txt (or /sitemap.xml). Needed for orphan-page and sitemap-hygiene checks.",
            "default": true
          },
          "includeSubdomains": {
            "title": "Include subdomains",
            "type": "boolean",
            "description": "Also crawl blog.example.com, shop.example.com... when auditing example.com. www and the bare domain always count as the same site.",
            "default": false
          },
          "ignoreQueryParameters": {
            "title": "Ignore URL query parameters",
            "type": "boolean",
            "description": "Treat /page?a=1 and /page as the same URL. Tracking parameters (utm_*, gclid, fbclid...) are always ignored.",
            "default": false
          },
          "includePatterns": {
            "title": "Only crawl URLs matching",
            "type": "array",
            "description": "Optional globs or /regex/ (matched against the full URL), e.g. /blog/** or /\\/products\\//. Empty = whole site.",
            "items": {
              "type": "string"
            }
          },
          "excludePatterns": {
            "title": "Skip URLs matching",
            "type": "array",
            "description": "Globs or /regex/ to skip, e.g. /tag/** or *?replytocom=*.",
            "items": {
              "type": "string"
            }
          },
          "checkImages": {
            "title": "Check internal images",
            "type": "boolean",
            "description": "Send HEAD requests to internal images to find broken (4xx/5xx) and heavy (>200 KB) files.",
            "default": true
          },
          "siteProbes": {
            "title": "Site-wide probes",
            "type": "boolean",
            "description": "Three extra requests per site: http→https redirect, www vs non-www duplication and a random URL to detect soft 404s.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Parallel requests per site",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "1-4. Requests to one host are still spaced by the delay below.",
            "default": 2
          },
          "requestDelayMs": {
            "title": "Delay between requests to a host (ms)",
            "minimum": 250,
            "maximum": 10000,
            "type": "integer",
            "description": "Minimum 250 ms. A robots.txt Crawl-delay is honoured if larger (capped at 30 s).",
            "default": 500
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Per request, 5-60.",
            "default": 20
          },
          "outputPageRows": {
            "title": "Output one row per page",
            "type": "boolean",
            "description": "Adds a 'page' row per crawled URL (status, title, meta, H1, canonical, word count, issue IDs). Issue and summary rows are always output.",
            "default": true
          },
          "monitoring": {
            "title": "Monitoring (compare with last run)",
            "type": "boolean",
            "description": "Keeps a snapshot per site in the named store 'siteverdict-seo-audit-history' and reports new and fixed issues plus the score change.",
            "default": true
          },
          "projectName": {
            "title": "Project name",
            "type": "string",
            "description": "Optional. Separates monitoring history, e.g. 'client-a' (useful when auditing the same site with different settings)."
          },
          "alertWebhookUrl": {
            "title": "Alert webhook (Slack or any HTTPS URL)",
            "type": "string",
            "description": "Optional. Posts an alert when monitoring finds new issues. Slack incoming-webhook URLs get a Slack message; other URLs get JSON. Stored as a secret."
          },
          "alertOn": {
            "title": "Alert when",
            "enum": [
              "newCriticalOrHigh",
              "anyNew",
              "scoreDrop"
            ],
            "type": "string",
            "description": "Which changes trigger the webhook.",
            "default": "newCriticalOrHigh"
          },
          "scoreDropThreshold": {
            "title": "Score drop threshold (points)",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Alert when the site score falls by at least this many points.",
            "default": 5
          },
          "aiFixes": {
            "title": "AI fix suggestions (your own key)",
            "type": "boolean",
            "description": "Off by default. Uses YOUR Anthropic or OpenAI key to write concrete fix snippets (rewritten titles, tags, redirect rules) for the top issues. Charged per fix delivered; your AI provider bills tokens separately.",
            "default": false
          },
          "aiProvider": {
            "title": "AI provider",
            "enum": [
              "anthropic",
              "openai"
            ],
            "type": "string",
            "description": "Which API your key belongs to.",
            "default": "anthropic"
          },
          "aiApiKey": {
            "title": "AI API key",
            "type": "string",
            "description": "Your own API key. Stored encrypted as an Apify secret, never logged or written to the output."
          },
          "aiModel": {
            "title": "AI model (optional)",
            "type": "string",
            "description": "Defaults: claude-haiku-4-5 (Anthropic) or gpt-4.1-mini (OpenAI)."
          },
          "maxAiFixes": {
            "title": "Max AI fixes per site",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "1-25, one per top-priority issue type.",
            "default": 10
          },
          "sampleMode": {
            "title": "Sample mode (free demo)",
            "type": "boolean",
            "description": "Audits a built-in demo site from memory instead of your URLs: no network requests, nothing charged. Great for seeing the output format.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}