> ## Documentation Index
> Fetch the complete documentation index at: https://docs.etherscan.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get API Usage

> Returns your current API credit usage and limit for the interval.

<ResponseExample>
  ```json Example response theme={null}
  {
    "status": "1",
    "message": "OK",
    "result": {
      "creditsUsed": 22,
      "creditsAvailable": 1499978,
      "creditLimit": 1500000,
      "limitInterval": "daily",
      "intervalExpiryTimespan": "08:42:34"
    }
  }
  ```
</ResponseExample>


## OpenAPI

````yaml openapi/api-reference/endpoint/getapilimit.json GET /v2/api
openapi: 3.1.0
info:
  title: Get API Usage
  version: 2.0.0
  description: Returns your current API credit usage and limit for the interval.
  license:
    name: Etherscan API Terms
    url: https://etherscan.io/terms
servers:
  - url: https://api.etherscan.io
    description: Etherscan API.
security:
  - apiKey: []
paths:
  /v2/api:
    get:
      summary: Get API Usage
      description: Returns your current API credit usage and limit for the interval.
      operationId: getGetapilimit
      parameters:
        - name: module
          in: query
          required: true
          description: Set this to getapilimit for this endpoint.
          schema:
            type: string
            default: getapilimit
          example: getapilimit
        - name: action
          in: query
          required: true
          description: Set this to getapilimit for this endpoint.
          schema:
            type: string
            default: getapilimit
          example: getapilimit
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: >-
                      1 if the request returned data, 0 otherwise. A status of 0
                      can indicate an error or a valid request that returned no
                      records.
                  message:
                    type: string
                    description: >-
                      OK on success, otherwise an error description such as
                      NOTOK. See [common error
                      messages](/common-error-messages).
                  result:
                    type: object
                    properties:
                      creditsUsed:
                        type: number
                        description: Number of API credits used in the current interval.
                      creditsAvailable:
                        type: number
                        description: >-
                          Number of API credits remaining in the current
                          interval.
                      creditLimit:
                        type: number
                        description: Total API credits allowed per interval.
                      limitInterval:
                        type: string
                        description: Length of the usage interval, such as daily.
                      intervalExpiryTimespan:
                        type: string
                        description: Time remaining until the interval resets, as HH:MM:SS.
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: apikey
      description: >-
        Enter your Etherscan API key, or [set one up](/set-up-your-api-key) if
        you don't have one.

````