{
  "openapi": "3.0.1",
  "info": {
    "title": "Charity Lookup: Is It a Registered Charity? US, UK, CA, AU",
    "description": "Charity lookup: check if a charity is registered and active in one call across 4 official registers: IRS (US), Charity Commission (England & Wales), CRA (Canada) and ACNC (Australia). Search by name or number. One normalised schema, no personal data, source and licence on every record.",
    "version": "1.0",
    "x-build-id": "AGrC801wHWfJz6vMC"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/wooden_scanner_c1n~charity-verification-multi-country/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-wooden_scanner_c1n-charity-verification-multi-country",
        "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/wooden_scanner_c1n~charity-verification-multi-country/runs": {
      "post": {
        "operationId": "runs-sync-wooden_scanner_c1n-charity-verification-multi-country",
        "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/wooden_scanner_c1n~charity-verification-multi-country/run-sync": {
      "post": {
        "operationId": "run-sync-wooden_scanner_c1n-charity-verification-multi-country",
        "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": {
          "queries": {
            "title": "Charity names or registration numbers",
            "type": "array",
            "description": "One per line. Names match every word you type (accents and punctuation ignored). Numbers are detected automatically: US EIN (53-0196605), England & Wales charity number (202918, or 202918-1 for a linked charity), Canadian business number (119219814 or 119219814RR0001), Australian ABN (50 169 561 394) or Irish RCN (20078829). Leave empty and set 'Registered since' to list new registrations instead.",
            "items": {
              "type": "string"
            }
          },
          "countries": {
            "title": "Registers to check",
            "type": "array",
            "description": "Which national registers to search. US = IRS exempt organisations, GB = Charity Commission for England and Wales, CA = Canada Revenue Agency, AU = ACNC, IE = Charities Regulator (Ireland). Ireland is off by default: the regulator's download server often blocks cloud servers, and when it does you get a free 'Source unavailable' row instead of results.",
            "items": {
              "type": "string",
              "enum": [
                "US",
                "GB",
                "CA",
                "AU",
                "IE"
              ],
              "enumTitles": [
                "United States (IRS)",
                "England & Wales (Charity Commission)",
                "Canada (CRA)",
                "Australia (ACNC)",
                "Ireland (Charities Regulator, beta)"
              ]
            },
            "default": [
              "US",
              "GB",
              "CA",
              "AU"
            ]
          },
          "usStates": {
            "title": "US states (optional, faster)",
            "type": "array",
            "description": "Two-letter state codes (e.g. NY, CA, DC; PR for Puerto Rico; XX for international) to limit the US search to those states' IRS files. Leave EMPTY to search every state: that reads about 350 MB of IRS data and adds roughly 20-40 seconds.",
            "items": {
              "type": "string"
            }
          },
          "matchMode": {
            "title": "Name matching",
            "enum": [
              "words",
              "startsWith",
              "exact"
            ],
            "type": "string",
            "description": "words: every word of your query appears in the charity's name (default). startsWith: the name starts with your query. exact: the whole name equals your query (a leading 'The' and punctuation are ignored). Exact matches always rank first.",
            "default": "words"
          },
          "statusFilter": {
            "title": "Status",
            "enum": [
              "active",
              "all"
            ],
            "type": "string",
            "description": "active: only charities that are currently registered (default). all: also removed (England & Wales) and IRS auto-revoked (US) organisations. Number lookups always return a match whatever its status, so you can see that a charity was removed or revoked.",
            "default": "active"
          },
          "registeredSince": {
            "title": "Registered since (YYYY-MM-DD)",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only charities registered on or after this date. With no queries, returns the newest registrations (a 'new charities' feed for the US, England & Wales and Australia; Canada and Ireland publish no registration dates and are skipped). US dates are IRS ruling months."
          },
          "usOnly501c3": {
            "title": "US: 501(c)(3) charities only",
            "type": "boolean",
            "description": "On (default): US name searches return only 501(c)(3) charities. Off: also other tax-exempt organisations (social welfare, unions, clubs, business leagues...). An exact EIN lookup always returns the organisation whatever its type.",
            "default": true
          },
          "maxResultsPerQuery": {
            "title": "Max matches per query per register",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Best matches returned for each query in each register (exact matches first, then larger charities). In 'Registered since' mode this caps the number of new charities per register.",
            "default": 10
          },
          "maxItems": {
            "title": "Max charity records (whole run)",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Hard cap on charged charity records for the run. You pay per record returned.",
            "default": 200
          },
          "includeNotFound": {
            "title": "Add 'not found' rows (free)",
            "type": "boolean",
            "description": "On (default): when a query has no match in a register, a free row with found=false says so (useful for verification audits). These rows are not charged.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}