{
  "openapi": "3.0.1",
  "info": {
    "title": "Nonprofit 990 Scraper: US Charity Financials",
    "description": "Scrape IRS Form 990 data for US nonprofits by name, state, NTEE sector, 501(c) type or EIN: revenue, expenses, assets, liabilities, filing PDFs and up to 50 years of filing history per organization. Export CSV, Excel, JSON, XML. No login or API key needed.",
    "version": "0.1",
    "x-build-id": "twoJ1O6tRa18beQk3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/recordsdata~nonprofit-financials-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-recordsdata-nonprofit-financials-scraper",
        "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/recordsdata~nonprofit-financials-scraper/runs": {
      "post": {
        "operationId": "runs-sync-recordsdata-nonprofit-financials-scraper",
        "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/recordsdata~nonprofit-financials-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-recordsdata-nonprofit-financials-scraper",
        "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": {
          "searchTerms": {
            "title": "Nonprofit names or keywords",
            "type": "array",
            "description": "One search per line, for example food bank, animal rescue or Red Cross. Quote a phrase (\"food bank\"), prefix + to require a word, - to exclude, end with * for a prefix match. Leave empty if you use EINs or filters.",
            "default": [
              "food bank"
            ],
            "items": {
              "type": "string"
            }
          },
          "eins": {
            "title": "EINs (exact organizations, optional)",
            "type": "array",
            "description": "9-digit employer identification numbers, for example 131837418 or 13-1837418. Runs before any search. Shorter numbers are padded with zeros.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum organizations",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stops after this many organizations, for example 10. Each organization is one billed record, its filing rows are billed separately. The free plan is capped at 10. With Only new filings on, it counts organizations checked.",
            "default": 10
          },
          "state": {
            "title": "State",
            "enum": [
              "",
              "AL",
              "AK",
              "AZ",
              "AR",
              "CA",
              "CO",
              "CT",
              "DE",
              "DC",
              "FL",
              "GA",
              "HI",
              "ID",
              "IL",
              "IN",
              "IA",
              "KS",
              "KY",
              "LA",
              "ME",
              "MD",
              "MA",
              "MI",
              "MN",
              "MS",
              "MO",
              "MT",
              "NE",
              "NV",
              "NH",
              "NJ",
              "NM",
              "NY",
              "NC",
              "ND",
              "OH",
              "OK",
              "OR",
              "PA",
              "RI",
              "SC",
              "SD",
              "TN",
              "TX",
              "UT",
              "VT",
              "VA",
              "WA",
              "WV",
              "WI",
              "WY",
              "PR",
              "VI",
              "GU",
              "AS",
              "MP"
            ],
            "type": "string",
            "description": "One US state or territory, for example California. Default: All states.",
            "default": ""
          },
          "nteeCategory": {
            "title": "Sector (NTEE category)",
            "enum": [
              "",
              "1",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8",
              "9",
              "10"
            ],
            "type": "string",
            "description": "One broad nonprofit sector, for example Education or Health. Default: All categories.",
            "default": ""
          },
          "irsSubsection": {
            "title": "Tax-exempt type (501(c) subsection)",
            "enum": [
              "",
              "2",
              "3",
              "4",
              "5",
              "6",
              "7",
              "8",
              "9",
              "10",
              "11",
              "12",
              "13",
              "14",
              "15",
              "16",
              "17",
              "18",
              "19",
              "21",
              "22",
              "23",
              "25",
              "26",
              "27",
              "28",
              "92"
            ],
            "type": "string",
            "description": "For example 501(c)(3) Charities or 501(c)(4) Social welfare. Default: All subsections.",
            "default": ""
          },
          "includeFilings": {
            "title": "Include IRS 990 filings",
            "type": "boolean",
            "description": "On: one row per filing year (990, 990-EZ or 990-PF) with revenue, expenses, assets, liabilities, net assets, contributions, program revenue, officer compensation and the PDF. Off: organization rows only, cheaper. Default: on.",
            "default": true
          },
          "maxFilingsPerOrg": {
            "title": "Filings per organization",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Newest tax year first, counted after the year and form filters, for example 5. Default 10.",
            "default": 10
          },
          "startYear": {
            "title": "First tax year",
            "minimum": 1990,
            "maximum": 2100,
            "type": "integer",
            "description": "Only filings for this tax year or later, for example 2018. Empty = no limit. Applies to filing rows only."
          },
          "endYear": {
            "title": "Last tax year",
            "minimum": 1990,
            "maximum": 2100,
            "type": "integer",
            "description": "Only filings for this tax year or earlier, for example 2022. Empty = no limit. Must not be before the first tax year."
          },
          "formTypes": {
            "title": "Form types",
            "type": "array",
            "description": "Form 990 (standard), 990-EZ (small organizations) or 990-PF (private foundations). Empty = every form.",
            "items": {
              "type": "string",
              "enum": [
                "990",
                "990-EZ",
                "990-PF"
              ],
              "enumTitles": [
                "Form 990 (standard return)",
                "Form 990-EZ (short form)",
                "Form 990-PF (private foundations)"
              ]
            },
            "default": []
          },
          "onlyNew": {
            "title": "Only new organizations and filings",
            "type": "boolean",
            "description": "Skips what earlier runs of the same search already delivered. An organization comes back with only its new filing rows. Skipped rows are not billed.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name (optional)",
            "type": "string",
            "description": "Separate memories for identical searches, for example sales-team and audit-team. Empty = one memory per search.",
            "default": ""
          },
          "resetSeen": {
            "title": "Forget what was already delivered",
            "type": "boolean",
            "description": "Starts the monitor over for this search. Turn it off again after one run.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}