{
  "openapi": "3.0.1",
  "info": {
    "title": "Website SEO Audit – Site Crawler, Broken Links, Core Web Vitals",
    "description": "Crawl a website and get a 0-100 SEO score per page with every issue and its fix: titles, meta, headings, canonicals, hreflang, redirects, every broken link and image, schema, Core Web Vitals and WCAG accessibility (axe-core). Site summary plus a shareable HTML report. Error pages are free.",
    "version": "0.1",
    "x-build-id": "lfA4z4fJxHYF5crId"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/oldjard~website-seo-audit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-oldjard-website-seo-audit",
        "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/oldjard~website-seo-audit/runs": {
      "post": {
        "operationId": "runs-sync-oldjard-website-seo-audit",
        "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/oldjard~website-seo-audit/run-sync": {
      "post": {
        "operationId": "run-sync-oldjard-website-seo-audit",
        "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": "Websites to audit",
            "type": "array",
            "description": "One or more start pages. Each site is crawled from its start page (same site only). An address without https:// is read as https://. To audit just a list of pages, add them all here and turn off \"Follow links\".",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxPages": {
            "title": "Max pages per site",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Pages audited per site, start page included. This is your cost control: you pay per page audited. Error pages and redirects are reported free and do not count.",
            "default": 50
          },
          "crawlLinks": {
            "title": "Follow links",
            "type": "boolean",
            "description": "Follow internal links to find pages. Off: audit only the start URLs.",
            "default": true
          },
          "useSitemap": {
            "title": "Use the XML sitemap",
            "type": "boolean",
            "description": "Read the sitemaps listed in robots.txt (or /sitemap.xml): pages only the sitemap lists are crawled after linked ones, and each page is checked against it (in the sitemap but noindex, or indexable but missing).",
            "default": true
          },
          "includeSubdomains": {
            "title": "Include subdomains",
            "type": "boolean",
            "description": "Also crawl subdomains of the start page (blog.example.com when starting at example.com).",
            "default": false
          },
          "excludeUrlPatterns": {
            "title": "Skip URLs containing",
            "type": "array",
            "description": "Substrings (\"/tag/\") or regular expressions in slashes (\"/\\/page\\/\\d+/\"). Useful to keep archive, tag or search pages out of the crawl.",
            "items": {
              "type": "string"
            }
          },
          "includeUrlPatterns": {
            "title": "Only URLs containing",
            "type": "array",
            "description": "If set, only pages matching one of these are crawled (e.g. \"/blog/\"). Same syntax as above.",
            "items": {
              "type": "string"
            }
          },
          "ignoreQueryStrings": {
            "title": "Ignore query strings",
            "type": "boolean",
            "description": "Treat example.com/page?sort=price and example.com/page as one page.",
            "default": false
          },
          "browserChecks": {
            "title": "Core Web Vitals and rendering (Chrome)",
            "type": "boolean",
            "description": "Load each page in headless Chrome to measure LCP, CLS, FCP, Total Blocking Time, page weight and render-blocking files, and to catch titles, canonicals, robots tags and content that only JavaScript adds. Off: faster, HTML-only audit.",
            "default": true
          },
          "accessibilityChecks": {
            "title": "Accessibility (axe-core)",
            "type": "boolean",
            "description": "Run axe-core's WCAG 2.1 A and AA rules on each page (contrast, link and button names, labels, ARIA). Needs the Chrome checks above.",
            "default": true
          },
          "checkLinks": {
            "title": "Check links and images",
            "type": "boolean",
            "description": "Verify every link and image found (HEAD, then GET when a server refuses HEAD), once per run: broken links, broken and oversized images, links to redirects.",
            "default": true
          },
          "checkExternalLinks": {
            "title": "Check external links too",
            "type": "boolean",
            "description": "Also verify links to other sites. robots.txt of each site is honoured.",
            "default": true
          },
          "maxLinkChecks": {
            "title": "Max link and image checks per run",
            "minimum": 0,
            "maximum": 50000,
            "type": "integer",
            "description": "Each unique URL is checked once, however many pages link to it: internal links first, then images, then external links. Up to 40 checks per page audited, and never more than this number per run.",
            "default": 2000
          },
          "maxConcurrency": {
            "title": "Pages in parallel",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "The crawler also keeps to 3 requests at a time per site, 250 ms apart, and to the site's Crawl-delay.",
            "default": 5
          },
          "htmlReport": {
            "title": "HTML report",
            "type": "boolean",
            "description": "Save a one-page HTML report (REPORT in the key-value store) you can open, print to PDF or send to a client.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}