{
  "openapi": "3.0.1",
  "info": {
    "title": "AI Crawler Readiness Checker: robots.txt & llms.txt",
    "description": "Check which AI and search crawlers (GPTBot, ClaudeBot, Google-Extended, PerplexityBot, CCBot, Googlebot, Bingbot…) your robots.txt allows, whether a sitemap is declared, and whether llms.txt is missing or has broken links. Plus security.txt and ads.txt. CI pass/fail, AI-ready summary.",
    "version": "0.1",
    "x-build-id": "AqhEMp67qn9B4kYbB"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rationalistic_tail~ai-crawler-readiness-checker/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rationalistic_tail-ai-crawler-readiness-checker",
        "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/rationalistic_tail~ai-crawler-readiness-checker/runs": {
      "post": {
        "operationId": "runs-sync-rationalistic_tail-ai-crawler-readiness-checker",
        "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/rationalistic_tail~ai-crawler-readiness-checker/run-sync": {
      "post": {
        "operationId": "run-sync-rationalistic_tail-ai-crawler-readiness-checker",
        "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": {
          "origins": {
            "title": "Websites (origins)",
            "type": "array",
            "description": "Public websites to check, e.g. [\"https://example.com\", \"docs.example.org\"]. Only the scheme + host (+ port) is used; paths are ignored. https:// is assumed when missing. IP addresses and internal names are ignored. Max 1000.",
            "items": {
              "type": "string"
            },
            "default": [
              "https://example.com",
              "https://vercel.com"
            ]
          },
          "extraCrawlers": {
            "title": "Extra crawler tokens",
            "type": "array",
            "description": "Additional robots.txt user-agent tokens to evaluate on top of the built-in list (GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-SearchBot, Claude-User, anthropic-ai, Google-Extended, PerplexityBot, Perplexity-User, CCBot, Applebot-Extended, Bytespider, Meta-ExternalAgent, Amazonbot, Googlebot, Bingbot, Applebot).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "mustAllowCrawlers": {
            "title": "Alert if these crawlers are blocked",
            "type": "array",
            "description": "Raise an alert when any of these tokens is blocked at the site root, e.g. [\"OAI-SearchBot\", \"PerplexityBot\"] if you want to appear in AI search.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "mustBlockCrawlers": {
            "title": "Alert if these crawlers are NOT blocked",
            "type": "array",
            "description": "Raise an alert when any of these tokens is not blocked at the site root, e.g. [\"GPTBot\", \"CCBot\", \"Google-Extended\"] to enforce an AI-training opt-out.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "requireSearchCrawlersAllowed": {
            "title": "Alert if Googlebot or Bingbot is blocked",
            "type": "boolean",
            "description": "Treat a root-level block of Googlebot or Bingbot as an alert (catches an accidental \"Disallow: /\").",
            "default": true
          },
          "requireLlmsTxt": {
            "title": "Alert if llms.txt is missing",
            "type": "boolean",
            "description": "Treat a missing, empty or HTML (soft-404) /llms.txt as an alert instead of a warning.",
            "default": false
          },
          "requireSitemap": {
            "title": "Alert if no sitemap is declared",
            "type": "boolean",
            "description": "Treat a robots.txt without a Sitemap: line as an alert instead of a warning.",
            "default": false
          },
          "requireSecurityTxt": {
            "title": "Alert if security.txt is missing or expired",
            "type": "boolean",
            "description": "Treat a missing /.well-known/security.txt, a missing Contact field or an expired Expires field as an alert instead of a warning.",
            "default": false
          },
          "checkLlmsLinks": {
            "title": "Check links listed in llms.txt",
            "type": "boolean",
            "description": "HEAD-check the URLs that llms.txt itself publishes (GET fallback only when HEAD is rejected). robots.txt is honoured for every link.",
            "default": true
          },
          "maxLlmsLinks": {
            "title": "Max llms.txt links checked per site",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Upper limit of llms.txt links checked per origin, in file order (0-100).",
            "default": 20
          },
          "maxBrokenLlmsLinks": {
            "title": "Alert if broken llms.txt links exceed",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Raise an alert when more than this many checked llms.txt links are broken (4xx/5xx or unreachable). Fewer broken links are listed as a warning.",
            "default": 0
          },
          "checkLlmsFullTxt": {
            "title": "Check /llms-full.txt",
            "type": "boolean",
            "description": "One HEAD request to /llms-full.txt to report whether it exists (the file is not downloaded).",
            "default": true
          },
          "checkSecurityTxt": {
            "title": "Check /.well-known/security.txt",
            "type": "boolean",
            "description": "RFC 9116 checks: Contact and Expires present, not expired. Contact values are never stored (only how many and which URI schemes).",
            "default": true
          },
          "checkAdsTxt": {
            "title": "Check /ads.txt and /app-ads.txt",
            "type": "boolean",
            "description": "Counts DIRECT / RESELLER records and invalid lines. Publisher account IDs are not stored.",
            "default": true
          },
          "minScore": {
            "title": "Alert if readiness score below",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Raise an alert when the 0-100 readiness score is below this value. 0 = never alert on the score.",
            "default": 0
          },
          "failRunOnAlert": {
            "title": "Fail the run when any alert is found",
            "type": "boolean",
            "description": "For CI / scheduled monitoring: end the run as FAILED if any origin has an alert, so Apify notifications or webhooks fire. Results are still saved.",
            "default": false
          },
          "requestDelayMs": {
            "title": "Delay per host (ms)",
            "minimum": 250,
            "maximum": 60000,
            "type": "integer",
            "description": "Minimum gap between two HTTP requests to the same host (250-60000 ms). A larger robots.txt Crawl-delay always wins.",
            "default": 1000
          },
          "maxConcurrency": {
            "title": "Origins in parallel",
            "minimum": 1,
            "maximum": 5,
            "type": "integer",
            "description": "How many origins are checked at the same time (1-5).",
            "default": 3
          },
          "requestTimeoutSecs": {
            "title": "Timeout per request (s)",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Timeout for each HTTP request (5-60 s).",
            "default": 15
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}