# USDA Rural Development Lender Scraper — Lending Intel (`belcaidsaad/usda-lenders`) Actor

Pulls USDA OneRD lender data, groups it by lender, scores activity and portfolio health, and outputs lender leads with clear opportunity signals.

- **URL**: https://apify.com/belcaidsaad/usda-lenders.md
- **Developed by:** [Saad Belcaid](https://apify.com/belcaidsaad) (community)
- **Categories:** Developer tools, Agents, Lead generation
- **Stats:** 9 total users, 8 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## 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 a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## USDA Rural Lenders — 767 Banks That Give Rural Loans (With Phone & Email)

Every bank in America that originates USDA-guaranteed rural loans. 767 lenders with contact info, portfolio size, and which programs they participate in.

These are the banks that lend to rural businesses — farms, hotels, manufacturers, clinics. If you connect borrowers with lenders, this is your supply side.

### What You Get Per Lender

- **Bank name**
- **Phone number** (664 out of 767 have one)
- **Email** (286 have one)
- **Website** (233 have one)
- **Full address** — street, city, state, zip
- **Total portfolio** — how much they've lent ($117K to $1.4B)
- **Active loans** — how many loans they're managing
- **Average loan size** — tells you if they do small or large deals
- **Programs** — which USDA programs: B&I, Community Facilities, REAP, OneRD, Water & Waste
- **States served** — how many states they lend in (1 to 50)
- **Nationwide flag** — 25 lenders are licensed nationwide
- **Named contact** — 14 nationwide lenders have a named person + direct email
- **Delinquency rate** — portfolio health (lower = better)
- **Lender score** — elite / high / mid / low
- **Opportunity signal** — one sentence about this lender

### How Much Data

767 unique lenders. That's the full universe of USDA rural loan originators. The scraper runs in 5 seconds.

### Top Lenders (Real Data)

| Lender | Portfolio | Loans | Programs | States | Score |
|---|---|---|---|---|---|
| Live Oak Banking Company | $1.4B | 892 | 5 | 28 | 94 (elite) |
| Celtic Bank Corporation | $500M+ | 300+ | 4 | nationwide | 88 (elite) |
| Farmers Bank and Trust | varies | varies | B&I | regional | varies |

### Slice By Program

Use `programFilter`:
- `B&I` — Business & Industry loans (the big one)
- `CF` — Community Facilities
- `REAP` — Rural Energy for America
- `OneRD` — OneRD Guarantee (new consolidated program)
- `WW` — Water and Waste Disposal

### Slice By State

Use `stateFilter` for lender HQ state, or `recipientStateFilter` for states where they actually lend.

Example: `recipientStateFilter: "KS,OK,TX"` gives you every bank that lends in Kansas, Oklahoma, or Texas.

### Quick Start

1. Click **Start**
2. Wait 5 seconds
3. Click **Export** → CSV
4. Open in Google Sheets or Excel
5. Sort by lender_score descending — the best lenders are at the top

### Scoring

Each lender gets a score (0-100) based on:
- Portfolio size (how much they lend)
- Loan count (how active they are)
- Program diversity (how many USDA programs)
- Geographic coverage (how many states)
- Portfolio health (delinquency rate)

**Elite (80+)** = major national rural lender. **High (60-79)** = active multi-program lender. **Mid (40-59)** = solid regional player. **Low (<40)** = small or single-program.

### Data Source

Official USDA Rural Development [OneRD Lender and Program Data](https://www.rd.usda.gov/media/file/download/usda-rd-onerd-lender-program-data-04292025.xlsx) — 1,762 rows aggregated into 767 unique lenders across 5 programs.

# Actor input Schema

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

How many lender leads to return (sorted by score).
## `stateFilter` (type: `string`):

Comma-separated state codes to filter by lender HQ state (e.g., 'TX,CA,NY'). Leave empty for all.
## `recipientStateFilter` (type: `string`):

Comma-separated state codes to include only lenders active in these states (e.g., 'IA,NE,KS'). Leave empty for all.
## `programFilter` (type: `string`):

Filter by USDA program name substring (e.g., 'B&I', 'REAP', 'CF', 'WEP', 'Biorefinery'). Leave empty for all.
## `minLoanVolume` (type: `integer`):

Minimum total unpaid principal to include a lender. Filters out tiny portfolios.
## `apolloApiKey` (type: `string`):

Adds company size and domain via Apollo enrichment. Free Apollo tier works.

## Actor input object example

```json
{
  "maxResults": 500,
  "minLoanVolume": 0
}
````

# 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/usda-lenders").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/usda-lenders").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/usda-lenders --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "USDA Rural Development Lender Scraper — Lending Intel",
        "description": "Pulls USDA OneRD lender data, groups it by lender, scores activity and portfolio health, and outputs lender leads with clear opportunity signals.",
        "version": "1.0",
        "x-build-id": "ga5WPy4LvUKMMBBfb"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/belcaidsaad~usda-lenders/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-belcaidsaad-usda-lenders",
                "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/belcaidsaad~usda-lenders/runs": {
            "post": {
                "operationId": "runs-sync-belcaidsaad-usda-lenders",
                "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/belcaidsaad~usda-lenders/run-sync": {
            "post": {
                "operationId": "run-sync-belcaidsaad-usda-lenders",
                "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": {
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "How many lender leads to return (sorted by score).",
                        "default": 500
                    },
                    "stateFilter": {
                        "title": "State Filter",
                        "type": "string",
                        "description": "Comma-separated state codes to filter by lender HQ state (e.g., 'TX,CA,NY'). Leave empty for all."
                    },
                    "recipientStateFilter": {
                        "title": "Recipient State Filter",
                        "type": "string",
                        "description": "Comma-separated state codes to include only lenders active in these states (e.g., 'IA,NE,KS'). Leave empty for all."
                    },
                    "programFilter": {
                        "title": "Program Filter",
                        "type": "string",
                        "description": "Filter by USDA program name substring (e.g., 'B&I', 'REAP', 'CF', 'WEP', 'Biorefinery'). Leave empty for all."
                    },
                    "minLoanVolume": {
                        "title": "Min Loan Volume ($)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Minimum total unpaid principal to include a lender. Filters out tiny portfolios.",
                        "default": 0
                    },
                    "apolloApiKey": {
                        "title": "Apollo API Key (optional)",
                        "type": "string",
                        "description": "Adds company size and domain via Apollo enrichment. Free Apollo tier works."
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
