# What your app uses

`GET https://rest.wordplus.cloud/wordplus/realtime/usage`

The connections open now, against the connections of your plan for an app (`limit`, null on WordPress), and the
credits of your account, a credit a minute: those of your plan left this month, those you bought, how far into the
allowance of next month it borrowed, the allowance itself, and whether new viewers and people above the unmetered
floor get in (`admit`).

In the packages: `realtime.usage()`.

## Answer

What the app uses.

```json
{
  "ok": true,
  "connections": {
    "now": 312,
    "limit": 1000
  },
  "credits": {
    "plan": 4200,
    "bought": 50000,
    "borrowed": 0,
    "allowance": 5000,
    "admit": true
  }
}
```

## Refusals

- **401**: `missing_signature`, `stale_signature` (a clock off by more than 5 minutes), `unknown_site`, `bad_signature` (a wrong secret, or a body or path other than the one signed).
- **403**: `not_included`: your plan does not include it.

## Examples

`wordplus()` (in Go `app.Request()`) signs and sends the request: https://docs.wordplus.cloud/api/signing/ has it in each language.

**curl**

```bash
wordplus GET '/wordplus/realtime/usage'
```

**Node**

```js
const { connections } = await wordplus('GET', '/wordplus/realtime/usage');
```

**Python**

```python
connections = wordplus("GET", "/wordplus/realtime/usage")["connections"]
```

**PHP**

```php
$connections = wordplus('GET', '/wordplus/realtime/usage')['connections'];
```

**Go**

```go
answer, err := app.Request("GET", "/wordplus/realtime/usage", nil)
```

