{
  "openapi": "3.0.1",
  "info": {
    "title": "US Single Audit Leads Scraper (Federal Audit Clearinghouse)",
    "description": "Scrape the Federal Audit Clearinghouse (SF-SAC): every US org filing a Single Audit — nonprofits, governments, universities, tribes — plus their auditor CPA firms. Name, EIN, email, phone, federal $ spent, programs, findings & lead score. Grant-recipient + CPA-firm B2B leads with monitoring.",
    "version": "0.1",
    "x-build-id": "PzUCenf6YExqiPcKq"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~single-audit-leads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-single-audit-leads-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/scrapesage~single-audit-leads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-single-audit-leads-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/scrapesage~single-audit-leads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-single-audit-leads-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": {
          "mode": {
            "title": "Output mode",
            "enum": [
              "audits",
              "auditors"
            ],
            "type": "string",
            "description": "audits = one record per Single Audit (the recipient organization, enriched with its auditor CPA firm and federal programs). auditors = one record per auditor CPA / audit firm, aggregated across all matching audits (client count, total client federal $, states & entity types served).",
            "default": "audits"
          },
          "auditYears": {
            "title": "Audit years",
            "uniqueItems": true,
            "type": "array",
            "description": "Single Audit report years to include (e.g. [\"2024\",\"2023\"]). The Clearinghouse holds audits from 2016 onward. Leave empty to use the two most recent years.",
            "items": {
              "type": "string"
            }
          },
          "states": {
            "title": "States",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only recipients in these US states (2-letter codes, e.g. [\"CA\",\"NY\",\"TX\"]). Leave empty for all states & territories. This filter is pushed down to the source for fast, precise queries.",
            "items": {
              "type": "string"
            }
          },
          "entityTypes": {
            "title": "Recipient entity types",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only these recipient types. Allowed values: non-profit, local (local government), state (state government), higher-ed (college/university), tribal, for-profit, unknown. Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "non-profit",
                "local",
                "state",
                "higher-ed",
                "tribal",
                "for-profit",
                "unknown"
              ],
              "enumTitles": [
                "Nonprofit (non-profit)",
                "Local Government (local)",
                "State Government (state)",
                "Higher Education (higher-ed)",
                "Tribal Government (tribal)",
                "For-Profit (for-profit)",
                "Unknown (unknown)"
              ]
            }
          },
          "auditType": {
            "title": "Audit type",
            "enum": [
              "any",
              "single-audit",
              "program-specific"
            ],
            "type": "string",
            "description": "Limit to a single audit type, or any.",
            "default": "any"
          },
          "minFederalExpended": {
            "title": "Minimum federal $ expended",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only recipients whose total federal awards expended is at least this value (USD). The Single Audit threshold is $750,000+, so all recipients are above it."
          },
          "maxFederalExpended": {
            "title": "Maximum federal $ expended",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only recipients whose total federal awards expended is at most this value (USD). Optional."
          },
          "withFindingsOnly": {
            "title": "With audit findings only",
            "type": "boolean",
            "description": "Keep only audits with a material weakness, significant deficiency, material noncompliance or going-concern finding — recipients with a clear compliance / remediation need.",
            "default": false
          },
          "materialWeaknessOnly": {
            "title": "Material weakness only",
            "type": "boolean",
            "description": "Keep only audits that disclosed an internal-control material weakness.",
            "default": false
          },
          "lowRiskOnly": {
            "title": "Low-risk auditees only",
            "type": "boolean",
            "description": "Keep only recipients designated as a low-risk auditee.",
            "default": false
          },
          "federalAgencyPrefixes": {
            "title": "Federal funding agency prefixes",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only recipients with at least one federal program from these agencies, by 2-digit CFDA/Assistance-Listing prefix (e.g. [\"93\"]=HHS, [\"84\"]=Education, [\"14\"]=HUD, [\"10\"]=USDA, [\"20\"]=Transportation, [\"97\"]=Homeland Security). Requires program enrichment (on by default).",
            "items": {
              "type": "string"
            }
          },
          "programNameContains": {
            "title": "Program name contains",
            "type": "string",
            "description": "Keep only recipients with a federal program whose name contains this text (case-insensitive, e.g. \"Head Start\", \"Medicaid\", \"Highway\", \"Title I\"). Requires program enrichment."
          },
          "nameQuery": {
            "title": "Recipient name contains",
            "type": "string",
            "description": "Keep only recipients whose organization name contains this text (case-insensitive). Optional."
          },
          "auditorFirmContains": {
            "title": "Auditor firm name contains",
            "type": "string",
            "description": "Keep only audits whose auditor CPA firm name contains this text — competitive intelligence: pull a CPA firm's entire Single Audit client book (e.g. \"CliftonLarsonAllen\", \"BKD\", \"Eide Bailly\"). Optional."
          },
          "cities": {
            "title": "Cities",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only recipients in these cities (case-insensitive exact match). Optional.",
            "items": {
              "type": "string"
            }
          },
          "withEmailOnly": {
            "title": "With recipient e-mail only",
            "type": "boolean",
            "description": "Keep only audits that carry a recipient (auditee) e-mail address.",
            "default": false
          },
          "withAuditorEmailOnly": {
            "title": "With auditor e-mail only",
            "type": "boolean",
            "description": "Keep only audits that carry an auditor CPA-firm e-mail address.",
            "default": false
          },
          "includeFederalPrograms": {
            "title": "Include federal program detail",
            "type": "boolean",
            "description": "Enrich each audit with its federal programs (CFDA number, funding agency, program name, amount expended, major / loan / pass-through flags, findings count) and a top-programs summary. Turn off for faster, lighter runs.",
            "default": true
          },
          "isPublicOnly": {
            "title": "Public audits only",
            "type": "boolean",
            "description": "Keep only audits flagged public by the Clearinghouse (recommended). A small share of audits are restricted (e.g. Indian Tribes) and excluded by default.",
            "default": true
          },
          "minLeadScore": {
            "title": "Minimum lead score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only records with a lead score at or above this value (0-100)."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "leadScore",
              "federalExpendedHigh",
              "recency",
              "name"
            ],
            "type": "string",
            "description": "Order of the output.",
            "default": "leadScore"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of records to return (and charge for).",
            "default": 1000
          },
          "maxRecordsScanned": {
            "title": "Max source records scanned",
            "minimum": 1,
            "type": "integer",
            "description": "Upper bound on how many source audits to read before filtering, to cap run time and API usage. Use state / year filters to keep result sets precise rather than raising this.",
            "default": 60000
          },
          "deduplicateResults": {
            "title": "Deduplicate",
            "type": "boolean",
            "description": "Drop duplicate audits that share the same report id.",
            "default": true
          },
          "includeRawFields": {
            "title": "Include raw source fields",
            "type": "boolean",
            "description": "Attach the raw source row (all original SF-SAC general columns) under sourceFields on each audit record.",
            "default": true
          },
          "monitorMode": {
            "title": "Monitoring mode (only new / changed)",
            "type": "boolean",
            "description": "Only return audits that are new or whose federal expenditures, findings or contacts changed since the last run with the same monitor key. Ideal on a Schedule to catch newly-filed Single Audits as fresh leads. Works independently of Apify Schedules.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Namespace for monitoring mode so independent monitors don't collide. Use a distinct key per saved configuration.",
            "default": "default"
          },
          "apiKey": {
            "title": "api.data.gov API key",
            "type": "string",
            "description": "Free api.data.gov key for the Federal Audit Clearinghouse API. The built-in DEMO_KEY works for small trial runs but is heavily rate-limited — grab your own free key in ~30 seconds at https://api.data.gov/signup/ for full-size runs. The key is only used to call the official FAC API.",
            "default": "DEMO_KEY"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. The Federal Audit Clearinghouse API is public and usually needs no proxy, so leave this off for the fastest queries.",
            "default": {
              "useApifyProxy": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}