{
  "openapi": "3.0.1",
  "info": {
    "title": "Canadian Charities with Financials (CRA T3010)",
    "description": "Every Canadian registered charity that filed a T3010 return, with revenue, donations, government funding, expenses, assets, staff, and website. Filter by category, province, city, designation, or revenue.",
    "version": "0.1",
    "x-build-id": "bZVFptJcpTtosSYGA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tapedawn~canada-charity-register/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tapedawn-canada-charity-register",
        "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/tapedawn~canada-charity-register/runs": {
      "post": {
        "operationId": "runs-sync-tapedawn-canada-charity-register",
        "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/tapedawn~canada-charity-register/run-sync": {
      "post": {
        "operationId": "run-sync-tapedawn-canada-charity-register",
        "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": {
          "maxItems": {
            "title": "Maximum charities",
            "minimum": 1,
            "maximum": 200000,
            "type": "integer",
            "description": "Stop after this many charities have been saved.",
            "default": 1000
          },
          "businessNumbers": {
            "title": "Business numbers",
            "type": "array",
            "description": "Look up specific charities by registration number (e.g. 888697794RR0001) or the 9-digit business number.",
            "items": {
              "type": "string"
            }
          },
          "nameContains": {
            "title": "Name contains",
            "type": "string",
            "description": "Keep charities whose name contains this text."
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Keep charities in these CRA categories.",
            "items": {
              "type": "string",
              "enum": [
                "0001",
                "0002",
                "0010",
                "0011",
                "0012",
                "0013",
                "0014",
                "0015",
                "0030",
                "0040",
                "0050",
                "0060",
                "0070",
                "0080",
                "0090",
                "0100",
                "0110",
                "0120",
                "0130",
                "0140",
                "0150",
                "0155",
                "0160",
                "0170",
                "0175",
                "0180",
                "0190",
                "0200",
                "0210",
                "0215"
              ],
              "enumTitles": [
                "0001 - Organizations Relieving Poverty",
                "0002 - Foundations Relieving Poverty",
                "0010 - Teaching Institutions",
                "0011 - Support of schools and education",
                "0012 - Education in the arts",
                "0013 - Educational organizations not elsewhere categorized",
                "0014 - Research",
                "0015 - Foundations Advancing Education",
                "0030 - Christianity",
                "0040 - Islam",
                "0050 - Judaism",
                "0060 - Other Religions",
                "0070 - Support of Religion",
                "0080 - Ecumenical and Inter-faith Organizations",
                "0090 - Foundations Advancing Religions",
                "0100 - Core Health Care",
                "0110 - Supportive Health Care",
                "0120 - Protective Health Care",
                "0130 - Health Care Products",
                "0140 - Complementary or Alternative Health Care",
                "0150 - Relief of the Aged",
                "0155 - Upholding Human Rights",
                "0160 - Community Resource",
                "0170 - Environment",
                "0175 - Agriculture",
                "0180 - Animal Welfare",
                "0190 - Arts",
                "0200 - Public Amenities",
                "0210 - Foundations",
                "0215 - National Arts Service Organizations"
              ]
            }
          },
          "designations": {
            "title": "Designations",
            "type": "array",
            "description": "Keep charities with these designations.",
            "items": {
              "type": "string",
              "enum": [
                "Charitable organization",
                "Public foundation",
                "Private foundation"
              ]
            }
          },
          "provinces": {
            "title": "Provinces",
            "type": "array",
            "description": "Keep charities in these provinces or territories.",
            "items": {
              "type": "string",
              "enum": [
                "AB",
                "BC",
                "MB",
                "NB",
                "NL",
                "NS",
                "NT",
                "NU",
                "ON",
                "PE",
                "QC",
                "SK",
                "YT"
              ]
            }
          },
          "cities": {
            "title": "Cities",
            "type": "array",
            "description": "Keep charities in these cities, for example Toronto or Vancouver.",
            "items": {
              "type": "string"
            }
          },
          "postalCodePrefixes": {
            "title": "Postal code prefixes",
            "type": "array",
            "description": "Keep charities whose postal code starts with any of these, for example M5V or V6.",
            "items": {
              "type": "string"
            }
          },
          "minRevenue": {
            "title": "Minimum total revenue (CAD)",
            "type": "integer",
            "description": "Keep charities whose latest return shows at least this total revenue."
          },
          "maxRevenue": {
            "title": "Maximum total revenue (CAD)",
            "type": "integer",
            "description": "Keep charities whose latest return shows at most this total revenue."
          },
          "minFullTimeStaff": {
            "title": "Minimum full-time staff",
            "type": "integer",
            "description": "Keep charities with at least this many permanent full-time positions."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}