# Farmers Insurance Agent Leads Scraper (`gocreative.ai/farmers-insurance-agent-leads`) Actor

Extract Farmers Insurance agent leads from the official public directory: name, agency, phone, address, geo-coords, license number(s), years appointed, and photo. Filter by state/city or pull nationwide. Pay-per-result; built for insurance CRM/MGA outreach and B2B lists.

- **URL**: https://apify.com/gocreative.ai/farmers-insurance-agent-leads.md
- **Developed by:** [GoCreative AI](https://apify.com/gocreative.ai) (community)
- **Categories:** Lead generation, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 agent records

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 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/docs.md):

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

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.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/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

## Farmers Insurance Agent Leads

### 📊 Example output (real run)

![Sample output](https://api.apify.com/v2/key-value-stores/1ztQFHwG8acESTazI/records/farmers-insurance-agent-leads-sample)

A real record from a live run — clean structured data, exported as CSV / JSON / Excel or via API.


Extract agent contact and license data from the official **Farmers Insurance** public agent directory (`agents.farmers.com`) — name, agency, phone, full address, geo-coordinates, state license number(s), years appointed with Farmers, and headshot photo. Filter by US state and/or city, or pull nationwide.

### Why this actor

Insurance agencies are one of the most heavily-targeted B2B segments for CRM vendors, marketing agencies, MGAs, insurance-tech SaaS, and recruiters — yet there is no clean, structured way to pull Farmers' 12,700+ local agents at scale. This actor turns Farmers' own public sitemap + agent-profile pages into a ready-to-use lead list.

- **12,700+ agent profiles** across ~40 US states, sourced directly from Farmers' own sitemap (`agents.farmers.com/sitemap.xml`) — not a scraped search UI, so results are complete and stable.
- **License-verified**: every record includes the agent's (and where available, agency's) state insurance license number(s) — useful for compliance-aware outreach and recruiting.
- **Tenure signal**: "years appointed with Farmers" surfaces experienced agents for partnership/referral targeting.
- **No fabricated data**: Farmers does not publish agent email addresses on these pages, so this actor never guesses or invents one — every field returned is exactly what's public. If you need verified emails on top of this, pair with an email-enrichment tool using the agent name + agency.

### Input

| Field | Type | Description |
|---|---|---|
| `states` | array of strings | Filter to 2-letter state codes (e.g. `["CA","TX"]`). Empty = all states. |
| `cityContains` | array of strings | Only include agents whose city/URL contains one of these substrings. Empty = no city filter. |
| `maxResults` | integer | Cap on records returned this run (max 5,000). Default 200. |
| `concurrency` | integer | Parallel page fetches (1–20). Default 8. |
| `proxyConfiguration` | object | Apify Proxy config. Datacenter (`auto`) is sufficient — the source has no anti-bot wall. |

### Output — real captured example

Live run, `states: ["CA"]`, `maxResults: 5` (2026-07-02):

