# Statistics

{% hint style="info" %}
**You must have the Authorization to use this API**
{% endhint %}

**Statistic (Site-wide)**

## Statistic (Site-wide)

<mark style="color:blue;">`GET`</mark> `{{nella_url}}/smart-meta-manager/site-wide?meta_key=rimplenet_total_credit_at_2022_08_btc`

#### Query Parameters

| Name      | Type   | Description                                 |
| --------- | ------ | ------------------------------------------- |
| meta\_key | String | rimplenet\_total\_credit\_at\_2022\_08\_btc |

{% tabs %}
{% tab title="200: OK All statistic site-wide" %}

```json
{
    "status_code": 200,
    "status": true,
    "message": "Entity Retrieved",
    "data": "600"
}
```

{% endtab %}

{% tab title="422: Unprocessable Entity Entity does not exist" %}

```json
{
    "status_code": 422,
    "status": false,
    "message": "Entity does not exist"
}
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
To view request params, click on the arrow (>) at the right-hand side of the endpoint URL to expand or collapse
{% endhint %}

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

```json
{
    "status_code": 200,
    "status": true,
    "message": "Entity Retrieved",
    "data": "600"
}
```

{% endtab %}

{% tab title="422 UNPROCESSSABLE ENTITY" %}

```json
{
    "status_code": 422,
    "status": false,
    "message": "Entity does not exist"
}
```

{% endtab %}
{% endtabs %}

**Statistic (user)**

## Statistic (user)

<mark style="color:blue;">`GET`</mark> `{{nella_url}}/smart-meta-manager/user?meta_key=rimplenet_total_credit_at_all_time_ngn&user_id=1`

#### Query Parameters

| Name                                        | Type   | Description                                  |
| ------------------------------------------- | ------ | -------------------------------------------- |
| meta\_key<mark style="color:red;">\*</mark> | String | rimplenet\_total\_credit\_at\_all\_time\_ngn |
| user\_id<mark style="color:red;">\*</mark>  | int    | 1                                            |

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

```json
{
    "status_code": 200,
    "status": false,
    "message": "Some User Meta Missing",
    "data": {
        "rimplenet_total_credit_at_all_time_ngn": null
    }
}
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}
To view request params, click on the arrow (>) at the right-hand side of the endpoint URL to expand or collapse
{% endhint %}

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

```json
{
    "status_code": 200,
    "status": false,
    "message": "Some User Meta Missing",
    "data": {
        "rimplenet_total_credit_at_all_time_ngn": null
    }
}
```

{% endtab %}
{% endtabs %}
