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

# Lighthouse metrics

> Returns activity metrics by protocol for one or more chains. Use chains or chain_ids for comma-separated selections. Results contain one entry per available chain and timeframe; each entry identifies its chain and chain_id, with overall totals and a separate protocols list. Chains without data are omitted. Defaults to all lighthouse timeframes. Pass `fields=short` or header `x-field-names: short` for abbreviated keys. HTTP defaults to `long`.

```bash theme={null}
curl "https://staging-api.struct.to/v1/token/discovery/lighthouse?chains=robinhood%2Csolana&chain_ids=4663%2C-1&fields=short&timeframe=1h" \
  -H "X-API-Key: YOUR_API_KEY"
```

```json Response (Long) theme={null}
[
  {
    "chain": "robinhood",
    "chain_id": 4663,
    "timeframe": "1h",
    "overall": {
      "total_created": 48,
      "total_migrated": 12,
      "total_volume_usd": 428000.0,
      "total_volume_native": 288.4,
      "total_transactions": 1902,
      "total_fees_native": 0.124,
      "total_bot_fees_native": 0.015,
      "pool_count": 36,
      "created_change_pct": 12.4,
      "migrated_change_pct": 8.1,
      "volume_change_pct": 19.03,
      "transactions_change_pct": 6.2,
      "fees_change_pct": 4.8,
      "bot_fees_change_pct": 2.1,
      "pool_count_change_pct": 3.4
    },
    "protocols": [
      {
        "total_created": 48,
        "total_migrated": 12,
        "total_volume_usd": 428000.0,
        "total_volume_native": 288.4,
        "total_transactions": 1902,
        "total_fees_native": 0.124,
        "total_bot_fees_native": 0.015,
        "pool_count": 36,
        "created_change_pct": 12.4,
        "migrated_change_pct": 8.1,
        "volume_change_pct": 19.03,
        "transactions_change_pct": 6.2,
        "fees_change_pct": 4.8,
        "bot_fees_change_pct": 2.1,
        "pool_count_change_pct": 3.4,
        "protocol": "PonsV2"
      }
    ]
  },
  {
    "chain": "solana",
    "chain_id": -1,
    "timeframe": "1h",
    "overall": {
      "total_created": 48,
      "total_migrated": 12,
      "total_volume_usd": 428000.0,
      "total_volume_native": 288.4,
      "total_transactions": 1902,
      "total_fees_native": 0.124,
      "total_bot_fees_native": 0.015,
      "pool_count": 36,
      "created_change_pct": 12.4,
      "migrated_change_pct": 8.1,
      "volume_change_pct": 19.03,
      "transactions_change_pct": 6.2,
      "fees_change_pct": 4.8,
      "bot_fees_change_pct": 2.1,
      "pool_count_change_pct": 3.4
    },
    "protocols": [
      {
        "total_created": 48,
        "total_migrated": 12,
        "total_volume_usd": 428000.0,
        "total_volume_native": 288.4,
        "total_transactions": 1902,
        "total_fees_native": 0.124,
        "total_bot_fees_native": 0.015,
        "pool_count": 36,
        "created_change_pct": 12.4,
        "migrated_change_pct": 8.1,
        "volume_change_pct": 19.03,
        "transactions_change_pct": 6.2,
        "fees_change_pct": 4.8,
        "bot_fees_change_pct": 2.1,
        "pool_count_change_pct": 3.4,
        "protocol": "PumpFun"
      }
    ]
  }
]
```

```jsonc Response (Short) theme={null}
[
  {
    "c": "robinhood",
    "ci": 4663,
    "tf": "1h",
    "o": {
      "tc": 48,
      "tm": 12,
      "tvu": 428000.0,
      "tvn": 288.4,
      "tt": 1902,
      "tfn": 0.124,
      "tbfn": 0.015,
      "pc": 36,
      "ccp": 12.4,
      "mcp": 8.1,
      "vcp": 19.03,
      "txcp": 6.2,
      "fcp": 4.8,
      "bfcp": 2.1,
      "pccp": 3.4
    },
    "p": [
      {
        "tc": 48,
        "tm": 12,
        "tvu": 428000.0,
        "tvn": 288.4,
        "tt": 1902,
        "tfn": 0.124,
        "tbfn": 0.015,
        "pc": 36,
        "ccp": 12.4,
        "mcp": 8.1,
        "vcp": 19.03,
        "txcp": 6.2,
        "fcp": 4.8,
        "bfcp": 2.1,
        "pccp": 3.4,
        "pr": "PonsV2"
      }
    ]
  },
  {
    "c": "solana",
    "ci": -1,
    "tf": "1h",
    "o": {
      "tc": 48,
      "tm": 12,
      "tvu": 428000.0,
      "tvn": 288.4,
      "tt": 1902,
      "tfn": 0.124,
      "tbfn": 0.015,
      "pc": 36,
      "ccp": 12.4,
      "mcp": 8.1,
      "vcp": 19.03,
      "txcp": 6.2,
      "fcp": 4.8,
      "bfcp": 2.1,
      "pccp": 3.4
    },
    "p": [
      {
        "tc": 48,
        "tm": 12,
        "tvu": 428000.0,
        "tvn": 288.4,
        "tt": 1902,
        "tfn": 0.124,
        "tbfn": 0.015,
        "pc": 36,
        "ccp": 12.4,
        "mcp": 8.1,
        "vcp": 19.03,
        "txcp": 6.2,
        "fcp": 4.8,
        "bfcp": 2.1,
        "pccp": 3.4,
        "pr": "PumpFun"
      }
    ]
  }
]
```


