API Reference
Log In
API Reference

Top stats widget v2

Fetching a widget that shows the overall stats of a given Greenspark account. Please note that any impacts with 0 value are automatically hidden from the widget.

Log in to see full request history
542

Widget example

Query Params
string
Defaults to en

Set the widget's language. Currently supported languages are: English (en), German (de)

Body Params
string
required
Defaults to green

Set the widget colour. Current options include: "beige" | "green" | "blue" | "white" | "black" | "grey" | "transparent"

boolean

Adds a popup for the response, triggered by clicking on the widget

string
Defaults to light

Selects the color theme for the popup. Only applies if withPopup is set to true

impactTypes
array of strings

Impacts to display in the top stats list. Available options are 'trees', 'plastic', 'carbon', 'kelp' and 'water'.

impactTypes
Responses

Language
Credentials
Click Try It! to start a request and see the response here! Or choose an example:
application/json