{
  "openapi": "3.0.1",
  "info": {
    "title": "Canada Corporations Scraper: Federal Register, No Login",
    "description": "Federally incorporated Canadian corporations from the Corporations Canada open data: number, BN, name, status, type, address, directors range. Filter by province, city, status and date. $1 per 1,000 results, platform usage included.",
    "version": "0.1",
    "x-build-id": "To0S7dCndJyBe1NS5"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/one_dollar_store~canada-federal-corporations-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-one_dollar_store-canada-federal-corporations-search",
        "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/one_dollar_store~canada-federal-corporations-search/runs": {
      "post": {
        "operationId": "runs-sync-one_dollar_store-canada-federal-corporations-search",
        "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/one_dollar_store~canada-federal-corporations-search/run-sync": {
      "post": {
        "operationId": "run-sync-one_dollar_store-canada-federal-corporations-search",
        "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": {
          "statuses": {
            "title": "Status",
            "type": "array",
            "description": "Keep corporations with one of these statuses. The default is Active. Inactive means amalgamated or discontinued; dissolved corporations are listed too. Clear the list for all three. Reading inactive corporations means reading the larger files.",
            "items": {
              "type": "string",
              "enum": [
                "Active",
                "Inactive",
                "Dissolved"
              ],
              "enumTitles": [
                "Active",
                "Inactive (amalgamated or discontinued)",
                "Dissolved"
              ]
            },
            "default": [
              "Active"
            ]
          },
          "corporationTypes": {
            "title": "Corporation types",
            "type": "array",
            "description": "Keep these kinds of corporation. Leave empty for all. Business corporations (CBCA) are the ordinary companies; the others are not-for-profits, cooperatives, boards of trade and similar bodies.",
            "items": {
              "type": "string",
              "enum": [
                "business",
                "not-for-profit",
                "cooperative",
                "board-of-trade",
                "special-act",
                "canada-corporations-act",
                "pension-fund-society",
                "other"
              ],
              "enumTitles": [
                "Business corporation (CBCA)",
                "Not-for-profit corporation",
                "Cooperative",
                "Board of trade",
                "Special Act corporation",
                "Canada Corporations Act corporation (old regime)",
                "Pension fund society",
                "Other"
              ]
            }
          },
          "provinces": {
            "title": "Provinces and territories",
            "type": "array",
            "description": "Keep corporations whose registered office is in these provinces or territories. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "AB",
                "BC",
                "MB",
                "NB",
                "NF",
                "NS",
                "NT",
                "NU",
                "ON",
                "PE",
                "QC",
                "SK",
                "YT"
              ],
              "enumTitles": [
                "Alberta (AB)",
                "British Columbia (BC)",
                "Manitoba (MB)",
                "New Brunswick (NB)",
                "Newfoundland and Labrador (NF)",
                "Nova Scotia (NS)",
                "Northwest Territories (NT)",
                "Nunavut (NU)",
                "Ontario (ON)",
                "Prince Edward Island (PE)",
                "Quebec (QC)",
                "Saskatchewan (SK)",
                "Yukon (YT)"
              ]
            }
          },
          "cities": {
            "title": "Cities",
            "maxItems": 200,
            "type": "array",
            "description": "Keep corporations whose registered office city is one of these, for example Toronto or Montreal. Capital letters do not matter. Spell the city as the register does.",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postal code starts",
            "maxItems": 200,
            "type": "array",
            "description": "Keep corporations whose postal code starts with one of these, for example M5V, K1 or H3B 2. The first letter alone is not accepted; give at least the letter and digit.",
            "items": {
              "type": "string"
            }
          },
          "nameContains": {
            "title": "Name contains",
            "maxItems": 50,
            "type": "array",
            "description": "Keep corporations whose name (either form) contains any of these words or phrases. Capital letters do not matter.",
            "items": {
              "type": "string"
            }
          },
          "nameExcludes": {
            "title": "Name does not contain",
            "maxItems": 50,
            "type": "array",
            "description": "Drop corporations whose name contains any of these words or phrases.",
            "items": {
              "type": "string"
            }
          },
          "incorporatedFrom": {
            "title": "Anniversary date from",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Keep corporations whose anniversary date (the date of incorporation, amalgamation or continuance) is on or after this date (YYYY-MM-DD)."
          },
          "incorporatedTo": {
            "title": "Anniversary date until",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Keep corporations whose anniversary date is on or before this date (YYYY-MM-DD)."
          },
          "lastFilingYearFrom": {
            "title": "Last annual filing year from",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Keep corporations whose last annual return was filed for this year or later."
          },
          "lastFilingYearTo": {
            "title": "Last annual filing year until",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Keep corporations whose last annual return was filed for this year or earlier. Corporations with no annual filing are not matched."
          },
          "hasBusinessNumber": {
            "title": "Has a business number",
            "enum": [
              "any",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "Keep only corporations with a federal business number, or only those without.",
            "default": "any"
          },
          "dissolutionPending": {
            "title": "Dissolution pending",
            "enum": [
              "any",
              "yes",
              "no"
            ],
            "type": "string",
            "description": "Keep only active corporations that Corporations Canada has flagged for dissolution, or only those that are not flagged.",
            "default": "any"
          },
          "language": {
            "title": "Language of the files",
            "enum": [
              "en",
              "fr"
            ],
            "type": "string",
            "description": "The files exist in English and in French. The corporations are the same; only the status and Act names change. Filters accept the same values in both.",
            "default": "en"
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 10,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many corporations (minimum 10, maximum 100,000). The files hold about 1.58 million corporations in total; active ones are about 697,000.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}