Skip to main content

Monthly Report

Generates and returns a monthly dataset for the specified report type and calendar month.

Endpoint

POST /v2/reports/monthly

Request Body

FieldTypeRequiredConstraintsDescription
reportintYesMust be a valid report ID from the report listThe ID of the report to generate
monthdatetimeYesISO 8601 UTC format; day and time components are ignoredThe target month for the report (e.g., 2026-04-01T00:00:00Z for April 2026)
{
"report": 1,
"month": "2026-04-01T00:00:00Z"
}

Response

Returns the monthly report dataset. The structure of each row in data varies by report type.

{
"success": true,
"data": [
{
"week": 1,
"sent": 540,
"received": 423,
"totalBytes": 5242880
},
{
"week": 2,
"sent": 612,
"received": 498,
"totalBytes": 6291456
},
{
"week": 3,
"sent": 589,
"received": 467,
"totalBytes": 5767168
},
{
"week": 4,
"sent": 511,
"received": 401,
"totalBytes": 4718592
}
]
}

Response Fields

FieldTypeDescription
weekintWeek number within the month
sentintNumber of items sent during this week
receivedintNumber of items received during this week
totalByteslongTotal byte volume for this week

Code Examples

curl -X POST "https://rest.ecgrid.io/v2/reports/monthly" \
-H "X-API-Key: $ECGRID_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "report": 1, "month": "2026-04-01T00:00:00Z" }'

See Also