# SBA 7(a) Rural Loan Leads — Demand (`belcaidsaad/sba-rural-loans`) Actor

Pulls SBA 7(a) loan data, finds rural borrowers, ranks the best leads, and shows where the opportunities are.

- **URL**: https://apify.com/belcaidsaad/sba-rural-loans.md
- **Developed by:** [Saad Belcaid](https://apify.com/belcaidsaad) (community)
- **Categories:** Agents, Automation, Lead generation
- **Stats:** 73 total users, 4 monthly users, 100.0% runs succeeded, 5 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## 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 Rural Businesses That Need Financing — Demand Side Leads

Rural businesses that applied for SBA loans but the deal fell through, or just started and need capital. These are businesses that said "I need money" — and haven't found it yet.

**357,866 total SBA loans** in the dataset. The scraper filters to the ones that signal active financing need:

- **CANCELLED loans** — approved then fell through. Borrower still needs the money. Strongest signal.
- **COMMITTED loans** — approved but not yet funded. Deal in progress, may need a different lender.
- **Startups** — new businesses that just got starter capital and will need more.

Not just farmers. Every type of rural business: restaurants, hotels, construction, healthcare, manufacturing, retail, agriculture.

### What You Get Per Record

- **Business name** and **full address**
- **Loan amount** they applied for — tells you the scale of their need
- **Loan status** — CANCLD (deal fell through), COMMIT (in process), or EXEMPT (funded)
- **Industry** — NAICS code + plain English
- **Business age** — startup vs established
- **Bank that was involved** — the lender relationship that didn't work out
- **Rural classification** — USDA county code
- **Opportunity score** — hot / warm / moderate / low
- **Signal** — "500K SBA loan approved 45 days ago but CANCELLED — restaurant in rural Kansas still needs financing"

### How Much Data

| Loan Status | What it means | Volume in dataset |
|---|---|---|
| CANCLD | Loan fell through — still needs money | ~42,000 |
| COMMIT | Loan committed, not yet funded | ~23,000 |
| Startups | New business, will need ongoing capital | ~30,000 |
| **Total demand pool** | | **~95,000 records** |

After rural filter: thousands of leads. You pick how many with `maxResults`.

| Setting | What you get |
|---|---|
| maxResults: 500 | 500 leads, ~90 seconds |
| maxResults: 1000 | 1,000 leads, ~90 seconds |
| maxResults: 2000 | 2,000 leads, ~2 minutes |

### Slice By Industry

Use `naicsFilter`:

| Code | Industry |
|---|---|
| `72` | Hotels, restaurants, food service |
| `23` | Construction |
| `62` | Healthcare clinics |
| `11` | Agriculture, farming |
| `44` | Retail stores |
| `31` | Manufacturing |

### Slice By State

Use `stateFilter`: `"KS,OK,MO,TX"`

### Slice By Loan Status

Use `loanStatusFilter`:

- `CANCLD` — only cancelled loans (strongest demand signal)
- `CANCLD,COMMIT` — cancelled + in-process
- `CANCLD,COMMIT,STARTUP` — all demand signals (default)
- Leave empty — all statuses including already-funded (weaker signal)

### Scoring

| Factor | Points | Logic |
|---|---|---|
| Demand signal | 0-35 | CANCLD = 35, COMMIT = 25, EXEMPT = 5 |
| Recency | 0-35 | <90 days = 35, <180 = 28, <365 = 20 |
| Business age | 0-20 | Startup = 20, New = 15, Change of ownership = 10 |
| Loan size (inverted) | 0-10 | Smaller loans = more likely to need MORE capital |

**Hot** = recent cancelled loan for a new business. They need money NOW.

### Quick Start

1. Click **Start**
2. Wait ~90 seconds
3. Click **Export** → CSV
4. Sort by opportunity\_score descending — hottest leads first

### Data Source

Public government data from [SBA.gov](https://data.sba.gov/en/dataset/7-a-504-foia) (357,866 loans) cross-referenced with [USDA Rural-Urban Continuum Codes](https://www.ers.usda.gov/data-products/rural-urban-continuum-codes/) (3,233 US counties). Updated quarterly.

# Actor input Schema

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

How many leads to return.

## `stateFilter` (type: `string`):

Comma-separated state codes to include (e.g., 'KS,NE,IA'). Leave empty for all states.

## `minLoanAmount` (type: `integer`):

Minimum gross loan approval amount in dollars.

## `maxLoanAmount` (type: `integer`):

Maximum gross loan approval amount in dollars.

## `ruralOnly` (type: `boolean`):

Filter to USDA RUCC codes 4-9 (rural counties). Disable for all counties.

## `naicsFilter` (type: `string`):

Filter by NAICS code prefix (e.g., '72' for Accommodation & Food, '23' for Construction). Leave empty for all.

## `loanStatusFilter` (type: `string`):

Comma-separated statuses. CANCLD = loan fell through (strongest demand signal). COMMIT = loan in process. STARTUP = new businesses regardless of status. Leave empty for all statuses.

## `apolloApiKey` (type: `string`):

Adds company size and domain. Free Apollo tier works.

## Actor input object example

```json
{
  "maxResults": 500,
  "minLoanAmount": 50000,
  "maxLoanAmount": 5000000,
  "ruralOnly": true,
  "loanStatusFilter": "CANCLD,COMMIT,STARTUP"
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("belcaidsaad/sba-rural-loans").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("belcaidsaad/sba-rural-loans").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{}' |
apify call belcaidsaad/sba-rural-loans --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=belcaidsaad/sba-rural-loans",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/2KqcAVche9vI1C93I/builds/SzoHpS7UTKHjWJ4ER/openapi.json
