{
  "openapi": "3.0.1",
  "info": {
    "title": "Canada Federal Corporations - Corporations Canada Open Data",
    "description": "Canadian federal corporations from Corporations Canada's daily open data (OGL-Canada): corporation number, business number, names, type (CBCA, not-for-profit, co-op), status, anniversary date, last annual filing, city, province, postal FSA. Unofficial; not affiliated with Corporations Canada.",
    "version": "0.1",
    "x-build-id": "XylLIh3aqzhSbKqlg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jpopendata~canada-federal-corporations/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jpopendata-canada-federal-corporations",
        "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/jpopendata~canada-federal-corporations/runs": {
      "post": {
        "operationId": "runs-sync-jpopendata-canada-federal-corporations",
        "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/jpopendata~canada-federal-corporations/run-sync": {
      "post": {
        "operationId": "run-sync-jpopendata-canada-federal-corporations",
        "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": {
          "keywords": {
            "title": "Corporate name keywords",
            "type": "array",
            "description": "Optional. Words of the corporate name (English or French form; any case, accents ignored), e.g. \"maple\", \"holdings\", \"société\", \"chamber of commerce\". Every word of an entry must start a word of the name, so \"maple\" also finds \"Maplewood\" and \"maple leaf\" needs both words. A corporation matches if ANY entry matches.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "corporationNumbers": {
            "title": "Corporation numbers",
            "type": "array",
            "description": "Optional. Federal corporation numbers to look up, e.g. \"8660115\", \"123456-7\" or \"0537403\" (the dash and leading zeros may be left out). The run stops as soon as all of them are found; numbers not found are listed in the RUN_SUMMARY record. Up to 50,000 per run.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "businessNumbers": {
            "title": "Business numbers (BN)",
            "type": "array",
            "description": "Optional. 9-digit Canada Revenue Agency business numbers, e.g. \"835752437\" (a program account such as \"835752437RC0001\" also works; only the first 9 digits are compared). One BN can belong to several corporations, so a BN search reads every file it needs to the end.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "corporationTypes": {
            "title": "Corporation types",
            "type": "array",
            "description": "Optional. cbca (business corporation), nfp (not-for-profit), coop (cooperative), coop-associations, board-of-trade (boards of trade / chambers of commerce), special-act, cca-part-i, cca-part-ii (former Canada Corporations Act, inactive only), pension-fund-society, multiple-acts, other. Words such as \"business\", \"not-for-profit\", \"cooperative\", \"chamber of commerce\" or the full name of the Act also work. Empty = every type.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "statuses": {
            "title": "Statuses",
            "type": "array",
            "description": "Optional. active, inactive (amalgamated or discontinued, i.e. continued under another jurisdiction), dissolved. \"inactive or dissolved\" and \"all\" also work. Empty = every status.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "statusDetails": {
            "title": "Status details",
            "type": "array",
            "description": "Optional. Words of the status detail, e.g. \"dissolution pending\" (active corporations Corporations Canada intends to dissolve for non-compliance), \"intent to dissolve\", \"discontinuance pending\", \"amalgamated\", \"discontinued\", \"non-compliance\", \"dissolved by the corporation\", \"court order\". A corporation matches if its status detail contains ANY entry.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "provinces": {
            "title": "Provinces / territories (registered office)",
            "type": "array",
            "description": "Optional. Two-letter codes or names in English or French, e.g. \"ON\", \"Quebec\", \"Colombie-Britannique\", \"NL\" (the files write Newfoundland and Labrador as \"NF\"; both work). Empty = all of Canada.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "cities": {
            "title": "Cities (registered office)",
            "type": "array",
            "description": "Optional. City or town of the registered office as written in the register, e.g. \"Toronto\", \"Montréal\", \"Saint-Laurent\", \"St. John's\" (case, accents, dots and St/Saint are ignored). Neighbourhoods are often registered under their own name (e.g. \"Scarborough\", \"North York\"). If a city gives few results, try postal code prefixes.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "postalCodePrefixes": {
            "title": "Postal code prefixes (registered office)",
            "type": "array",
            "description": "Optional. The start of the postal code: 1 to 3 characters such as \"M\" (Toronto), \"M5V\" or \"H2\" (forward sortation area). A full postal code is reduced to its first 3 characters; full postal codes are never output.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "incorporatedFrom": {
            "title": "Incorporated from (anniversary date)",
            "type": "string",
            "description": "Optional. Earliest date of incorporation, amalgamation or continuance (Corporations Canada's \"anniversary date\"): YYYY-MM-DD (\"2026-09-01\"), a month (\"2026-09\"), a year (\"2025\"), \"yesterday\" or \"30 days ago\". The files are refreshed daily, so new incorporations appear within about a day.",
            "default": ""
          },
          "incorporatedTo": {
            "title": "Incorporated to (anniversary date)",
            "type": "string",
            "description": "Optional. Latest anniversary date (inclusive), same forms as above; a month (\"2026-09\") means up to its last day.",
            "default": ""
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 2000000,
            "type": "integer",
            "description": "Stop after this many corporations (1..2,000,000). A search that reaches this number early finishes in seconds; one that never reaches it reads every file it needs to the end (up to about 280 MB of CSV for all four files).",
            "default": 20
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Not needed: the open data files are served to Apify datacenter IPs directly. Leave off unless you have a reason to route the download through a proxy (one sticky session per run, no rotation).",
            "default": {
              "useApifyProxy": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}