export_leads
Search businesses by query, location, or category, then save results as Excel, CSV, or JSON files for outreach and analysis.
Instructions
Search for businesses and export results to an Excel (.xlsx), CSV, or JSON file.
Features:
- Excel: Creates a multi-sheet workbook with frozen headers, auto-filters, and clean styling.
- CSV: Standard tabular spreadsheet export.
- JSON: Complete structured lead metadata with timestamps and attribution.
Args:
query: Free-text search term (e.g. 'cafe', 'software').
location: City, region, or coordinates.
category: Industry or category filter.
limit: Max number of leads to export (1-200, default 50).
format: 'excel' (or 'xlsx'), 'csv' (default), or 'json'.
output_path: Destination file path (optional).
Returns:
Dict containing output_path, row_count, format, and data attribution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| query | Yes | ||
| format | No | csv | |
| category | No | ||
| location | No | ||
| output_path | No |