Skip to main content

Get cumulative analytics

Query Parameters
fromstringdate

The start date of the custom date range. Defaults to 30 days ago if not specified.


throughstringdate

The to (inclusive) date of the custom date range. Defaults to the current date if not specified.

Returns

An array of analytics by bundle objects.

  • GET /analytics/cumulative-per-bundle
  • curl 'https://api.lune.co/v1/analytics/cumulative-per-bundle' \
      -H 'Authorization: Bearer <API_KEY>'
  • Response
  • [
      {
        "bundle_id": "va1BEV2VZqnzPkYxJgALg0GeQDoXlWO5",
        "bundle_name": "Latin America Forestry",
        "timeseries": [
          [
            {
              "date": "2022-06-25",
              "value": "13.20",
              "quantity": "503.342"
            },
            {
              "date": "2022-06-26",
              "value": "23.20",
              "quantity": "1503.342"
            },
            {
              "date": "2022-06-27",
              "value": "64.23",
              "quantity": "4700.451"
            }
          ]
        ]
      }
    ]