Obtiene el conteo de leads generados agrupados por su fuente de atribución (pago, orgánico, etc.) dentro de un rango de fechas. Si no se especifican las fechas, retorna los datos del último mes.
Security
api-key
- Production serverhttps://app.mercately.com/retailers/api/v1/ads_stats/leads_by_source
- Shops API Production serverhttps://mercately.shop/retailers/api/v1/ads_stats/leads_by_source
curl -i -X GET \
'https://app.mercately.com/retailers/api/v1/ads_stats/leads_by_source?start_date=2025-07-01&end_date=2026-08-01' \
-H 'api-key: YOUR_API_KEY_HERE'Response
{ "start_date": "2025-07-01", "end_date": "2026-08-01", "total_leads": 30, "by_source": { "paid_social": 0, "organic": 0, "no_attribution": 0, "no_channel": 30 } }