Retrieve metrics
Volume, delivery and engagement for a period: totals, rates, one row a day and one row a domain.
opensend metrics get [flags]Flags
--rangestringThe period to count:
today,week,month,year,allorcustom. Without it you get the last month.One of
todayweekmonthyearallcustom--fromstringThe 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 command prints the answer: as JSON when its output goes to a file or another program, and as a table or a list of fields in a terminal. When the API refuses, the error goes to the error stream and the command ends with a code that names the failure. Output and scripts lists the codes.
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.