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

# /debank/users/protocols

> Get a wallet's DeFi protocol positions across all chains, by address

**Price:** 1 credit

**💡 AI Hint:** Get the DeFi protocol positions of a crypto wallet by its EVM address (0x...), across every chain. Returns each protocol the wallet has funds in (Uniswap, Aave, Lido, etc.) with its chain, icon and total net USD value, broken down into individual positions (liquidity pools, lending, staking, perps) with their position type, net / asset / debt USD value, and the underlying tokens with amounts and USD values. Ordered by total net value.

**⚠️ Common errors:** 412: Wallet not found



## OpenAPI

````yaml /openapi-filtered.json post /api/debank/users/protocols
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/debank/users/protocols:
    post:
      tags:
        - /debank
      summary: /debank/users/protocols
      description: >-
        Get a wallet's DeFi protocol positions across all chains, by address


        **Price:** 1 credit


        **💡 AI Hint:** Get the DeFi protocol positions of a crypto wallet by
        its EVM address (0x...), across every chain. Returns each protocol the
        wallet has funds in (Uniswap, Aave, Lido, etc.) with its chain, icon and
        total net USD value, broken down into individual positions (liquidity
        pools, lending, staking, perps) with their position type, net / asset /
        debt USD value, and the underlying tokens with amounts and USD values.
        Ordered by total net value.


        **⚠️ Common errors:** 412: Wallet not found
      operationId: __api_debank_users_protocols_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DebankProtocolsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/DebankProtocol'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    DebankProtocolsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          description: Max scrapping execution timeout (in seconds)
          default: 300
        id:
          type: string
          description: Wallet address (EVM 0x address)
          examples:
            - '0xd8da6bf26964af9d7eed9e03e53415d37aa96045'
        count:
          type: integer
          minimum: 1
          description: Max number of DeFi protocol positions to return
      type: object
      required:
        - id
        - count
    DebankProtocol:
      properties:
        '@type':
          type: string
          default: DebankProtocol
        id:
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
        chain:
          anyOf:
            - type: string
            - type: 'null'
        usd_value:
          anyOf:
            - type: number
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
        positions:
          items:
            $ref: '#/components/schemas/DebankPosition'
          type: array
          default: []
      type: object
      required:
        - id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    DebankPosition:
      properties:
        '@type':
          type: string
          default: DebankPosition
        type:
          anyOf:
            - type: string
            - type: 'null'
        detail_types:
          items:
            type: string
          type: array
          default: []
        net_usd_value:
          anyOf:
            - type: number
            - type: 'null'
        asset_usd_value:
          anyOf:
            - type: number
            - type: 'null'
        debt_usd_value:
          anyOf:
            - type: number
            - type: 'null'
        tokens:
          items:
            $ref: '#/components/schemas/DebankPositionToken'
          type: array
          default: []
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
    DebankPositionToken:
      properties:
        '@type':
          type: string
          default: DebankPositionToken
        id:
          anyOf:
            - type: string
            - type: 'null'
        symbol:
          anyOf:
            - type: string
            - type: 'null'
        chain:
          anyOf:
            - type: string
            - type: 'null'
        amount:
          anyOf:
            - type: number
            - type: 'null'
        price:
          anyOf:
            - type: number
            - type: 'null'
        usd_value:
          anyOf:
            - type: number
            - type: 'null'
        image:
          anyOf:
            - type: string
            - type: 'null'
      type: object
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````