## OpenAPI

````yaml onchain-openapi.json GET /token/discovery/lighthouse
openapi: 3.1.0
info:
  title: Struct On-chain API
  description: >-
    RESTful API for token market data, discovery, holders, audits, and trader
    analytics across supported chains. Pass `fields=short` or header
    `x-field-names: short` for abbreviated keys. HTTP defaults to `long`. Token
    candlesticks, token trades and wallet batch trades also support
    `fields=array` for typed positional rows.
  version: 1.0.0
servers:
  - url: https://staging-api.struct.to/v1
    description: Staging
security:
  - ApiKey: []
paths:
  /token/discovery/lighthouse:
    get:
      tags:
        - Token / Discovery
      summary: Lighthouse metrics
      description: >-
        Returns activity metrics by protocol for one or more chains. Use chains
        or chain_ids for comma-separated selections. Results contain one entry
        per available chain and timeframe; each entry identifies its chain and
        chain_id, with overall totals and a separate protocols list. Chains
        without data are omitted. Defaults to all lighthouse timeframes. Pass
        `fields=short` or header `x-field-names: short` for abbreviated keys.
        HTTP defaults to `long`.
      operationId: get_token_lighthouse
      parameters:
        - name: chain
          in: query
          description: Single chain name. Supply at least one chain selector.
          required: false
          schema:
            type: string
        - name: chain_id
          in: query
          description: Single chain ID. Use `-1` for Solana.
          required: false
          schema:
            type: integer
            format: int64
        - name: chains
          in: query
          description: >-
            Comma-separated chain names, such as `solana,base,robinhood`.
            Selectors are combined and deduplicated.
          required: false
          schema:
            type: string
          example: robinhood,solana
        - name: chain_ids
          in: query
          description: >-
            Comma-separated chain IDs, such as `-1,8453,4663`. Chains without
            data are omitted.
          required: false
          schema:
            type: string
          example: 4663,-1
        - name: fields
          in: query
          description: >-
            Select `long` (HTTP default), `short` abbreviated field names, or
            `array` for token candlesticks, token trades, and wallet batch
            trades. Same as header `x-field-names`. `field_names` is accepted as
            an alias.
          required: false
          schema:
            type: string
          example: short
        - name: x-field-names
          in: header
          description: >-
            Select `long` (HTTP default) or `short` field names. Takes
            precedence over `fields`.
          required: false
          schema:
            type:
              - string
              - 'null'
        - name: timeframe
          in: query
          description: >-
            Lighthouse timeframe, comma-separated timeframes, or `all`. Defaults
            to all.
          required: false
          schema:
            type: string
          example: 1h
        - name: timeframes
          in: query
          description: Alias for `timeframe`; comma-separated values are supported.
          required: false
          schema:
            type: string
      responses:
        '200':
          description: Lighthouse totals and protocol metrics by chain and timeframe
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/LighthouseSnapshot'
              examples:
                long:
                  summary: Response (Long)
                  value:
                    - chain: robinhood
                      chain_id: 4663
                      timeframe: 1h
                      overall:
                        total_created: 48
                        total_migrated: 12
                        total_volume_usd: 428000
                        total_volume_native: 288.4
                        total_transactions: 1902
                        total_fees_native: 0.124
                        total_bot_fees_native: 0.015
                        pool_count: 36
                        created_change_pct: 12.4
                        migrated_change_pct: 8.1
                        volume_change_pct: 19.03
                        transactions_change_pct: 6.2
                        fees_change_pct: 4.8
                        bot_fees_change_pct: 2.1
                        pool_count_change_pct: 3.4
                      protocols:
                        - total_created: 48
                          total_migrated: 12
                          total_volume_usd: 428000
                          total_volume_native: 288.4
                          total_transactions: 1902
                          total_fees_native: 0.124
                          total_bot_fees_native: 0.015
                          pool_count: 36
                          created_change_pct: 12.4
                          migrated_change_pct: 8.1
                          volume_change_pct: 19.03
                          transactions_change_pct: 6.2
                          fees_change_pct: 4.8
                          bot_fees_change_pct: 2.1
                          pool_count_change_pct: 3.4
                          protocol: PonsV2
                    - chain: solana
                      chain_id: -1
                      timeframe: 1h
                      overall:
                        total_created: 48
                        total_migrated: 12
                        total_volume_usd: 428000
                        total_volume_native: 288.4
                        total_transactions: 1902
                        total_fees_native: 0.124
                        total_bot_fees_native: 0.015
                        pool_count: 36
                        created_change_pct: 12.4
                        migrated_change_pct: 8.1
                        volume_change_pct: 19.03
                        transactions_change_pct: 6.2
                        fees_change_pct: 4.8
                        bot_fees_change_pct: 2.1
                        pool_count_change_pct: 3.4
                      protocols:
                        - total_created: 48
                          total_migrated: 12
                          total_volume_usd: 428000
                          total_volume_native: 288.4
                          total_transactions: 1902
                          total_fees_native: 0.124
                          total_bot_fees_native: 0.015
                          pool_count: 36
                          created_change_pct: 12.4
                          migrated_change_pct: 8.1
                          volume_change_pct: 19.03
                          transactions_change_pct: 6.2
                          fees_change_pct: 4.8
                          bot_fees_change_pct: 2.1
                          pool_count_change_pct: 3.4
                          protocol: PumpFun
                short:
                  summary: Response (Short)
                  value:
                    - c: robinhood
                      ci: 4663
                      tf: 1h
                      o:
                        tc: 48
                        tm: 12
                        tvu: 428000
                        tvn: 288.4
                        tt: 1902
                        tfn: 0.124
                        tbfn: 0.015
                        pc: 36
                        ccp: 12.4
                        mcp: 8.1
                        vcp: 19.03
                        txcp: 6.2
                        fcp: 4.8
                        bfcp: 2.1
                        pccp: 3.4
                      p:
                        - tc: 48
                          tm: 12
                          tvu: 428000
                          tvn: 288.4
                          tt: 1902
                          tfn: 0.124
                          tbfn: 0.015
                          pc: 36
                          ccp: 12.4
                          mcp: 8.1
                          vcp: 19.03
                          txcp: 6.2
                          fcp: 4.8
                          bfcp: 2.1
                          pccp: 3.4
                          pr: PonsV2
                    - c: solana
                      ci: -1
                      tf: 1h
                      o:
                        tc: 48
                        tm: 12
                        tvu: 428000
                        tvn: 288.4
                        tt: 1902
                        tfn: 0.124
                        tbfn: 0.015
                        pc: 36
                        ccp: 12.4
                        mcp: 8.1
                        vcp: 19.03
                        txcp: 6.2
                        fcp: 4.8
                        bfcp: 2.1
                        pccp: 3.4
                      p:
                        - tc: 48
                          tm: 12
                          tvu: 428000
                          tvn: 288.4
                          tt: 1902
                          tfn: 0.124
                          tbfn: 0.015
                          pc: 36
                          ccp: 12.4
                          mcp: 8.1
                          vcp: 19.03
                          txcp: 6.2
                          fcp: 4.8
                          bfcp: 2.1
                          pccp: 3.4
                          pr: PumpFun
        '400':
          description: Validation error, usually an invalid timeframe.
