{
  "openapi": "3.0.1",
  "info": {
    "title": "UK Charity Commission Register Data · SiteVerdict",
    "description": "Search all 185,000+ registered charities in England & Wales from the official open-data register (no key): income bands, activities, who/what/how, grant-makers, area. Add full profiles with 5-year financials via the Register API (your free key). Monitoring, no personal data by default.",
    "version": "1.0",
    "x-build-id": "tZhWTp3JIpCBL28AZ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/siteverdict~siteverdict-charity-commission-data/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-siteverdict-siteverdict-charity-commission-data",
        "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/siteverdict~siteverdict-charity-commission-data/runs": {
      "post": {
        "operationId": "runs-sync-siteverdict-siteverdict-charity-commission-data",
        "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/siteverdict~siteverdict-charity-commission-data/run-sync": {
      "post": {
        "operationId": "run-sync-siteverdict-siteverdict-charity-commission-data",
        "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": {
          "mode": {
            "title": "What do you want to do?",
            "enum": [
              "extract-search",
              "api-profiles",
              "api-search-name",
              "api-new-registrations"
            ],
            "type": "string",
            "description": "<b>Search the register</b> (open data, no key): filter every charity by income, area, activities and who/what/how. <b>Profiles</b>: full details + 5-year financials for registered numbers (API key). <b>Name search</b> and <b>New registrations</b> use the API too.",
            "default": "extract-search"
          },
          "registeredNumbers": {
            "title": "Registered charity numbers",
            "type": "array",
            "description": "e.g. 202918 (Oxfam), or 1123456-1 for a linked charity.",
            "items": {
              "type": "string"
            }
          },
          "names": {
            "title": "Charity names to search",
            "type": "array",
            "description": "Charity names to search.",
            "items": {
              "type": "string"
            }
          },
          "maxPerName": {
            "title": "Max matches per name",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Max matches per name.",
            "default": 5
          },
          "registeredFrom": {
            "title": "Registered from (new registrations)",
            "type": "string",
            "description": "YYYY-MM-DD"
          },
          "registeredTo": {
            "title": "Registered to (new registrations)",
            "type": "string",
            "description": "YYYY-MM-DD"
          },
          "statuses": {
            "title": "Registration status",
            "type": "array",
            "description": "Registration status.",
            "items": {
              "type": "string",
              "enum": [
                "registered",
                "removed"
              ]
            },
            "default": [
              "registered"
            ]
          },
          "minIncome": {
            "title": "Minimum latest income (£)",
            "minimum": 0,
            "type": "integer",
            "description": "Minimum latest income (£)."
          },
          "maxIncome": {
            "title": "Maximum latest income (£)",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum latest income (£)."
          },
          "incomeBands": {
            "title": "Income bands",
            "type": "array",
            "description": "Income bands.",
            "items": {
              "type": "string",
              "enum": [
                "under-10k",
                "10k-100k",
                "100k-500k",
                "500k-5m",
                "over-5m"
              ],
              "enumTitles": [
                "£0-10k",
                "£10k-100k",
                "£100k-500k",
                "£500k-5m",
                "Over £5m"
              ]
            }
          },
          "whatCategories": {
            "title": "What they do (contains)",
            "type": "array",
            "description": "e.g. education, health, arts, environment, poverty, animals, housing, religious, sport.",
            "items": {
              "type": "string"
            }
          },
          "whoCategories": {
            "title": "Who they help (contains)",
            "type": "array",
            "description": "e.g. children, elderly, disabilities, general public, other charities.",
            "items": {
              "type": "string"
            }
          },
          "howCategories": {
            "title": "How they work (contains)",
            "type": "array",
            "description": "e.g. makes grants, provides services, research, advocacy.",
            "items": {
              "type": "string"
            }
          },
          "grantMakersOnly": {
            "title": "Grant-makers only",
            "type": "boolean",
            "description": "Keep charities that make grants to individuals or organisations (grants research).",
            "default": false
          },
          "activityKeywords": {
            "title": "Activity keywords",
            "type": "array",
            "description": "Matched in the charity's activities text and name.",
            "items": {
              "type": "string"
            }
          },
          "nameKeywords": {
            "title": "Name keywords",
            "type": "array",
            "description": "Name keywords.",
            "items": {
              "type": "string"
            }
          },
          "postcodeAreas": {
            "title": "Postcode areas or districts",
            "type": "array",
            "description": "PL = whole Plymouth area; PL1 = that district only. Uses the charity's contact postcode.",
            "items": {
              "type": "string"
            }
          },
          "charityTypes": {
            "title": "Charity types",
            "type": "array",
            "description": "e.g. Charitable company, CIO, Trust, Other.",
            "items": {
              "type": "string"
            }
          },
          "registeredAfter": {
            "title": "Registered on/after",
            "type": "string",
            "description": "Registered on/after."
          },
          "registeredBefore": {
            "title": "Registered on/before",
            "type": "string",
            "description": "Registered on/before."
          },
          "reportingStatuses": {
            "title": "Reporting status",
            "type": "array",
            "description": "e.g. Submission Received, Submission Overdue, Recently Registered.",
            "items": {
              "type": "string"
            }
          },
          "companiesOnly": {
            "title": "Charitable companies only",
            "type": "boolean",
            "description": "Charitable companies only.",
            "default": false
          },
          "ciosOnly": {
            "title": "CIOs only",
            "type": "boolean",
            "description": "CIOs only.",
            "default": false
          },
          "mainCharitiesOnly": {
            "title": "Main charities only (skip linked/subsidiary)",
            "type": "boolean",
            "description": "Main charities only (skip linked/subsidiary).",
            "default": true
          },
          "sortBy": {
            "title": "Sort",
            "enum": [
              "none",
              "income-desc",
              "income-asc",
              "registered-desc"
            ],
            "type": "string",
            "description": "Sort.",
            "default": "none"
          },
          "maxResults": {
            "title": "Max charities",
            "minimum": 1,
            "maximum": 200000,
            "type": "integer",
            "description": "Max charities.",
            "default": 1000
          },
          "includeClassifications": {
            "title": "Include who/what/how",
            "type": "boolean",
            "description": "Include who/what/how.",
            "default": true
          },
          "includeTrusteeCount": {
            "title": "Include trustee count",
            "type": "boolean",
            "description": "Counts only; names are never read into the output in extract mode.",
            "default": false
          },
          "includeTrusteeNames": {
            "title": "Include trustee names (API modes, personal data)",
            "type": "boolean",
            "description": "Off by default. Names are personal data: you need a lawful basis (UK GDPR) and must not use them for unsolicited electronic marketing (PECR).",
            "default": false
          },
          "includeContactDetails": {
            "title": "Include charity contact address/phone/e-mail",
            "type": "boolean",
            "description": "Off by default (website and postcode district are always included). Contact details can belong to individuals.",
            "default": false
          },
          "monitorStateName": {
            "title": "Monitor name (API profiles)",
            "type": "string",
            "description": "Remembers income, status, year-end and trustee count per charity and reports changes next run.",
            "default": "default"
          },
          "onlyChanged": {
            "title": "Only output charities that changed",
            "type": "boolean",
            "description": "Only output charities that changed.",
            "default": false
          },
          "charityCommissionApiKey": {
            "title": "Charity Commission API key",
            "type": "string",
            "description": "Free subscription key from api-portal.charitycommission.gov.uk (Sign up > Products > Register of Charities). Needed for API modes only. Stored encrypted, never logged or written to output."
          },
          "sampleMode": {
            "title": "Sample mode (no network, no charge)",
            "type": "boolean",
            "description": "250 real register rows (contact fields removed) and two fictional API charities.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}