SmartLead icon

SmartLead

Comprehensive SmartLead API integration for email marketing automation

Overview

This node integrates with the SmartLead API to retrieve detailed campaign analytics and statistics within a specified date range. Specifically, the "Campaign Stats by Date Range" operation fetches performance data for a given email marketing campaign between optional start and end dates.

Use cases include:

  • Monitoring how a campaign performed over a specific period.
  • Comparing campaign metrics across different time frames.
  • Generating reports on campaign engagement trends.

For example, you can use this node to pull daily open rates, click-through rates, or other relevant stats for a campaign during a product launch week or a promotional event.

Properties

Name Meaning
Campaign ID The unique identifier of the campaign to retrieve statistics for.
Start Date (Optional) The beginning date of the analytics period in YYYY-MM-DD format.
End Date (Optional) The ending date of the analytics period in YYYY-MM-DD format.
Additional Fields Collection of optional parameters:
• Limit: Number of results to return (default 100).
• Offset: Number of results to skip (default 0).
• Status: Filter campaigns by status; options are Active, Paused, or Stopped (default Active).

Output

The node outputs JSON data containing the campaign statistics for the specified date range. The structure typically includes an array of statistical records, each representing metrics such as opens, clicks, bounces, and other engagement indicators per day or aggregated over the period.

The output is returned under the json field and can be directly used for further processing, reporting, or visualization in n8n workflows.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the SmartLead API via an API key credential configured in n8n.
  • The node makes authenticated HTTP requests to the SmartLead server at https://server.smartlead.ai/api/v1.
  • No additional external dependencies are required.

Troubleshooting

  • Invalid Campaign ID: If the provided campaign ID does not exist or is incorrect, the API will likely return an error. Verify the campaign ID before running the node.
  • Date Format Errors: Ensure that the Start Date and End Date are in the correct YYYY-MM-DD format. Invalid formats may cause request failures.
  • API Authentication Issues: If authentication fails, check that the API key credential is correctly set up and has sufficient permissions.
  • Empty Results: If no data is returned, verify that the campaign had activity during the specified date range and that the date filters are correct.
  • Rate Limits: Excessive requests might trigger rate limiting from the API. Implement delays or reduce request frequency if needed.

Common error messages usually relate to invalid JSON inputs (not applicable here since inputs are simple strings/dates), missing required parameters, or HTTP errors from the API. Review the error message details for guidance.

Links and References


This summary focuses exclusively on the "Analytics & Stats" resource and the "Campaign Stats by Date Range" operation as requested.

Discussion