Export leads to CSV
export_leadsBuild a lead list as a CSV, one row per business: name, category, address, phone, website, emails, socials, coordinates, confidence, place id, source, license and a Google Maps link, plus website emails and opening hours for places find_emails has read. Use it instead of paging search_places when you need more than about 100 rows or a file for a spreadsheet or CRM. Needs category ids and a location. By default only places with both a website and a phone are kept; set require_website/require_phone to false for broader lists, or no_website=true for places without a site. Returns a download link valid 24 hours (or the CSV text with inline=true), a 5-row preview and total_matches. Uses one call plus one export-quota row per row; list_exports re-issues the link later for free.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"category": "<category>"
},
"name": "export_leads"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | City name as written in addresses, e.g. "Austin". Exact match; pair with state to avoid same-named cities. For a metro area prefer near + radius_km. | |
| near | No | Center point for a radius search: "City, ST", a 5-digit ZIP, or "lat,lon". Results are sorted by distance. | |
| state | No | 2-letter US state code, e.g. "TX". | |
| inline | No | Return the CSV text in the result (csv field, up to 250 rows) instead of a download link. Use when you can't fetch URLs, e.g. in a sandbox that blocks storefinch.com. | |
| category | Yes | Category ids from find_categories, e.g. ["plumbing"]. Includes subcategories. | |
| max_rows | No | Most rows to include. The plan also caps it: 5,000 per export on Pro, 250 on Free, and the monthly export quota. | |
| postcode | No | 5-digit ZIP code. | |
| radius_km | No | Radius in km around `near` (max 100). Ignored without `near`. | |
| no_website | No | Only places with NO website listed, e.g. web-design prospects. Sources can miss a site, so confirm before pitching. Can't be combined with require_website. | |
| require_email | No | Only places whose data sources list an email (about a third of places). | |
| require_phone | No | Only places with a phone number listed. | |
| min_confidence | No | Minimum Overture confidence that the place exists (0.5-1). 0.77 is a good default; lower adds more, noisier rows. | |
| require_website | No | Only places with a website listed. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| csv | No | The CSV text, only when inline=true. | |
| note | No | Why the export was capped, if it was. | |
| center | No | ||
| csv_url | No | Download link, valid 24 hours. Absent when inline=true. | |
| preview | Yes | First 5 rows. | |
| export_id | No | Id for list_exports; absent when nothing matched. | |
| data_release | Yes | ||
| total_matches | Yes | ||
| rows_in_export | Yes | Rows in the CSV (and charged to the export quota). | |
| quota_remaining | Yes | ||
| expires_in_hours | No |