```json
{
  "name": "Alex Sayeri",
  "agencyName": "Alex Sayeri Insurance Agency Inc",
  "phone": "+1 818-990-4044",
  "streetAddress": "23622 Calabasas Rd",
  "city": "Calabasas",
  "state": "CA",
  "zip": "91302",
  "licenses": "CA License #: 0C00443; CA Agency License #: 6011256",
  "yearsAppointed": "Over 20 years",
  "latitude": 34.15605,
  "longitude": -118.64152,
  "photoUrl": "https://photos.farmersagp.com/agent-photos/asayerifarmersagentcom-30025M-22570.jpg?width=500&height=500&fit=cover&gravity=face",
  "profileUrl": "https://agents.farmers.com/ca/calabasas/alex-sayeri",
  "source": "agents.farmers.com",
  "scrapedAt": "2026-07-02T00:00:00Z"
}
````

A ready-to-import CRM CSV of the full run is also saved to the key-value store (`farmers-agents-YYYYMMDD`).

### Output schema

| Field | Type | Notes |
|---|---|---|
| `name` | string | Agent's full name |
| `agencyName` | string | Agency/business name (blank on some newer listings) |
| `phone` | string | Direct office phone, E.164-ish format |
| `streetAddress`, `city`, `state`, `zip` | string | Office address |
| `licenses` | string | Semicolon-separated state/agency license numbers |
| `yearsAppointed` | string | Tenure with Farmers, when published |
| `latitude`, `longitude` | number | Office geo-coordinates |
| `photoUrl` | string | Agent headshot image URL |
| `profileUrl` | string | Canonical agent profile page |
| `source` | string | Always `agents.farmers.com` |
| `scrapedAt` | string | UTC timestamp of extraction |

### Pricing

Pay-Per-Result: **$1.20 per 1,000 agent records** delivered (in line with our other verified local-business/agent-contact actors). No charge for failed/empty pages.

### Use cases

- Insurance CRM / MGA / marketing-SaaS lead lists
- Recruiting pipelines for competing agencies
- Franchise/territory development and market-density analysis
- Local-business B2B outreach lists filtered by state or metro

### Compliance

Sourced entirely from `agents.farmers.com`'s own public sitemap and agent pages — the site's `robots.txt` explicitly permits crawling (`Disallow:` blank) and self-publishes the sitemap for discovery. No login, no CAPTCHA bypass, no private/gated data. Respect the data for legitimate B2B use in accordance with applicable law (e.g. TCPA/CAN-SPAM if you contact agents directly).

# Actor input Schema

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

Filter to these 2-letter US state codes (e.g. CA, TX, FL). Leave empty to include all states Farmers operates in.

## `cityContains` (type: `array`):

Only include agents whose city/URL matches one of these substrings (case-insensitive). Leave empty for no city filter.

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

Maximum number of agent records to return in this run (cap: 5,000).

## `concurrency` (type: `integer`):

Number of agent profile pages to fetch in parallel. Higher = faster but more load on the source site.

## `proxyConfiguration` (type: `object`):

Apify Proxy configuration. Datacenter (auto) is recommended and sufficient for this source.

## Actor input object example

```json
{
  "states": [
    "CA",
    "TX"
  ],
  "cityContains": [
    "austin",
    "san-jose"
  ],
  "maxResults": 200,
  "concurrency": 8,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

## `agentLeads` (type: `string`):

No description

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

// Run the Actor and wait for it to finish
const run = await client.actor("gocreative.ai/farmers-insurance-agent-leads").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("gocreative.ai/farmers-insurance-agent-leads").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 gocreative.ai/farmers-insurance-agent-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=gocreative.ai/farmers-insurance-agent-leads",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Farmers Insurance Agent Leads Scraper",
        "description": "Extract Farmers Insurance agent leads from the official public directory: name, agency, phone, address, geo-coords, license number(s), years appointed, and photo. Filter by state/city or pull nationwide. Pay-per-result; built for insurance CRM/MGA outreach and B2B lists.",
        "version": "0.1",
        "x-build-id": "QkfekWY7x35dmJdkZ"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/gocreative.ai~farmers-insurance-agent-leads/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-gocreative.ai-farmers-insurance-agent-leads",
                "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/gocreative.ai~farmers-insurance-agent-leads/runs": {
            "post": {
                "operationId": "runs-sync-gocreative.ai-farmers-insurance-agent-leads",
                "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/gocreative.ai~farmers-insurance-agent-leads/run-sync": {
            "post": {
                "operationId": "run-sync-gocreative.ai-farmers-insurance-agent-leads",
                "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": {
                    "states": {
                        "title": "US States",
                        "type": "array",
                        "description": "Filter to these 2-letter US state codes (e.g. CA, TX, FL). Leave empty to include all states Farmers operates in.",
                        "items": {
                            "type": "string"
                        },
                        "default": []
                    },
                    "cityContains": {
                        "title": "City Contains",
                        "type": "array",
                        "description": "Only include agents whose city/URL matches one of these substrings (case-insensitive). Leave empty for no city filter.",
                        "items": {
                            "type": "string"
                        },
                        "default": []
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 1,
                        "maximum": 5000,
                        "type": "integer",
                        "description": "Maximum number of agent records to return in this run (cap: 5,000).",
                        "default": 200
                    },
                    "concurrency": {
                        "title": "Concurrency",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Number of agent profile pages to fetch in parallel. Higher = faster but more load on the source site.",
                        "default": 8
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Apify Proxy configuration. Datacenter (auto) is recommended and sufficient for this source.",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
