ZuckerBot › Tool reference › Conversion tracking (CAPI)
Export Leads
zuckerbot_export_leads
Export lead submissions from a Meta instant form (lead form) for a date range: each lead's id, created_time and submitted field values. Returns BARE numeric lead ids — Meta's own CSV export prefixes ids with 'l:', which is a CSV artifact, not part of the id; strip it when cross-referencing CSV exports against this tool. Dates are YYYY-MM-DD, UTC, inclusive. Requires the connected Meta token to hold the leads_retrieval permission — if it is missing the error says exactly that; reconnect Meta to grant it. Large ranges are capped (2000 leads / 20 pages / 60s) and flagged truncated: true — narrow the date range and re-call for the remainder. Find form ids with zuckerbot_lead_forms.
Parameters
| Name | Type | | Description |
form_id | string | required | The Meta instant form (lead form) id — list them with zuckerbot_lead_forms |
date_from | string | required | Start date, YYYY-MM-DD (UTC, inclusive) |
date_to | string | required | End date, YYYY-MM-DD (UTC, inclusive) |
Example call
{
"tool": "zuckerbot_export_leads",
"arguments": {
"form_id": "<form_id>",
"date_from": "<date_from>",
"date_to": "<date_to>"
}
}
You never invoke this directly — describe what you want in plain English inside Claude, Cursor, ChatGPT or any MCP client with ZuckerBot connected, and the agent selects zuckerbot_export_leads and fills the arguments for you.
Related tools — Conversion tracking (CAPI)