> For the complete documentation index, see [llms.txt](https://developer.leaderos.net/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.leaderos.net/store/donations.md).

# Donations

## Get donations.

<mark style="color:blue;">`GET`</mark> `https://yourwebsite.com/api/store/donations`

#### Query Parameters

| Name                                   | Type    | Description                                                               |
| -------------------------------------- | ------- | ------------------------------------------------------------------------- |
| type<mark style="color:red;">\*</mark> | String  | Values: "top-alltime", "top-annual", "top-monthly", "top-daily", "latest" |
| limit                                  | Integer |                                                                           |

{% tabs %}
{% tab title="200: OK " %}

```json
[
    {
        "display_name": "LeaderOS",
        "username": "leaderos",
        "total": "5.00 GBP",
        "raw_total": "5.00",
        "currency": "GBP",
        "date": "2023-09-13 23:35:12"
    },
    {
        "display_name": "Geyik",
        "username": "geyik",
        "total": "15.00 GBP",
        "raw_total": "15.00",
        "currency": "GBP",
        "date": "2023-10-13 23:35:12"
    }
]
```

{% endtab %}

{% tab title="400: Bad Request Invalid type" %}

```json
{
    "status": false,
    "error": "INVALID_TYPE",
    "message": "Invalid type!"
}
```

{% endtab %}

{% tab title="400: Bad Request Invalid limit" %}

```json
{
    "status": false,
    "error": "INVALID_LIMIT",
    "message": "Invalid limit!"
}
```

{% endtab %}
{% endtabs %}
