API reference
Analytics
Analytics are the charts of your Dashboard, for the whole account or one persona. A series counts a metric by minute, hour, day or month, in your time zone. The last replies, DMs and hot leads come as lists of leads.
Endpoints
The analytics series object
One chart of the Dashboard, a metric over time for the account or one persona. Periods with nothing are left out.
Attributes
- objectstringAlways
analytics_series. - metricstringThe metric.
leads_foundleads_scoredhot_leadshot_ratesources_addedleads_enrolleddms_sentrepliesreply_ratenew_followerslikescommentsfollows - unitstring
percentageforhot_rateandreply_rate, elsecount.countpercentage - persona_idstring or nullThe persona, when you asked for one.
- scalestringThe size of a period.
minutehourdaymonth - startstringThe range's start, ISO 8601.
- endstringThe range's end, ISO 8601.
- timezonestringThe time zone of the periods.
- totalobjectThe whole range. A percentage also has its
numeratoranddenominator, like replies over DMs sent. - dataarray of objectsOne a period, with its
periodlike2026-11-06,2026-11-06T14:00or2026-11, itsvalue, and for a percentage itsnumeratoranddenominator.
Analytics series object
{
"object": "analytics_series",
"metric": "reply_rate",
"unit": "percentage",
"persona_id": "lvWBPnytpS",
"scale": "day",
"start": "2026-10-23T00:00:00.000Z",
"end": "2026-11-06T08:30:00.000Z",
"timezone": "Europe/Paris",
"total": {
"value": 13.8,
"numerator": 57,
"denominator": 412
},
"data": [
{
"period": "2026-11-04",
"value": 13.6,
"numerator": 3,
"denominator": 22
},
{
"period": "2026-11-05",
"value": 16,
"numerator": 4,
"denominator": 25
},
{
"period": "2026-11-06",
"value": 11.1,
"numerator": 1,
"denominator": 9
}
]
}Retrieve analytics
Returns one chart of the Dashboard. A minute scale covers 3 days at most, an hour 93 days and a day 3 700 days.
Path parameters
- metricstringRequiredA series, or
last_replies,last_dms_sentandlast_hot_leadsfor the 4 latest leads of each.hot_rateandreply_rateare percentages.leads_foundleads_scoredhot_leadshot_ratesources_addedleads_enrolleddms_sentrepliesreply_ratenew_followerslikescommentsfollowslast_replieslast_dms_sentlast_hot_leads
Query parameters
- personastringOnly this persona ID. Default the whole account.
- scalestringThe size of a period. Default
day.minutehourdaymonth - startstringThe range's start, ISO 8601. Default 3 hours, 2 days, 14 days or a year before
end, by scale. - endstringThe range's end, ISO 8601. Default now.
- timezonestringThe IANA time zone of the periods. Default the owner's, else UTC.
Returns
An analytics series object. For a list metric, a list with the metric, its persona_id, and in data each lead's lead_id, at and lead object.
Errors
- No persona with this ID on the key's account.
- A parameter has a value the API does not accept.
paramnames it.
GET/v1/ analytics/ :metric
curl -G https://gemlead.ai/api/v1/analytics/reply_rate \
-H "Authorization: Bearer $GEMLEAD_API_KEY" \
-d persona=lvWBPnytpS \
-d scale=day \
--data-urlencode "timezone=Europe/Paris"Response200
{
"object": "analytics_series",
"metric": "reply_rate",
"unit": "percentage",
"persona_id": "lvWBPnytpS",
"scale": "day",
"start": "2026-10-23T00:00:00.000Z",
"end": "2026-11-06T08:30:00.000Z",
"timezone": "Europe/Paris",
"total": {
"value": 13.8,
"numerator": 57,
"denominator": 412
},
"data": [
{
"period": "2026-11-04",
"value": 13.6,
"numerator": 3,
"denominator": 22
},
{
"period": "2026-11-05",
"value": 16,
"numerator": 4,
"denominator": 25
},
{
"period": "2026-11-06",
"value": 11.1,
"numerator": 1,
"denominator": 9
}
]
}