{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Gazette Insolvency Notices API: Winding-Up, Liquidation",
    "description": "UK Gazette winding-up petitions & orders, liquidations, administrations, bankruptcies as JSON: company number, court, case, petitioner (HMRC), practitioners, dates. Filter by type, region, postcode, watch-list; onlyNew alerts. No API key, no login. MCP-ready. Errors are free. $4 per 1,000 notices",
    "version": "0.1",
    "x-build-id": "xt6d49i6trskRqPib"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/actose~uk-gazette-insolvency-notices/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-actose-uk-gazette-insolvency-notices",
        "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/actose~uk-gazette-insolvency-notices/runs": {
      "post": {
        "operationId": "runs-sync-actose-uk-gazette-insolvency-notices",
        "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/actose~uk-gazette-insolvency-notices/run-sync": {
      "post": {
        "operationId": "run-sync-actose-uk-gazette-insolvency-notices",
        "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": {
          "noticeType": {
            "title": "Notice type",
            "enum": [
              "all",
              "corporate-insolvency",
              "personal-insolvency",
              "winding-up",
              "winding-up-petitions",
              "winding-up-orders",
              "liquidation",
              "creditors-voluntary-liquidation",
              "members-voluntary-liquidation",
              "administration",
              "administrator-appointments",
              "receivership",
              "dividends",
              "bankruptcy",
              "struck-off-restored"
            ],
            "type": "string",
            "description": "Family of Gazette notices to return. 'winding-up' = petitions + winding-up orders. 'liquidation' = voluntary liquidations (resolutions, liquidator appointments) and court liquidator appointments. 'struck-off-restored' = individual notices of companies removed from / restored to the register (codes 2609, 2600).",
            "default": "winding-up"
          },
          "noticeTypes": {
            "title": "Additional notice types",
            "type": "array",
            "description": "Optional: more notice types to combine with the one above (same values, e.g. \"administrator-appointments\", \"liquidation\").",
            "items": {
              "type": "string"
            }
          },
          "noticeCodes": {
            "title": "Gazette notice codes (advanced)",
            "type": "array",
            "description": "Optional raw 4-digit Gazette notice codes added to the selection, e.g. 2450 (petitions to wind up), 2452 (winding-up order), 2410 (appointment of administrators), 2443 (appointment of liquidators CVL), 2503 (bankruptcy orders). Full list: thegazette.co.uk/noticecodes.",
            "items": {
              "type": "string"
            }
          },
          "region": {
            "title": "Region (Gazette edition)",
            "enum": [
              "all",
              "england-wales",
              "scotland",
              "northern-ireland"
            ],
            "type": "string",
            "description": "London Gazette = England & Wales, Edinburgh Gazette = Scotland, Belfast Gazette = Northern Ireland.",
            "default": "all"
          },
          "postcodes": {
            "title": "Near postcodes or towns",
            "type": "array",
            "description": "Optional: only notices located within the radius of these UK postcodes or towns (max 10, combined with OR). Prefer postcodes or postcode districts (\"LS1\", \"M1 1AE\"): some town names are ambiguous.",
            "items": {
              "type": "string"
            }
          },
          "radiusMiles": {
            "title": "Radius (miles)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Search radius around each postcode. The Gazette accepts 1, 5, 10, 15, 20, 25 or 30 miles (other values are rounded).",
            "default": 10
          },
          "companyNumbers": {
            "title": "Company numbers to watch",
            "type": "array",
            "description": "Optional watch-list of Companies House numbers (e.g. 01234567, SC123456). Only notices about these companies are returned. Combine with onlyNew and a schedule to be alerted when a customer or supplier gets a winding-up petition.",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Optional full-text filter (company name, town, practitioner firm, \"Revenue and Customs\" for HMRC petitions...)."
          },
          "daysBack": {
            "title": "Days back",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Only notices published in the last N days (ignored when 'Published from' is set). 0 = no date limit.",
            "default": 7
          },
          "dateFrom": {
            "title": "Published from",
            "type": "string",
            "description": "Optional start publication date (YYYY-MM-DD). Overrides 'Days back'."
          },
          "dateTo": {
            "title": "Published to",
            "type": "string",
            "description": "Optional end publication date (YYYY-MM-DD)."
          },
          "maxItems": {
            "title": "Max notices",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of notices to return (and to be charged for) in this run.",
            "default": 100
          },
          "onlyNew": {
            "title": "Only new notices since the last run",
            "type": "boolean",
            "description": "For scheduled runs: return only notices not delivered by a previous run with the same filters (remembered in the named key-value store 'uk-gazette-insolvency-state'). Already-seen notices are never charged.",
            "default": false
          },
          "onlyWithCompanyNumber": {
            "title": "Only notices with a company number",
            "type": "boolean",
            "description": "Skip notices without a Companies House number (individuals, partnerships). Skipped notices are not charged.",
            "default": false
          },
          "includeDetails": {
            "title": "Structured details",
            "type": "boolean",
            "description": "Read the official structured record of each notice (company number, registered office, court, case number, petitioner, practitioners, key dates). Same price; turn off only for a faster, lighter run with feed fields.",
            "default": true
          },
          "includeRawData": {
            "title": "Include raw linked data",
            "type": "boolean",
            "description": "Add the full Gazette linked-data record of each notice in a 'linkedData' field.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}