{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Audit: SEO, Speed, Accessibility + PDF",
    "description": "Audit one page or crawl a whole site in a real browser, desktop and mobile. Get a 0–100 score and fixes ranked by severity for SEO, speed, accessibility, mobile, security, analytics, structured data and AI search. PDF reports in English, Spanish or Russian, white label for agencies.",
    "version": "0.2",
    "x-build-id": "0T7KyWvfThbgkkay8"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/vesqor_ai~site-audit/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-vesqor_ai-site-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/vesqor_ai~site-audit/runs": {
      "post": {
        "operationId": "runs-sync-vesqor_ai-site-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/vesqor_ai~site-audit/run-sync": {
      "post": {
        "operationId": "run-sync-vesqor_ai-site-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 or pages to audit",
            "type": "array",
            "description": "As many URLs as you need. A homepage (https://example.com/) crawls the whole site, any other address audits just that page (see Crawl scope). Each page is analyzed in a real browser, desktop and mobile. Per URL you can override the scope and the page limit with userData, e.g. {\"url\": \"https://example.com/blog/\", \"userData\": {\"crawlScope\": \"section\", \"maxPages\": 200}}. URLs run in batches of 50; the rest wait their turn in the same run.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "crawlScope": {
            "title": "Crawl scope",
            "enum": [
              "auto",
              "page",
              "section",
              "site"
            ],
            "type": "string",
            "description": "auto: a homepage (no path, no query) crawls the whole site, any other address is one page. page: only the address you give. section: the address and the pages under its path (/blog/ covers /blog/..., not /blogging). site: every page of the host (plus subdomains with Include subdomains). Decided on the address as you typed it.",
            "default": "auto"
          },
          "maxPages": {
            "title": "Pages per site",
            "minimum": 1,
            "type": "integer",
            "description": "Most pages audited per crawled URL (attempts, failed ones included); 1 000 when left empty. Pages run one at a time, 4-6 s each: 1 000 pages take about 1.5-2 hours. Cost: audit-json for the first page, then crawl-page for each further page ($0.010 on the Free plan down to $0.0075 on Gold), so 1 000 pages cost about $10 on Free and $7.50 on Gold. Your run's spending limit always stops the crawl in time, and the site summary is still delivered."
          },
          "includePatterns": {
            "title": "Only pages containing",
            "type": "array",
            "description": "When set, a crawl audits only pages whose address (host without www., path and query) contains one of these, ignoring case. Example: blog/ . Wrap a regular expression in slashes (RE2 syntax, no lookarounds or backreferences), e.g. /blog/[0-9]+/ (the regular expression blog/[0-9]+). Up to 50 patterns of up to 200 characters. The regular expressions of both lists together may weigh at most 600: roughly 1 per character, and a counted repeat such as {0,100} multiplies what it repeats; plain text weighs nothing.",
            "items": {
              "type": "string"
            }
          },
          "excludePatterns": {
            "title": "Skip pages containing",
            "type": "array",
            "description": "A crawl skips pages whose address (host without www., path and query) contains one of these, ignoring case. Example: tag/ . Wrap a regular expression in slashes, e.g. /(tag|author)// (the regular expression (tag|author)/). Up to 50 patterns of up to 200 characters; the weight limit of 600 covers both lists together.",
            "items": {
              "type": "string"
            }
          },
          "includeSubdomains": {
            "title": "Include subdomains",
            "type": "boolean",
            "description": "With scope site, also crawl pages on subdomains of the site (blog.example.com for example.com).",
            "default": false
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt",
            "type": "boolean",
            "description": "Skip pages that the site's robots.txt disallows and keep its Crawl-delay between pages. Turn off only for a site you own.",
            "default": true
          },
          "pdfReport": {
            "title": "PDF report",
            "type": "boolean",
            "description": "Also make a PDF: one per page for single pages, one per site for a crawl (summary, frequent issues, the 20 weakest pages). Charged separately (pdf-report event). Without it you get JSON only.",
            "default": false
          },
          "reportLanguage": {
            "title": "Report language",
            "enum": [
              "en",
              "es",
              "ru"
            ],
            "type": "string",
            "description": "Language of the plain-language summary, the issue texts and the PDF report.",
            "default": "en"
          },
          "checkPagespeed": {
            "title": "Google PageSpeed",
            "type": "boolean",
            "description": "Add Google PageSpeed Insights metrics for the first page of each URL. Slower; the price does not change.",
            "default": false
          },
          "pagespeedStrategy": {
            "title": "PageSpeed device",
            "enum": [
              "mobile",
              "desktop"
            ],
            "type": "string",
            "description": "Which PageSpeed Insights strategy to run when Google PageSpeed is on.",
            "default": "mobile"
          },
          "checkMobile": {
            "title": "Mobile version",
            "type": "boolean",
            "description": "Render the page on a phone screen too and check tap targets, font sizes, horizontal scroll.",
            "default": true
          },
          "checkAccessibility": {
            "title": "Accessibility",
            "type": "boolean",
            "description": "Run axe-core accessibility checks.",
            "default": true
          },
          "checkLinks": {
            "title": "Broken links",
            "type": "boolean",
            "description": "Check a sample of the page's links for broken ones and redirect chains.",
            "default": true
          },
          "checkSiteFiles": {
            "title": "robots.txt, sitemap, TLS and security headers",
            "type": "boolean",
            "description": "Check the site files and the connection, once per URL (on its first page).",
            "default": true
          },
          "checkStructuredData": {
            "title": "Structured data",
            "type": "boolean",
            "description": "Check JSON-LD / schema.org markup.",
            "default": true
          },
          "checkAnalytics": {
            "title": "Analytics",
            "type": "boolean",
            "description": "Record which analytics and tracking tools actually fire on the page.",
            "default": true
          },
          "brandName": {
            "title": "Brand name",
            "maxLength": 120,
            "type": "string",
            "description": "White label PDF: your agency or brand name in the report header. Any brand field makes the PDF white-label (white-label event, charged per PDF on top of pdf-report)."
          },
          "brandLogoUrl": {
            "title": "Logo URL",
            "maxLength": 2048,
            "type": "string",
            "description": "PNG or JPEG, up to 1 MB and 2000x2000 px, at an http(s) address of up to 2048 characters. SVG is not accepted. If the logo cannot be loaded the PDF comes without it."
          },
          "brandColor": {
            "title": "Brand color",
            "pattern": "^#[0-9A-Fa-f]{6}$",
            "type": "string",
            "description": "Accent color as #RRGGBB, e.g. #0B5FFF."
          },
          "brandContact": {
            "title": "Contact line",
            "maxLength": 120,
            "type": "string",
            "description": "Shown in the report, e.g. acme.example · hello@acme.example"
          },
          "brandIntro": {
            "title": "Introduction",
            "maxLength": 1000,
            "type": "string",
            "description": "A short introduction at the start of the report, up to 1 000 characters."
          },
          "brandPreparedFor": {
            "title": "Prepared for",
            "maxLength": 120,
            "type": "string",
            "description": "Your client's name, shown as \"Prepared for\"."
          },
          "hideVesqorBranding": {
            "title": "Hide VESQOR",
            "type": "boolean",
            "description": "Remove the \"Report by VESQOR\" line from the PDF.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}