{
  "openapi": "3.0.1",
  "info": {
    "title": "Bulk URL Checker: HTTP status, redirects & TLS",
    "description": "Bulk URL checks from pasted lists, CSV/text files or sitemaps: HTTP, redirects, TLS and expected text. / Importez listes, CSV ou sitemaps : statuts HTTP, redirections, TLS et texte. Résultat ponctuel, sans JavaScript ni démo fictive.",
    "version": "0.4",
    "x-build-id": "IbkWLSPos8kFhDJ8z"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/westbrook_data~url-health-check/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-westbrook_data-url-health-check",
        "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/westbrook_data~url-health-check/runs": {
      "post": {
        "operationId": "runs-sync-westbrook_data-url-health-check",
        "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/westbrook_data~url-health-check/run-sync": {
      "post": {
        "operationId": "run-sync-westbrook_data-url-health-check",
        "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": {
          "urls": {
            "title": "URLs / URL",
            "minItems": 0,
            "maxItems": 1000,
            "type": "array",
            "description": "1–1,000 http(s) URLs. A missing scheme means https. Duplicates are checked once; private addresses, credentials in URLs and other protocols are rejected without a request or charge. / 1 à 1 000 URL http(s). Sans schéma : https. Les doublons sont vérifiés une fois ; adresses privées, identifiants dans l’URL et autres protocoles sont refusés sans requête ni facturation.",
            "items": {
              "type": "string"
            }
          },
          "urlsText": {
            "title": "Paste URLs or CSV / Coller des URL ou un CSV",
            "maxLength": 2097152,
            "type": "string",
            "description": "Optional: one URL per line, or CSV with a url header. Max 2 MiB UTF-8; 1,000 combined entries across all sources. / Facultatif : une URL par ligne ou CSV avec en-tête url. 2 Mio UTF-8 maximum, 1 000 entrées cumulées."
          },
          "listUrl": {
            "title": "URL list file / Fichier de liste",
            "maxLength": 2048,
            "type": "string",
            "description": "Public HTTPS/HTTP UTF-8 text or CSV file URL. One URL per line or a named url column (comma/semicolon/tab separator). No authentication. 2 MiB max compressed and expanded. / URL publique d’un fichier texte ou CSV UTF-8. Une URL par ligne ou colonne url. Sans authentification, 2 Mio maximum avant/après décompression."
          },
          "sitemapUrl": {
            "title": "Sitemap or index / Sitemap ou index",
            "maxLength": 2048,
            "type": "string",
            "description": "Public XML urlset or sitemapindex, optional gzip. Up to 20 sitemap documents, depth 3, 50 source HTTP requests, 60 s total import. 2 MiB/document compressed and expanded; 1,000 combined URL entries. / Sitemap XML ou index public, gzip accepté. 20 documents, profondeur 3, 50 requêtes source, 60 s au total ; 2 Mio/document avant/après décompression et 1 000 entrées cumulées."
          },
          "method": {
            "title": "HTTP method / Méthode",
            "enum": [
              "GET",
              "HEAD"
            ],
            "type": "string",
            "description": "GET reads the response (required for expected text); HEAD is lighter but some servers refuse it. / GET lit la réponse (requis pour le texte attendu) ; HEAD est plus léger mais certains serveurs le refusent.",
            "default": "GET"
          },
          "expectedStatus": {
            "title": "Expected status / Statuts attendus",
            "maxItems": 20,
            "type": "array",
            "description": "Final codes counted as success in `passed`: exact (301) or class (2xx). Default 2xx. / Codes finaux comptés comme succès dans `passed` : exact (301) ou classe (2xx). Défaut : 2xx.",
            "items": {
              "type": "string",
              "pattern": "^(?:[1-5][0-9][0-9]|[1-5][xX][xX])$"
            },
            "default": [
              "2xx"
            ]
          },
          "expectedText": {
            "title": "Expected text / Texte attendu",
            "maxLength": 200,
            "type": "string",
            "description": "Case-insensitive text that must appear in the first 256 KiB of the final page. Requires GET. Empty: no content check. / Texte (sans casse) à trouver dans les 256 premiers Kio de la page finale. Exige GET. Vide : pas de contrôle.",
            "default": ""
          },
          "minTlsDays": {
            "title": "Minimum certificate days / Jours minimum du certificat",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Fails `passed` if the HTTPS certificate expires within this many days. 0 disables the expiry threshold; an invalid certificate always fails. / `passed` échoue si le certificat HTTPS expire dans ce nombre de jours. 0 : pas de seuil ; un certificat invalide échoue toujours.",
            "default": 0
          },
          "timeoutSecs": {
            "title": "Timeout per URL (s) / Délai par URL (s)",
            "minimum": 1,
            "maximum": 60,
            "type": "integer",
            "description": "Total time for one URL including redirects and retries, 1–60. / Durée totale par URL, redirections et nouvelles tentatives comprises, 1 à 60.",
            "default": 10
          },
          "maxRedirects": {
            "title": "Maximum redirects / Redirections maximum",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "0 returns the first 3xx response as the result. / 0 renvoie la première réponse 3xx comme résultat.",
            "default": 5
          },
          "retries": {
            "title": "Retries / Nouvelles tentatives",
            "minimum": 0,
            "maximum": 2,
            "type": "integer",
            "description": "Extra attempts for transient network errors only (timeout, reset). HTTP errors and DNS failures are not retried. / Tentatives supplémentaires pour les erreurs réseau transitoires seulement. Les erreurs HTTP et DNS ne sont pas rejouées.",
            "default": 1
          },
          "concurrency": {
            "title": "Parallel checks / Vérifications parallèles",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "1–20 URLs checked at the same time; results stay in input order. / 1 à 20 URL en parallèle ; les résultats restent dans l’ordre d’entrée.",
            "default": 5
          },
          "trackChanges": {
            "title": "Track changes between runs / Suivre les changements",
            "type": "boolean",
            "description": "Compares each URL's category and pass/fail verdict with the previous run using a private named store (only URL hashes, categories and verdicts, max 5,000 URLs per stateKey). Adds `previousCategory` and `changed`. On Apify, a concurrent run on the same stateKey is refused. / Compare la catégorie et le verdict de chaque URL au run précédent via un stockage nommé privé (empreintes d’URL, catégories et verdicts, 5 000 URL max par stateKey). Ajoute `previousCategory` et `changed`. Sur Apify, un run concurrent sur la même clé est refusé.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name / Nom de veille",
            "type": "string",
            "description": "Private monitor name for trackChanges, 1–64 letters/digits/_/-. Stored encrypted by Apify and decrypted automatically for the run. Keep the same value to reuse history. / Nom privé de veille pour trackChanges, 1 à 64 lettres/chiffres/_/-. Chiffré par Apify, relu automatiquement pendant le run. Conserver la valeur pour retrouver l’historique. Omit for default. Bounds checked when the run starts. / Omettre pour default. Bornes vérifiées au démarrage."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}