> ## 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.

# Deprecated: Get First Token Buyers

> Deprecated. Use PnL V2 instead: `GET /v2/pnl/tokens/{token}/first-buyers` for chronological first buyers with token PnL, wallet PnL, identity, and holding state.

Retrieves the first 100 buyers of a token (since API started recording data) with PnL data for each wallet

## SDK Example

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

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

  const data = await client.getFirstBuyers('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN');

  ```
</CodeGroup>


## OpenAPI

````yaml /data-api/openapi.json get /first-buyers/{token}
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:
  /first-buyers/{token}:
    get:
      tags:
        - PnL
      summary: 'Deprecated: Get First Token Buyers'
      description: >-
        Deprecated. Use PnL V2 instead: `GET
        /v2/pnl/tokens/{token}/first-buyers` for chronological first buyers with
        token PnL, wallet PnL, identity, and holding state.


        Retrieves the first 100 buyers of a token (since API started recording
        data) with PnL data for each wallet
      parameters:
        - name: token
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/FirstBuyerResponse'
              example:
                - wallet: AfCgPU6SbS9zzDxrSVxcLpstbzVNn8XhXfPxVjRMsTr4
                  first_buy_time: 1753343475510
                  first_buy:
                    signature: >-
                      4qkrFNuaGEFjZWb372a1wS2hoh6pUQxcPLmtYzHyxR6CyiRG8ARrx6jjE9qkHCxd9okfvECZ1vLmG5EqQXPRMAVG
                    amount: 179650.478507
                    volume_usd: 0.905910489225518
                    time: 1753343475510
                  first_sell_time: 1753343489226
                  last_transaction_time: 1753343489231
                  held: 1616854.306563
                  sold: 1077902.871042
                  sold_usd: 7.59465035
                  holding: 0
                  realized: 2.16077741
                  unrealized: 0
                  total: 2.16077741
                  total_invested: 8.15001443
                  buy_transactions: 9
                  sell_transactions: 6
                  total_transactions: 15
                  average_buy_amount: 0.90555716
                  average_sell_amount: 1.26577506
                  current_value: 0
                  cost_basis: 0
      deprecated: true
      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.getFirstBuyers('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN');
      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.getFirstBuyers('6p6xgHyF7AeE6TZkSmFsko444wqoP15icUSqi2jfGiPN');
components:
  schemas:
    FirstBuyerResponse:
      type: object
      properties:
        wallet:
          type: string
        first_buy_time:
          type: integer
        first_buy:
          type: object
          properties:
            signature:
              type: string
            amount:
              type: number
            volume_usd:
              type: number
            time:
              type: integer
        first_sell_time:
          type: integer
        last_transaction_time:
          type: integer
        held:
          type: number
        sold:
          type: number
        sold_usd:
          type: number
        holding:
          type: number
        realized:
          type: number
        unrealized:
          type: number
        total:
          type: number
        total_invested:
          type: number
        buy_transactions:
          type: integer
        sell_transactions:
          type: integer
        total_transactions:
          type: integer
        average_buy_amount:
          type: number
        average_sell_amount:
          type: number
        current_value:
          type: number
        cost_basis:
          type: number
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API Key for authentication

````