# SBA PPP Loan Database & Business Leads Scraper (`logiover/sba-ppp-loan-database-scraper`) Actor

Export 11M+ official SBA Paycheck Protection Program loan records with borrower, lender, location, NAICS, jobs, approval, status and forgiveness data. Built for lenders, fintech, accounting, market research and business intelligence.

- **URL**: https://apify.com/logiover/sba-ppp-loan-database-scraper.md
- **Developed by:** [Logiover](https://apify.com/logiover) (community)
- **Categories:** Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## SBA PPP Loan Database & Business Leads Scraper

Export official U.S. Small Business Administration Paycheck Protection Program loan records as clean Apify dataset items. The source contains more than 11 million disbursed loans split across the SBA's current public FOIA files.

Each result can include borrower and project geography, NAICS, business type, reported jobs, approval and forgiveness amounts, loan status, servicing and originating lenders, demographic disclosures and use-of-proceeds fields. No SBA key, browser or proxy is required.

### What can you do with this Actor?

- Build lender, fintech, accounting and business-development datasets.
- Analyze PPP exposure, forgiveness, loan performance and industry distribution.
- Find businesses by state, county, city, NAICS, size, lender or amount.
- Research local economic impact and reported jobs.
- Enrich company, lender and market-intelligence warehouses.

### Input

| Field | Description |
| --- | --- |
| `states`, `cities`, `counties` | Exact borrower/project geography filters. |
| `borrowerKeyword` | Company or borrower name fragment. |
| `lenderKeyword` | Servicing or originating lender fragment. |
| `naicsPrefixes` | One or more industry-code prefixes. |
| `loanStatuses`, `businessTypes` | Exact source labels. |
| `minLoanAmount`, `maxLoanAmount` | Current approval amount range in USD. |
| `minJobsReported` | Minimum reported jobs. |
| `forgivenOnly` | Require a positive forgiveness amount. |
| `fileGroups` | Loans above $150K, up to $150K, or both. |
| `maxResults` | Result limit up to 500,000 per run. |

```json
{
  "states": ["TX", "FL"],
  "naicsPrefixes": ["72"],
  "minLoanAmount": 150000,
  "minJobsReported": 10,
  "forgivenOnly": true,
  "maxResults": 25000
}
```

### Output

One item represents one SBA PPP loan. Important fields include `loanNumber`, `borrowerName`, address and project geography, `naicsCode`, `businessType`, `jobsReported`, approval amounts, `loanStatus`, `forgivenessAmount`, lender identities and proceeds categories.

```json
{
  "loanNumber": "9777677704",
  "borrowerName": "PLEASANT PLACES, INC.",
  "borrowerCity": "North Charleston",
  "borrowerState": "SC",
  "naicsCode": "561730",
  "jobsReported": 73,
  "currentApprovalAmount": 736927.79,
  "loanStatus": "Paid in Full",
  "servicingLenderName": "Synovus Bank",
  "forgivenessAmount": 746336.24
}
```

### Scale and source freshness

The Actor discovers the current SBA file URLs from the official dataset page on every run instead of hard-coding a revision date. Files are parsed as streams, results are written in batches, and processing stops as soon as `maxResults` is reached. For very large extraction, split work by state, NAICS prefix or file group.

### Integrations and API

Run from Apify Console, REST API, JavaScript, Python or MCP. Export JSON, JSONL, CSV, Excel, XML and RSS; connect schedules, webhooks, Make, Zapier, Google Sheets, databases and BI tools.

```bash
curl -X POST "https://api.apify.com/v2/acts/logiover~sba-ppp-loan-database-scraper/runs?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"states":["CA"],"fileGroups":["over150k"],"maxResults":10000}'
```

### FAQ

**Does it require an SBA API key?** No.

**Does the default input work?** Yes. It exports the current over-$150K file up to the default limit.

**Can it return millions of available records?** The source pool exceeds 11 million. Each run is capped at 500,000 items; segment larger jobs.

**Why can the forgiveness amount exceed the original approval?** The Actor preserves the SBA-published values; source rules and accrued interest can affect the reported figure.

**Are all borrower fields populated?** No. Some fields are blank or withheld in the official FOIA release. Project geography is used as a fallback for convenient state/city output.

### Responsible use

This Actor is not affiliated with or endorsed by SBA. PPP data is a public government release, but it should not be treated as a current credit score, fraud finding or proof of wrongdoing. Verify consequential financial, legal and compliance decisions against authoritative records.

### Changelog

#### 2026-08-05

- Initial official SBA PPP bulk exporter.
- Added dynamic source discovery, memory-efficient streaming and buyer-oriented filters.
- Verified live default and filtered records against the current SBA PPP FOIA files.

# Actor input Schema

## `states` (type: `array`):

Two-letter borrower/project state codes. Empty means nationwide.

## `cities` (type: `array`):

Exact borrower/project city names, case-insensitive.

## `counties` (type: `array`):

Exact SBA project county names, case-insensitive.

## `borrowerKeyword` (type: `string`):

Case-insensitive company or borrower name fragment.

## `lenderKeyword` (type: `string`):

Case-insensitive servicing or originating lender name fragment.

## `naicsPrefixes` (type: `array`):

Industry code prefixes such as 72 for accommodation and food services or 541 for professional services.

## `loanStatuses` (type: `array`):

Exact SBA loan status labels such as Paid in Full or Exemption 4.

## `businessTypes` (type: `array`):

Exact types such as Corporation, LLC or Sole Proprietorship.

## `minLoanAmount` (type: `number`):

Minimum current approval amount in USD.

## `maxLoanAmount` (type: `number`):

Maximum current approval amount in USD.

## `minJobsReported` (type: `number`):

Only keep loans reporting at least this many jobs.

## `forgivenOnly` (type: `boolean`):

Only keep records with a positive forgiveness amount.

## `fileGroups` (type: `array`):

Choose loans above $150K, up to $150K, or both. Larger exports can use both groups.

## `maxResults` (type: `integer`):

Maximum unique PPP loan records saved.

## Actor input object example

```json
{
  "states": [],
  "cities": [],
  "counties": [],
  "borrowerKeyword": "",
  "lenderKeyword": "",
  "naicsPrefixes": [],
  "loanStatuses": [],
  "businessTypes": [],
  "forgivenOnly": false,
  "fileGroups": [
    "over150k"
  ],
  "maxResults": 200
}
```

# Actor output Schema

## `results` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "maxResults": 200
};

// Run the Actor and wait for it to finish
const run = await client.actor("logiover/sba-ppp-loan-database-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "maxResults": 200 }

# Run the Actor and wait for it to finish
run = client.actor("logiover/sba-ppp-loan-database-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "maxResults": 200
}' |
apify call logiover/sba-ppp-loan-database-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,logiover/sba-ppp-loan-database-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/OMiuMJ6rORyh3SgBk/builds/pkzIb1UdeyevirwNR/openapi.json
