{
 "openapi": "3.1.0",
 "info": {
  "title": "AI Agent Readiness Audit (xsi) via the Apify API",
  "version": "1.0.7",
  "license": {
   "name": "Proprietary documentation (xsi)",
   "identifier": "LicenseRef-xsi-docs"
  },
  "description": "Official Apify endpoints applied to the public Actor xsi/agent-readiness-audit (https://apify.com/xsi/agent-readiness-audit). Calls go directly to api.apify.com: no xsi server, no proxy. Schemas: AraInput = .actor/input_schema.json with only the Apify UI keywords schemaVersion, editor and prefill renamed x-apify-schemaVersion, x-apify-editor, x-apify-prefill (same values; OpenAPI 3.1 rejects unknown keywords); AraItem = .actor/dataset_schema.json 'fields' verbatim except ONE change (description: 'errorType/error' -> 'error_type/error', the real output field name). Pricing (pay per event): Website audited = USD 0.004 per website on Apify's FREE tier (BRONZE 0.0036, SILVER 0.003, GOLD/PLATINUM/DIAMOND 0.0025); minimum per-run spending cap (minimalMaxTotalChargeUsd) USD 0.01. One website (and the page you gave) audited with all 20 checks, a 0-100 score and fixes. Charged when the site answered with any HTTP response, including a 403 bot wall (a real finding). Invalid input, duplicates, DNS failures, connection errors, timeouts and sites answering 5xx to every client are free.",
  "x-source-files-sha256": {
   "input_schema.json": "bd4b1a4a5eb34d2a49c3d13f683a7ec627c471e4f6b9506bad01ef87b27406a8",
   "dataset_schema.json": "5fb5972a22bf804ba061d66ef2156fa7a29339281509e62dee43aed0aaaa563d",
   "pay_per_event.json": "9f23e2b433e617aa28585f8cf720d2aa03c3e6955e413c8cad3d851bfffeb80a"
  }
 },
 "servers": [
  {
   "url": "https://api.apify.com"
  }
 ],
 "security": [
  {
   "apifyToken": []
  }
 ],
 "paths": {
  "/v2/actors/xsi~agent-readiness-audit/run-sync-get-dataset-items": {
   "post": {
    "operationId": "runAgentReadinessAuditSync",
    "summary": "Run the audit synchronously and get one result row per website",
    "description": "Starts a run with the JSON body as its input, waits for it and returns the dataset items. Per Apify's docs a run longer than 300 s returns HTTP 408: for long lists use the async path (runAgentReadinessAuditAsync, then getActorRun, then getDatasetItems). Docs: https://docs.apify.com/api/v2/act-run-sync-get-dataset-items-post",
    "parameters": [
     {
      "name": "timeout",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number"
      },
      "description": "Optional run timeout in seconds (Apify docs)."
     },
     {
      "name": "maxTotalChargeUsd",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number",
       "minimum": 0.01
      },
      "description": "Maximum total cost of the run in USD (Apify docs). Set it to max(0.01, 0.004 x number of websites): this Actor's minimalMaxTotalChargeUsd is 0.01 (Apify pricingInfos), and Apify documents an error 'max-total-charge-usd-below-minimum' for lower values (its exact behaviour was not tested: no run)."
     },
     {
      "name": "format",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "enum": [
        "json",
        "jsonl",
        "csv",
        "html",
        "xlsx",
        "xml",
        "rss"
       ],
       "default": "json"
      },
      "description": "Format of the returned items (Apify docs). This description covers json."
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AraInput"
       },
       "example": {
        "urls": [
         "llmstxt.org"
        ]
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Run finished; body = the dataset items (one row per website; error rows carry error_type/error and are not charged).",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/AraItem"
         }
        }
       }
      }
     },
     "400": {
      "description": "Invalid input or request (Apify error object)."
     },
     "401": {
      "description": "Missing or invalid Apify API token."
     },
     "408": {
      "description": "The run took longer than 300 seconds (Apify docs)."
     }
    }
   }
  },
  "/v2/actors/xsi~agent-readiness-audit/runs": {
   "post": {
    "operationId": "runAgentReadinessAuditAsync",
    "summary": "Start the audit asynchronously (returns the Run object at once)",
    "description": "Async path, step 1. Returns the Run object; keep data.id and data.defaultDatasetId. Docs: https://docs.apify.com/api/v2/act-runs-post",
    "parameters": [
     {
      "name": "timeout",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number"
      },
      "description": "Optional run timeout in seconds (Apify docs)."
     },
     {
      "name": "maxTotalChargeUsd",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number",
       "minimum": 0.01
      },
      "description": "Maximum total cost of the run in USD (Apify docs). Set it to max(0.01, 0.004 x number of websites): this Actor's minimalMaxTotalChargeUsd is 0.01 (Apify pricingInfos), and Apify documents an error 'max-total-charge-usd-below-minimum' for lower values (its exact behaviour was not tested: no run)."
     },
     {
      "name": "waitForFinish",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number",
       "minimum": 0,
       "maximum": 60
      },
      "description": "Seconds the server waits for the run to finish, 0-60, default 0 (Apify docs)."
     }
    ],
    "requestBody": {
     "required": true,
     "content": {
      "application/json": {
       "schema": {
        "$ref": "#/components/schemas/AraInput"
       },
       "example": {
        "urls": [
         "llmstxt.org"
        ]
       }
      }
     }
    },
    "responses": {
     "201": {
      "description": "Run started.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "Apify Run object (subset used here; full schema: https://docs.apify.com/api/v2/actor-run-get).",
         "properties": {
          "data": {
           "type": "object",
           "properties": {
            "id": {
             "type": "string"
            },
            "status": {
             "type": "string",
             "enum": [
              "READY",
              "RUNNING",
              "SUCCEEDED",
              "FAILED",
              "TIMING-OUT",
              "TIMED-OUT",
              "ABORTING",
              "ABORTED"
             ]
            },
            "defaultDatasetId": {
             "type": "string"
            }
           }
          }
         }
        }
       }
      }
     },
     "400": {
      "description": "Invalid input or request (Apify error object)."
     },
     "401": {
      "description": "Missing or invalid Apify API token."
     }
    }
   }
  },
  "/v2/actor-runs/{runId}": {
   "get": {
    "operationId": "getActorRun",
    "summary": "Poll the run until its status is terminal (SUCCEEDED, FAILED, TIMED-OUT, ABORTED)",
    "description": "Async path, step 2. Docs: https://docs.apify.com/api/v2/actor-run-get",
    "parameters": [
     {
      "name": "runId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "waitForFinish",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number",
       "minimum": 0,
       "maximum": 60
      },
      "description": "Seconds to wait for the run to finish, 0-60 (Apify docs)."
     }
    ],
    "responses": {
     "200": {
      "description": "Run object.",
      "content": {
       "application/json": {
        "schema": {
         "type": "object",
         "description": "Apify Run object (subset used here; full schema: https://docs.apify.com/api/v2/actor-run-get).",
         "properties": {
          "data": {
           "type": "object",
           "properties": {
            "id": {
             "type": "string"
            },
            "status": {
             "type": "string",
             "enum": [
              "READY",
              "RUNNING",
              "SUCCEEDED",
              "FAILED",
              "TIMING-OUT",
              "TIMED-OUT",
              "ABORTING",
              "ABORTED"
             ]
            },
            "defaultDatasetId": {
             "type": "string"
            }
           }
          }
         }
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid Apify API token."
     },
     "404": {
      "description": "Run not found."
     }
    }
   }
  },
  "/v2/datasets/{datasetId}/items": {
   "get": {
    "operationId": "getDatasetItems",
    "summary": "Read the result rows of a finished run (datasetId = data.defaultDatasetId)",
    "description": "Async path, step 3. Docs: https://docs.apify.com/api/v2/dataset-items-get",
    "parameters": [
     {
      "name": "datasetId",
      "in": "path",
      "required": true,
      "schema": {
       "type": "string"
      }
     },
     {
      "name": "format",
      "in": "query",
      "required": false,
      "schema": {
       "type": "string",
       "enum": [
        "json",
        "jsonl",
        "csv",
        "html",
        "xlsx",
        "xml",
        "rss"
       ],
       "default": "json"
      },
      "description": "Format of the returned items (Apify docs). This description covers json."
     },
     {
      "name": "offset",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number"
      },
      "description": "Items to skip (Apify docs)."
     },
     {
      "name": "limit",
      "in": "query",
      "required": false,
      "schema": {
       "type": "number"
      },
      "description": "Maximum items to return (Apify docs)."
     }
    ],
    "responses": {
     "200": {
      "description": "The dataset items.",
      "content": {
       "application/json": {
        "schema": {
         "type": "array",
         "items": {
          "$ref": "#/components/schemas/AraItem"
         }
        }
       }
      }
     },
     "401": {
      "description": "Missing or invalid Apify API token."
     },
     "404": {
      "description": "Dataset not found."
     }
    }
   }
  }
 },
 "components": {
  "schemas": {
   "AraInput": {
    "title": "AI Agent Readiness Audit input",
    "type": "object",
    "x-apify-schemaVersion": 1,
    "properties": {
     "urls": {
      "title": "Websites or page URLs",
      "type": "array",
      "description": "Domains (\"example.com\") or full page URLs (a product page tests Product/Offer schema and price visibility). Site-level files (robots.txt, llms.txt, sitemap, /.well-known) are read from the same origin. Duplicates are removed (free). Max 5,000.",
      "x-apify-editor": "stringList",
      "x-apify-prefill": [
       "zalando.de",
       "llmstxt.org"
      ]
     },
     "maxConcurrency": {
      "title": "Websites in parallel",
      "type": "integer",
      "description": "1–20. Each website gets about 13 small requests.",
      "minimum": 1,
      "maximum": 20,
      "default": 5
     },
     "requestTimeoutSecs": {
      "title": "Timeout per request (s)",
      "type": "integer",
      "description": "5–60 s for the page itself; optional files use at most 10 s.",
      "minimum": 5,
      "maximum": 60,
      "default": 15
     }
    },
    "required": [
     "urls"
    ]
   },
   "AraItem": {
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "object",
    "description": "One dataset item produced by xsi/agent-readiness-audit. Fields are optional unless noted; error rows carry error_type/error and are never charged.",
    "properties": {
     "input": {
      "type": [
       "string",
       "null"
      ],
      "description": "The input value this row answers, use it as a join key."
     },
     "domain": {
      "type": [
       "string",
       "null"
      ],
      "description": "Domain name this row refers to."
     },
     "audited_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "Audited url."
     },
     "final_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "URL after redirects."
     },
     "status": {
      "type": [
       "string",
       "null"
      ],
      "description": "Outcome status of this row."
     },
     "score": {
      "type": [
       "number",
       "null"
      ],
      "description": "Score."
     },
     "grade": {
      "type": [
       "string",
       "null"
      ],
      "description": "Grade."
     },
     "checks_passed": {
      "type": [
       "number",
       "null"
      ],
      "description": "Checks passed."
     },
     "checks_partial": {
      "type": [
       "number",
       "null"
      ],
      "description": "Checks partial."
     },
     "checks_failed": {
      "type": [
       "number",
       "null"
      ],
      "description": "Checks failed."
     },
     "checks_not_applicable": {
      "type": [
       "number",
       "null"
      ],
      "description": "Checks not applicable."
     },
     "top_fixes": {
      "type": [
       "array",
       "null"
      ],
      "description": "Top fixes."
     },
     "http_status_agent": {
      "type": [
       "number",
       "null"
      ],
      "description": "Http status agent."
     },
     "http_status_browser": {
      "type": [
       "number",
       "null"
      ],
      "description": "Http status browser."
     },
     "blocks_ai_agents": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Blocks ai agents."
     },
     "bot_protection": {
      "type": [
       "array",
       "null"
      ],
      "description": "Bot protection."
     },
     "robots_txt_found": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Robots txt found."
     },
     "ai_bots_allowed": {
      "type": [
       "array",
       "null"
      ],
      "description": "Ai bots allowed."
     },
     "ai_bots_blocked": {
      "type": [
       "array",
       "null"
      ],
      "description": "Ai bots blocked."
     },
     "ai_search_bots_blocked": {
      "type": [
       "array",
       "null"
      ],
      "description": "Ai search bots blocked."
     },
     "ai_training_bots_blocked": {
      "type": [
       "array",
       "null"
      ],
      "description": "Ai training bots blocked."
     },
     "content_signals": {
      "type": [
       "array",
       "null"
      ],
      "description": "Content signals."
     },
     "content_signal_search": {
      "description": "Content signal search."
     },
     "content_signal_ai_input": {
      "description": "Content signal ai input."
     },
     "content_signal_ai_train": {
      "description": "Content signal ai train."
     },
     "markdown_for_agents": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Markdown for agents."
     },
     "markdown_source": {
      "description": "Markdown source."
     },
     "markdown_url": {
      "description": "Markdown url."
     },
     "markdown_kb": {
      "description": "Markdown kb."
     },
     "llms_txt": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Llms txt."
     },
     "llms_txt_links": {
      "type": [
       "number",
       "null"
      ],
      "description": "Llms txt links."
     },
     "llms_full_txt": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Llms full txt."
     },
     "sitemap_found": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Sitemap found."
     },
     "sitemap_url": {
      "type": [
       "string",
       "null"
      ],
      "description": "Sitemap url."
     },
     "schema_types": {
      "type": [
       "array",
       "null"
      ],
      "description": "Schema types."
     },
     "has_organization_schema": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Has organization schema."
     },
     "has_product_schema": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Has product schema."
     },
     "offer_price": {
      "description": "Offer price."
     },
     "offer_currency": {
      "description": "Offer currency."
     },
     "offer_availability": {
      "description": "Offer availability."
     },
     "price_visible_without_js": {
      "description": "Price visible without js."
     },
     "has_faq_schema": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Has faq schema."
     },
     "text_chars_without_js": {
      "type": [
       "number",
       "null"
      ],
      "description": "Text chars without js."
     },
     "spa_shell": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Spa shell."
     },
     "title": {
      "type": [
       "string",
       "null"
      ],
      "description": "Title."
     },
     "meta_description": {
      "type": [
       "string",
       "null"
      ],
      "description": "Meta description."
     },
     "og_title": {
      "type": [
       "string",
       "null"
      ],
      "description": "Og title."
     },
     "og_image": {
      "type": [
       "string",
       "null"
      ],
      "description": "Og image."
     },
     "html_lang": {
      "type": [
       "string",
       "null"
      ],
      "description": "Html lang."
     },
     "canonical": {
      "type": [
       "string",
       "null"
      ],
      "description": "Canonical."
     },
     "noindex": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Noindex."
     },
     "https": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "Https."
     },
     "ttfb_ms": {
      "type": [
       "number",
       "null"
      ],
      "description": "Ttfb ms."
     },
     "html_load_ms": {
      "type": [
       "number",
       "null"
      ],
      "description": "Html load ms."
     },
     "html_kb": {
      "type": [
       "number",
       "null"
      ],
      "description": "Html kb."
     },
     "agent_endpoints": {
      "type": [
       "array",
       "null"
      ],
      "description": "Agent endpoints."
     },
     "checks": {
      "type": [
       "array",
       "null"
      ],
      "description": "Checks."
     },
     "bot_verdicts": {
      "type": [
       "array",
       "null"
      ],
      "description": "Bot verdicts."
     },
     "audited_at": {
      "type": [
       "string",
       "null"
      ],
      "description": "Audited at."
     },
     "duration_ms": {
      "type": [
       "number",
       "null"
      ],
      "description": "Duration ms."
     },
     "error_type": {
      "type": [
       "string",
       "null"
      ],
      "description": "Machine-readable error code when the row failed (null on success). Failed rows are not charged."
     },
     "error": {
      "type": [
       "string",
       "null"
      ],
      "description": "Human-readable error message when the row failed (null on success)."
     },
     "charged": {
      "type": [
       "boolean",
       "null"
      ],
      "description": "True when this row was billed as a pay-per-event event; error and skipped rows are false (never billed)."
     }
    },
    "additionalProperties": true
   }
  },
  "securitySchemes": {
   "apifyToken": {
    "type": "http",
    "scheme": "bearer",
    "description": "Your own Apify API token (Apify Console > Settings > API & Integrations), sent as 'Authorization: Bearer <token>'. Never put it in a shared file."
   }
  }
 }
}