{
  "openapi": "3.0.1",
  "info": {
    "title": "New Nonprofits Feed: IRS 501(c)(3) Recognitions & Revocations",
    "description": "Feed of newly IRS-recognized, revoked and reinstated US nonprofits (501(c)(3) and all 501(c) types) from official IRS bulk data. Filter by state, NTEE cause, subsection, assets/income, keyword. EIN, city, ruling date, foundation status, plain-English codes. New-since-last-run mode.",
    "version": "0.1",
    "x-build-id": "jELFb1Nn3ATdzCA8p"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/moment-data~nonprofit-new-registrations-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-moment-data-nonprofit-new-registrations-feed",
        "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/moment-data~nonprofit-new-registrations-feed/runs": {
      "post": {
        "operationId": "runs-sync-moment-data-nonprofit-new-registrations-feed",
        "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/moment-data~nonprofit-new-registrations-feed/run-sync": {
      "post": {
        "operationId": "run-sync-moment-data-nonprofit-new-registrations-feed",
        "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": {
          "eventTypes": {
            "title": "Event types",
            "type": "array",
            "description": "newlyRecognized: organizations whose IRS exemption ruling date falls in the window (Business Master File). revoked: organizations newly posted to the IRS Automatic Revocation List (lost exemption for not filing 3 years). reinstated: revoked organizations whose exemption was reinstated in the window. Empty = newlyRecognized + revoked.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "States",
            "type": "array",
            "description": "2-letter codes, e.g. CO, NY, TX, DC, PR. Empty = all states (slower: scans the full national files, about 1 minute). Picking states makes runs much faster.",
            "items": {
              "type": "string"
            }
          },
          "nteeCategories": {
            "title": "NTEE cause categories",
            "type": "array",
            "description": "NTEE letters or codes (B = Education, E = Health Care, P = Human Services, X = Religion, T = Foundations; E20 = Hospitals, B82 = Scholarships) or plain words: education, health, housing, animals, arts, environment, youth, religion, food, sports, veterans, foundations... Any match. Only organizations with BMF data (newlyRecognized, reinstated) can match.",
            "items": {
              "type": "string"
            }
          },
          "subsection": {
            "title": "Exemption type (subsection)",
            "type": "array",
            "description": "e.g. 501(c)(3), 501(c)(4), 501(c)(6), c7, 3, 529, 4947. Empty = all types.",
            "items": {
              "type": "string"
            }
          },
          "charityType": {
            "title": "Charity type",
            "enum": [
              "any",
              "publicCharity",
              "privateFoundation"
            ],
            "type": "string",
            "description": "Filter by IRS foundation status (BMF FOUNDATION code).",
            "default": "any"
          },
          "newOrganizationsOnly": {
            "title": "Brand-new organizations only",
            "type": "boolean",
            "description": "newlyRecognized only: drop organizations that were previously on the IRS revocation list or already have a Form 990 tax period on file (re-determinations of older groups). Every record also carries likelyNewOrganization / previouslyRevoked / hasPriorFilings flags.",
            "default": false
          },
          "rulingWithinMonths": {
            "title": "Ruling within (months)",
            "minimum": 1,
            "maximum": 600,
            "type": "integer",
            "description": "newlyRecognized: IRS ruling (recognition) month within the last N months, counting the current month. The IRS refreshes the BMF monthly, so the newest month is usually 1-2 months back. In window mode an empty result widens to 12 months once.",
            "default": 3
          },
          "revokedWithinMonths": {
            "title": "Revoked / reinstated within (months)",
            "minimum": 1,
            "maximum": 240,
            "type": "integer",
            "description": "revoked: IRS revocation posting date within the last N months. reinstated: reinstatement date within the last N months.",
            "default": 3
          },
          "minAssets": {
            "title": "Minimum assets ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Only organizations whose latest BMF asset amount is at least this. Newly recognized organizations often show 0 until their first Form 990."
          },
          "minIncome": {
            "title": "Minimum income ($)",
            "minimum": 0,
            "type": "integer",
            "description": "Only organizations whose latest BMF income amount is at least this."
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Words that must all appear in the organization name, alternate name or city, e.g. \"food bank\", \"PTA\", \"Denver\". Comma-separate alternatives: \"church, ministries\"."
          },
          "maxItems": {
            "title": "Max organizations per run",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap on delivered records (also caps your spend). Split evenly across the selected event types, newest first.",
            "default": 40
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "window",
              "sinceLastRun"
            ],
            "type": "string",
            "description": "window (default): every match in the window, no saved state. sinceLastRun: skips organizations (per event type) already delivered under this State key; use for daily/weekly schedules and alerts.",
            "default": "window"
          },
          "stateKey": {
            "title": "State key",
            "type": "string",
            "description": "Name of the saved history for sinceLastRun mode (stored in the named key-value store nonprofit-new-registrations-feed-state). Use one key per schedule.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}