{
  "openapi": "3.0.1",
  "info": {
    "title": "Website SEO Audit Crawler - On-Page SEO and Meta Tags",
    "description": "Crawl a website and audit on-page SEO for each page: title and meta description length, H1, canonical, robots noindex, hreflang, image alt text, internal links, and duplicate titles. Each row has a deterministic 0-100 score and a fix. Respects robots.txt. Static HTML only.",
    "version": "1.0",
    "x-build-id": "KzCXq3ac9prp0xv1R"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/batreek~website-seo-audit-crawler/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-batreek-website-seo-audit-crawler",
        "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/batreek~website-seo-audit-crawler/runs": {
      "post": {
        "operationId": "runs-sync-batreek-website-seo-audit-crawler",
        "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/batreek~website-seo-audit-crawler/run-sync": {
      "post": {
        "operationId": "run-sync-batreek-website-seo-audit-crawler",
        "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": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Pages that start the audit. The crawler stays on the same site as each start URL (www and the bare domain are one site; other subdomains are not). HTTP and HTTPS only. URLs with a username or password are rejected.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxPages": {
            "title": "Max pages to audit",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Maximum accepted page audits in this run. When pay-per-event pricing is on, each accepted audit is one page-audited event at $0.01 ($10 per 1,000), including HTTP errors, failed fetches, and non-HTML responses. robots.txt and sitemap files are not charged. 25 pages = $0.25, 100 pages = $1.00, 1,000 pages = $10.00. The platform also bills one apify-actor-start event ($0.00005) for the default 512 MB; that is one event up to and including 1 GB, not a half-GB fraction.",
            "default": 100
          },
          "maxDepth": {
            "title": "Max crawl depth",
            "minimum": 0,
            "maximum": 25,
            "type": "integer",
            "description": "Link hops from a start URL or sitemap URL. 0 audits only the start URLs and, in sitemap mode, the sitemap URLs.",
            "default": 5
          },
          "useSitemap": {
            "title": "Seed the crawl from sitemap.xml",
            "type": "boolean",
            "description": "Also queue same-site URLs from the sitemap named in robots.txt, or from /sitemap.xml. Sitemap indexes and .gz files are read up to a fixed cap. Reading sitemap files is not charged. Setting sitemap URLs below turns this on.",
            "default": false
          },
          "sitemapUrls": {
            "title": "Sitemap URLs",
            "type": "array",
            "description": "Sitemap or sitemap index URLs to read instead of auto-discovery. They must be on the same site as a start URL. This turns sitemap mode on. These fetches are not charged.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "includeUrlPatterns": {
            "title": "Include URL patterns",
            "type": "array",
            "description": "If set, only matching URLs are audited, except the start URLs, which are always eligible. Empty means the whole site within the other limits.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "excludeUrlPatterns": {
            "title": "Exclude URL patterns",
            "type": "array",
            "description": "Matching URLs are not audited. A start URL that matches an exclude pattern fails the run.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "urlPatternSyntax": {
            "title": "Pattern syntax",
            "enum": [
              "regex",
              "glob"
            ],
            "type": "string",
            "description": "Regex searches the URL. A glob matches the whole URL; a glob that does not start with http://, https://, or * may match anywhere, for example /blog/*.",
            "default": "regex"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many page fetches may run at once, across all sites in the run.",
            "default": 4
          },
          "perHostConcurrency": {
            "title": "Max concurrency per site",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "How many fetches may run at once for one site. This stays at or below max concurrency.",
            "default": 2
          },
          "requestTimeoutSecs": {
            "title": "Request timeout (seconds)",
            "minimum": 5,
            "maximum": 45,
            "type": "integer",
            "description": "Time limit for each attempt, including connect. Redirect hops and retries use this same limit and are not extra charges.",
            "default": 20
          },
          "maxResponseBytes": {
            "title": "Max response bytes",
            "minimum": 100000,
            "maximum": 5000000,
            "type": "integer",
            "description": "Cap for the decompressed body of one response. Larger bodies are not parsed. The cap cannot be turned off.",
            "default": 2000000
          },
          "maxRetries": {
            "title": "Retries for transient errors",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Extra attempts after a connection failure, timeout, or HTTP 429/502/503/504. Retries are not charged.",
            "default": 2
          },
          "redirectChainThreshold": {
            "title": "Flag redirect chains longer than",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "A chain with more hops than this is an issue. One hop (for example HTTP to HTTPS) is not flagged when this is 1. Hops are not extra charges.",
            "default": 1
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt",
            "type": "boolean",
            "description": "Skip URLs disallowed for the WebsiteSeoAudit token. A skipped URL is reported and is not charged. A 401 or 403 robots.txt disallows the whole origin. Other robots.txt failures allow the crawl.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}