> ## 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 Subscription Information

> Gets current subscription information including credits, plan, and billing details

## SDK Example

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

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

  const data = await client.getSubscription();

  ```
</CodeGroup>


## OpenAPI

````yaml /data-api/openapi.json get /subscription
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:
  /subscription:
    get:
      tags:
        - Credits
      summary: Get Subscription Information
      description: >-
        Gets current subscription information including credits, plan, and
        billing details
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SubscriptionResponse'
      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.getSubscription();
      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.getSubscription();
components:
  schemas:
    SubscriptionResponse:
      type: object
      properties:
        credits:
          type: integer
        plan:
          type: string
        next_billing_date:
          type: string
        status:
          type: string
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API Key for authentication

````