Retrieve metrics
Volume, delivery and engagement for a period: totals, rates, one row a day and one row a domain.
opensend.metrics.get(input?)opensend metrics getInput
rangestringThe period to count:
today,week,month,year,allorcustom. Without it you get the last month.One of
todayweekmonthyearallcustomfromstringThe first day of a
customperiod, as a date such as2026-11-01.tostringThe last day of a
customperiod, as a date such as2026-11-30.domainstringOnly mail sent from this domain. Up to 120 characters.
Returns
The call resolves to the answer, already parsed. A call the API refuses throws OpenSendError with the code and the message of the answer. SDK lists the errors of the client itself.
object"metrics"Always
metrics.fromstring | nullThe start of the period, or
nullwhen it has no start.tostringThe end of the period.
totalsobjectThe counts for the whole period.
totals.sentintegerHow many emails were sent.
totals.deliveredintegerHow many were delivered.
totals.openedintegerHow many were opened.
totals.clickedintegerHow many had a link clicked.
totals.bouncedintegerHow many bounced.
totals.complainedintegerHow many were marked as spam by the recipient.
ratesobjectThe same counts as fractions, from 0 to 1.
rates.deliverednumberDelivered, as a fraction of what was sent.
rates.openednumberOpened, as a fraction of what was delivered.
rates.clickednumberClicked, as a fraction of what was delivered.
rates.bouncednumberBounced, as a fraction of what was sent.
rates.complainednumberComplaints, as a fraction of what was sent.
daysobject[]One entry for each day of the period, oldest first.
days[].sentintegerHow many emails were sent.
days[].deliveredintegerHow many were delivered.
days[].openedintegerHow many were opened.
days[].clickedintegerHow many had a link clicked.
days[].bouncedintegerHow many bounced.
days[].complainedintegerHow many were marked as spam by the recipient.
days[].daystringThe day, as
YYYY-MM-DDin UTC.domainsobject[]One entry for each sending domain.
domains[].sentintegerHow many emails were sent.
domains[].deliveredintegerHow many were delivered.
domains[].openedintegerHow many were opened.
domains[].clickedintegerHow many had a link clicked.
domains[].bouncedintegerHow many bounced.
domains[].complainedintegerHow many were marked as spam by the recipient.
domains[].domainstringThe sending domain.