> For the complete documentation index, see [llms.txt](https://docs.infoway.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.infoway.io/en-docs/rest-api/get-basic-info/get-package-info.md).

# GET Package Info

Return the quota for the current API key.

### Overview

Reads `apiKey` from the request header and returns plan name, expiry, HTTP rate, WebSocket connection cap, and symbol caps. HTTP quotas: [REST API Limitation](/en-docs/getting-started/api-limitation/rest-api-limitation.md). Connection caps: [WebSocket Limitation](/en-docs/getting-started/api-limitation/websocket-limitation.md).

### Endpoint

* Base path: `/package/info`
* Full path: `https://data.infoway.io/package/info`

```http
GET https://data.infoway.io/package/info
```

### Authentication

| Header   | Type   | Required | Description                             |
| -------- | ------ | -------- | --------------------------------------- |
| `apiKey` | String | Yes      | Plan API key. `apikey` is also accepted |

No query string or body.

### Errors

A missing or unknown key typically returns `ret=500` with `apiKey is required` or `Apikey not exists`. See [REST API Error Codes](/en-docs/getting-started/error-codes/rest-api-error-codes.md).

### Response fields

| Field            | Type    | Description                        |
| ---------------- | ------- | ---------------------------------- |
| `packageName`    | String  | Plan name                          |
| `expireTime`     | Long    | Expiry timestamp                   |
| `apiNumPerSec`   | Integer | HTTP calls per second              |
| `maxWsConNum`    | Integer | Max WebSocket connections          |
| `maxNum`         | Integer | Max symbols per connection         |
| `maxYearHisData` | Number  | Historical kline depth in years    |
| `allWsNum`       | Integer | Max symbols across all connections |
