{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Insolvency Notices Scraper (The Gazette, Liquidations)",
    "description": "UK insolvency notices from The Gazette: winding-up petitions and orders, liquidations, administrations, creditors' meetings and dividends, with company number, court, case number and the insolvency practitioner firm. Monitor companies nightly. Export to JSON, CSV or Excel, or via API.",
    "version": "1.0",
    "x-build-id": "qd0vIX1kVtMfn2WFt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyscrape~uk-insolvency-notices-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyscrape-uk-insolvency-notices-scraper",
        "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/steadyscrape~uk-insolvency-notices-scraper/runs": {
      "post": {
        "operationId": "runs-sync-steadyscrape-uk-insolvency-notices-scraper",
        "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/steadyscrape~uk-insolvency-notices-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-steadyscrape-uk-insolvency-notices-scraper",
        "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": {
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "The corporate insolvency notice types of The Gazette's own search form: winding-up petitions and orders, resolutions for winding-up, administrations, liquidator appointments, creditors' meetings, dividends, final meetings and more. A group (\"all types\") takes every type under it. Empty takes every corporate insolvency notice. Personal insolvency and deceased estates are not offered.",
            "items": {
              "type": "string",
              "enum": [
                "G305010100",
                "G405010101",
                "G405010102",
                "G405010105",
                "G405010103",
                "G405010104",
                "G305010200",
                "G405010201",
                "G405010202",
                "G405010207",
                "G405010203",
                "G405010204",
                "G405010205",
                "G405010206",
                "G305010300",
                "G405010301",
                "G405010302",
                "G405010314",
                "G405010303",
                "G405010304",
                "G405010305",
                "G405010312",
                "G405010313",
                "G405010306",
                "G405010307",
                "G405010308",
                "G405010309",
                "G405010310",
                "G405010311",
                "G305010400",
                "G405010401",
                "G405010402",
                "G405010403",
                "G405010404",
                "G405010405",
                "G305010500",
                "G405010501",
                "G405010502",
                "G405010504",
                "G405010503",
                "G405010001",
                "G405010002",
                "G405010003",
                "G405010004",
                "G405010005",
                "G405010007",
                "G405010006"
              ],
              "enumTitles": [
                "Administration (all types)",
                "Administration: administration orders",
                "Administration: appointment of administrators",
                "Administration: deemed consent",
                "Administration: meetings of creditors",
                "Administration: notices to members",
                "Creditors' voluntary liquidation (all types)",
                "Creditors' voluntary liquidation: annual liquidation meetings",
                "Creditors' voluntary liquidation: appointment of liquidators",
                "Creditors' voluntary liquidation: deemed consent",
                "Creditors' voluntary liquidation: final meetings",
                "Creditors' voluntary liquidation: meetings of creditors",
                "Creditors' voluntary liquidation: notices to creditors",
                "Creditors' voluntary liquidation: resolutions for winding-up",
                "Liquidation by the court (all types)",
                "Liquidation by the court: annual meeting",
                "Liquidation by the court: appointment of liquidators",
                "Liquidation by the court: deemed consent",
                "Liquidation by the court: dismissal of winding-up petition",
                "Liquidation by the court: final meetings",
                "Liquidation by the court: meetings of creditors",
                "Liquidation by the court: notice of dividends",
                "Liquidation by the court: notice of intended dividends",
                "Liquidation by the court: notices to creditors",
                "Liquidation by the court: petitions to wind up",
                "Liquidation by the court: public examinations",
                "Liquidation by the court: release of liquidator",
                "Liquidation by the court: service of petition",
                "Liquidation by the court: winding-up orders",
                "Members' voluntary liquidation (all types)",
                "Members' voluntary liquidation: annual liquidation meetings",
                "Members' voluntary liquidation: appointment of liquidators",
                "Members' voluntary liquidation: final meetings",
                "Members' voluntary liquidation: notices to creditors",
                "Members' voluntary liquidation: resolutions for voluntary winding-up",
                "Receivership (all types)",
                "Receivership: appointment of administrative receivers",
                "Receivership: appointment of receivers",
                "Receivership: deemed consent",
                "Receivership: meetings of creditors",
                "Insolvency practitioner applications",
                "Moratoria",
                "Notices of dividends",
                "Other corporate insolvency notices",
                "Overseas territories and cross-border insolvencies",
                "Qualifying decision procedure",
                "Re-use of a prohibited name"
              ]
            },
            "default": []
          },
          "publishedInLastDays": {
            "title": "Published in the last days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Notices published in this many days up to today (UK), today included, which keeps a schedule moving. Ignored when you fill in one of the two days below, and with company numbers, which read their whole history."
          },
          "publishedFrom": {
            "title": "Published from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "<code>YYYY-MM-DD</code>, included."
          },
          "publishedTo": {
            "title": "Published to",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "<code>YYYY-MM-DD</code>, included."
          },
          "text": {
            "title": "Text",
            "type": "string",
            "description": "Words the notice must contain, the way the site's search box takes them: a company name, a trade (<code>roofing</code>), a court or a town.",
            "default": ""
          },
          "companyNumbers": {
            "title": "Company numbers",
            "type": "array",
            "description": "UK company numbers to watch, e.g. <code>11440302</code> or <code>SC606766</code>: every corporate insolvency notice that names each, one search per number, under the notice types and days above. Turn on <b>Only new notices</b> and schedule it to hear of a new one the night it is published.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "postcode": {
            "title": "Near a postcode",
            "type": "string",
            "description": "Notices whose addresses lie near this UK postcode, e.g. <code>M1 1AE</code>.",
            "default": ""
          },
          "distanceMiles": {
            "title": "Distance from the postcode",
            "enum": [
              "1",
              "5",
              "10",
              "15",
              "20",
              "25",
              "30"
            ],
            "type": "string",
            "description": "In miles, as the site offers it.",
            "default": "5"
          },
          "readNoticePages": {
            "title": "Read each notice's page",
            "type": "boolean",
            "description": "On: each notice is read from its own page, for the company number, registered office, nature of business, court and case number, petitioner, the dates (appointment, resolution, petition, order, meeting, last day for claims) and the insolvency practitioners' firm. The site allows one request every 10 seconds, so that is about 360 notices an hour. Off: only what the search list shows (company, notice type, date, place, and the company number when the list prints it), 100 notices a request, at the lower price.",
            "default": true
          },
          "onlyNewNotices": {
            "title": "Only new notices",
            "type": "boolean",
            "description": "Deliver only notices an earlier run of these same filters did not deliver. For a nightly schedule: the first run delivers what matches, the next ones only what is new.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum notices",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Most notices this run delivers.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}