Skip to main content

Get metrics

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
number_of_un_sdgsnumberrequired

The number of supported UN Sustainable Development Goals (SDGs).


number_of_projectsnumberrequired

The number of supported carbon offset projects.


un_sdgarray of objectrequired

The list of supported UN Sustainable Development Goals (SDGs).

The array is sorted by the goal number (the un_sdg_number field), ascending.

  • GET /analytics/metrics
  • curl 'https://api.lune.co/v1/analytics/metrics' \
      -H 'Authorization: Bearer <API_KEY>'
  • Response
  • {
      "number_of_un_sdgs": 10,
      "number_of_projects": 10,
      "un_sdg": [
        {
          "un_sdg_number": 1,
          "occurrences": 5
        }
      ]
    }