components:
  schemas:
    LighthouseSnapshot:
      type: object
      required:
        - chain
        - chain_id
        - timeframe
        - overall
        - protocols
      properties:
        chain:
          type: string
        chain_id:
          type: integer
          format: int64
        timeframe:
          type: string
        overall:
          $ref: '#/components/schemas/LighthouseOverall'
        protocols:
          type: array
          items:
            $ref: '#/components/schemas/LighthouseProtocol'
    LighthouseOverall:
      type: object
      required:
        - total_created
        - total_migrated
        - total_volume_usd
        - total_volume_native
        - total_transactions
        - total_fees_native
        - total_bot_fees_native
        - pool_count
      properties:
        total_created:
          type: integer
          format: int64
        total_migrated:
          type: integer
          format: int64
        total_volume_usd:
          type: number
          format: double
        total_volume_native:
          type: number
          format: double
        total_transactions:
          type: integer
          format: int64
        total_fees_native:
          type: number
          format: double
        total_bot_fees_native:
          type: number
          format: double
        pool_count:
          type: integer
          format: int32
        created_change_pct:
          type:
            - number
            - 'null'
          format: double
        migrated_change_pct:
          type:
            - number
            - 'null'
          format: double
        volume_change_pct:
          type:
            - number
            - 'null'
          format: double
        transactions_change_pct:
          type:
            - number
            - 'null'
          format: double
        fees_change_pct:
          type:
            - number
            - 'null'
          format: double
        bot_fees_change_pct:
          type:
            - number
            - 'null'
          format: double
        pool_count_change_pct:
          type:
            - number
            - 'null'
          format: double
    LighthouseProtocol:
      allOf:
        - $ref: '#/components/schemas/LighthouseOverall'
        - type: object
          required:
            - protocol
          properties:
            protocol:
              $ref: '#/components/schemas/Protocol'
    Protocol:
      type: string
      description: DEX protocol name (e.g. "RaydiumAMM", "UniswapV3").
      enum:
        - Unknown
        - Jupiter
        - MeteoraDLMM
        - MeteoraPools
        - RaydiumAMM
        - RaydiumCPMM
        - RaydiumCLMM
        - OrcaWhirlpool
        - PumpFun
        - PumpAMM
        - Moonit
        - System
        - Token22
        - Token
        - RaydiumLaunchLab
        - LaunchACoin
        - Bonk
        - MeteoraDBC
        - MeteoraDAMM2
        - BoopFun
        - Believe
        - JupiterStudio
        - Moonshot
        - Bags
        - Heaven
        - WenDev
        - StonkFun
        - TrendsFun
        - AnonCoin
        - AssociatedTokenProgram
        - UniswapV2
        - UniswapV3
        - UniswapV4
        - PancakeSwapV2
        - SushiSwapV2
        - PancakeSwapV3
        - SushiSwapV3
        - PancakeSwapV4
        - FourMeme
        - XMode
        - Flap
        - Alloca
        - AllocaChad
        - AllocaDex
        - NadFun
        - NadFunDex
        - Kuru
        - ClankerV3
        - ClankerV4
        - Bankr
        - Aerodrome
        - AerodromeSlipstream
        - ZoraContent
        - ZoraCreator
        - BaseApp
        - Basememe
        - Virtuals
        - PurpsV2
        - OctoSwapV2
        - TayaV2
        - AtlantisV2
        - DyorSwap
        - DyorFun
        - DyorV3
        - NoxaFun
        - Pons
        - PonsV2
        - PoolsInstant
        - FlapVault
        - FlapTax
        - Trench
        - PoolsCCA
        - RobinSwap
        - LongXyz
        - O1
        - Flywheel
        - Launchpad
        - Foci
        - LiftFun
        - Argus
        - TollyLabs
        - RadarDex
        - Sharc
        - ArcReactor
        - Archemist
        - ArchemistV4
        - Minara
        - StonkBrokers
        - Robinfun
        - UpV2
        - UpCL
        - Livo
        - HoodFun
        - Circus
        - HyperMeme
        - Lemon
        - Flutch
        - Stoxes
        - Holoworld
        - LaunchHood
        - StandardReserve
        - Commodities
        - LeaveHood
        - GeniusFun
        - Cubepeg
        - LikwidDex
        - GoPlusCreator
        - GoPlusSkill
        - TapeOut
        - OpenFour
        - FlapAI
        - Brew
        - MemecoinFunV2
        - Printr
        - CheesePad
        - CheesePadMicroSale
        - CheesePadMelt
        - LunaFun
        - Urcoin
        - FeelCash
        - Flaunch
        - Klik
        - Rwagmi
        - Doppler
        - BaseStonk
        - TheStonks
        - Stonx
        - Embow
        - Hydropump
        - HydrexIntegral
        - HydrexClassic
        - Stockereum
        - Sender
        - Stroid
        - MotoFun
        - Motoswap
        - Programmable
        - Strategy
        - Meridian
        - RobinVista
        - Odys
        - OdysElite
        - CamelotV2
        - CamelotV3
        - CamelotIntegral
        - Ignix
        - EulrFun
        - AltFun
        - MotionMeme
        - LiquidLaunch
        - LiquidLaunchV2
        - Signal
        - SignalCurve
        - SignalV4
        - Kumbaya
        - KumbayaV3
        - Bonad
        - NadFunDexV2
        - HyperSwapV2
        - HyperSwapV3
        - ProjectXV2
        - ProjectXV3
        - PotatoSwapV2
        - PotatoSwapV3
        - MondayTradeV3
        - Pangea
        - ClankerV5
      examples:
        - UniswapV3
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: Secret API key (`sk_*`) or JWT public key (`pk_jwt_*`).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.