{
  "openapi": "3.0.1",
  "info": {
    "title": "Canada New Incorporations — Company Leads + Directors",
    "description": "Daily feed of newly incorporated Canadian federal companies — name, business number, incorporation date, province, status. Optional director enrichment (names + addresses) turns each company into a contactable lead. Fresh B2B leads — JSON/CSV, ready for Clay, Make, n8n.",
    "version": "0.2",
    "x-build-id": "p43nP311Zd0MkzFbf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/truenorthdata~canada-new-incorporations/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-truenorthdata-canada-new-incorporations",
        "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/truenorthdata~canada-new-incorporations/runs": {
      "post": {
        "operationId": "runs-sync-truenorthdata-canada-new-incorporations",
        "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/truenorthdata~canada-new-incorporations/run-sync": {
      "post": {
        "operationId": "run-sync-truenorthdata-canada-new-incorporations",
        "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": {
          "incorporatedWithinDays": {
            "title": "Incorporated within (days)",
            "type": "integer",
            "description": "Return only corporations incorporated in the last N days. A fresh-company lead feed. Set 0 to return all active corporations (large). For windows up to 60 days, the Actor also probes the live registry to catch companies incorporated in the last ~1-2 weeks that are not yet in the daily bulk file.",
            "default": 30
          },
          "freshFrontier": {
            "title": "Include just-incorporated (live registry probe)",
            "type": "boolean",
            "description": "The daily bulk file lags real incorporations by ~1-2 weeks. When on, the Actor probes the official live registry forward from the newest bulk record to add companies incorporated in the last few days (with their true incorporation date). Adds a few minutes to the run. Only applies when 'Incorporated within (days)' is between 1 and 60.",
            "default": true
          },
          "provinces": {
            "title": "Provinces / territories",
            "type": "array",
            "description": "Two-letter codes of the registered office to include, e.g. 'ON', 'BC', 'QC', 'AB'. Leave empty for all of Canada.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "Filter by corporate name or city (e.g. 'consulting', 'holdings', 'Toronto'). Case-insensitive, matches any keyword.",
            "items": {
              "type": "string"
            }
          },
          "includeOtherTypes": {
            "title": "Include non-profits, co-ops, boards of trade",
            "type": "boolean",
            "description": "Also include 'other' active federal corporations (not-for-profit, cooperatives, boards of trade) in addition to business corporations.",
            "default": false
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since last run",
            "type": "boolean",
            "description": "Incremental mode: return only corporations (by corporation number) not seen in previous runs. Perfect for a daily new-company feed.",
            "default": false
          },
          "maxResults": {
            "title": "Max results",
            "type": "integer",
            "description": "Stop after this many corporations (cost guard). 0 = no limit.",
            "default": 500
          },
          "enrichDirectors": {
            "title": "Enrich with directors (names + addresses)",
            "type": "boolean",
            "description": "Look up each returned corporation in the official Corporations Canada API and attach its directors (names and service addresses). Great for outbound - turns a company into a contactable lead. Requires a free API key below. Rate-limited to ~55/min, so use with a small window (e.g. incorporatedWithinDays=1-7).",
            "default": false
          },
          "federalApiKey": {
            "title": "Federal Corporation API key",
            "type": "string",
            "description": "Free 'user-key' from the ISED API catalogue (api.ised-isde.canada.ca - subscribe to the Federal Corporation API 'Public Plan'). Required only when 'Enrich with directors' is on. Can also be set via the FEDERAL_API_KEY environment variable."
          },
          "maxEnrich": {
            "title": "Max director lookups",
            "type": "integer",
            "description": "Safety cap on how many corporations get a director API lookup per run (each lookup is one API call, throttled). Keeps big runs from being slow/hitting limits.",
            "default": 300
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}