{
  "openapi": "3.0.1",
  "info": {
    "title": "International Hreflang Audit Crawler",
    "description": "Audit international hreflang across all three sources: HTML link tags, HTTP Link headers and XML sitemaps. Checks return links, self-references, locale codes, canonicals, noindex conflicts, redirects and broken targets. Findings are errors, warnings, recommendations or explicitly unverified.",
    "version": "1.0",
    "x-build-id": "cVS0rHbBLhPTxOsY1"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kayhermes~international-hreflang-audit-crawler/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kayhermes-international-hreflang-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/kayhermes~international-hreflang-audit-crawler/runs": {
      "post": {
        "operationId": "runs-sync-kayhermes-international-hreflang-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/kayhermes~international-hreflang-audit-crawler/run-sync": {
      "post": {
        "operationId": "run-sync-kayhermes-international-hreflang-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": [
          "mode",
          "startUrls"
        ],
        "properties": {
          "mode": {
            "title": "Audit mode",
            "enum": [
              "QUICK_CHECK",
              "CLUSTER_AUDIT",
              "SITEWIDE_AUDIT",
              "MIGRATION_QA",
              "DIFF_MONITOR"
            ],
            "type": "string",
            "description": "QUICK_CHECK audits the supplied URLs only. CLUSTER_AUDIT also verifies cross-page language/region relationships. SITEWIDE_AUDIT discovers URLs from sitemaps and robots.txt. MIGRATION_QA compares explicit old-to-new URL pairs. DIFF_MONITOR compares this run against a previous snapshot.",
            "default": "QUICK_CHECK"
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Public HTTP(S) pages to audit. Every URL must be fully qualified. Localhost, private-network and metadata addresses are rejected by the security layer.",
            "default": [
              {
                "url": "https://www.wikipedia.org/"
              }
            ],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "sitemapUrls": {
            "title": "Sitemap URLs",
            "type": "array",
            "description": "Optional XML sitemaps to read. Sitemap xhtml:link annotations are treated as a first-class hreflang source, so a site that declares hreflang ONLY in its sitemap is audited correctly. Sitemap indexes and .gz sitemaps are supported.",
            "default": [],
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "allowedHosts": {
            "title": "Allowed hosts",
            "type": "array",
            "description": "Optional exact hostname allowlist, case-insensitive. Empty means unrestricted public hosts. When set it applies to seeds, sitemap discovery, alternates, robots and every redirect hop. Do not include schemes, ports or paths. Off-list targets remain unverified.",
            "default": []
          },
          "useRobotsSitemaps": {
            "title": "Read sitemaps from robots.txt",
            "type": "boolean",
            "description": "When enabled, Sitemap: lines in robots.txt are used to discover sitemaps.",
            "default": true
          },
          "respectRobotsTxt": {
            "title": "Respect robots.txt",
            "type": "boolean",
            "description": "When enabled, URLs disallowed for this Actor by robots.txt are skipped and reported as SKIPPED with a reason. Disabling this is your responsibility as the site operator.",
            "default": true
          },
          "migrationMap": {
            "title": "Migration map (MIGRATION_QA)",
            "type": "array",
            "description": "For MIGRATION_QA: explicit old-to-new URL pairs. Each pair is audited and compared so dropped locales, redirect problems and canonical retargeting are reported.",
            "default": []
          },
          "previousSnapshot": {
            "title": "Previous snapshot (DIFF_MONITOR)",
            "type": "object",
            "description": "For DIFF_MONITOR: a previous run's page findings, normally taken from a prior dataset export. Issues are classified as new, resolved, persistent or unverified using stable fingerprints.",
            "default": {}
          },
          "checks": {
            "title": "Checks",
            "type": "object",
            "description": "Which verification checks to perform. Absence of x-default is reported as a recommendation by default, because Google documents x-default as recommended rather than required.",
            "default": {
              "verifyReciprocity": true,
              "verifyAlternateStatus": true,
              "requireSelfReference": true,
              "requireXDefault": false,
              "includeSitemapAlternates": true
            }
          },
          "limits": {
            "title": "Budgets and limits",
            "type": "object",
            "description": "Hard resource bounds. Every fetch is reserved against these limits BEFORE it is dispatched, so no run can over-fetch. Values above the enforced ceiling are clamped and the clamp is disclosed in OUTPUT.",
            "default": {
              "maxPages": 50,
              "maxDepth": 2,
              "maxAlternatesPerPage": 25,
              "maxFetches": 300,
              "maxFetchesPerHost": 60,
              "maxSitemaps": 10,
              "maxSitemapUrls": 50000,
              "maxRedirects": 5,
              "maxBytesPerResponse": 5000000,
              "maxXmlDepth": 64,
              "timeoutMs": 15000,
              "concurrency": 6,
              "maxRetries": 1,
              "requestDelayMs": 0,
              "maxWallClockSec": 900,
              "maxDeclarationsPerRow": 200,
              "maxFindingsPerRow": 200,
              "maxChargeUsd": 0,
              "estimatedUsdPerPage": 0
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}