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

# Get API Credits

> Gets the remaining API credits for your API key

## SDK Example

<CodeGroup>
  ```typescript SDK
  import { Client } from '@solana-tracker/data-api';

  const client = new Client({ apiKey: 'YOUR_API_KEY' });

  const data = await client.getCredits();

  ```
</CodeGroup>


## OpenAPI

````yaml /data-api/openapi.json get /credits
openapi: 3.1.0
info:
  title: Solana Tracker Data API
  description: >-
    Solana Tracker Data API for token prices, holders, trades, charts, wallet
    data, risk signals, and market analytics.
  version: 1.0.0
  contact:
    email: contact@solanatracker.io
servers:
  - url: https://data.solanatracker.io
    description: Production server
security:
  - apiKey: []
paths:
  /credits:
    get:
      tags:
        - Credits
      summary: Get API Credits
      description: Gets the remaining API credits for your API key
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  credits:
                    type: integer
      x-codeSamples:
        - lang: typescript
          label: SDK
          source: |
            import { Client } from '@solana-tracker/data-api';

            const client = new Client({ apiKey: 'YOUR_API_KEY' });

            const data = await client.getCredits();
      x-code-samples:
        - lang: typescript
          label: SDK
          source: |
            import { Client } from '@solana-tracker/data-api';

            const client = new Client({ apiKey: 'YOUR_API_KEY' });

            const data = await client.getCredits();
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API Key for authentication

````