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

# webData2 | Hyperliquid info

> The info endpoint with type: "webData2" returns aggregate information about a user for frontend consumption. Hyperliquid info via Chainstack.

<Info>
  This method is available on Chainstack. Not all Hyperliquid methods are available on Chainstack, as the open-source node implementation does not support them yet — see [Hyperliquid methods](/docs/hyperliquid-methods) for the full availability breakdown.
</Info>

The `info` endpoint with `type: "webData2"` returns aggregate information about a user for frontend consumption. It is primarily a convenience aggregation used by web clients.

## Parameters

### Request body

* `type` (string, required) — The request type. Must be `"webData2"`.
* `user` (string, required) — Address in 42-character hexadecimal format (e.g., `0x31ca8395cf837de08b24da3f660e77761dfb974b`).

## Response

The response is a large object with user‑centric aggregates for frontend use (exact fields may change). Typical categories include:

* user overview and balances
* open orders and positions summaries
* recent fills and funding
* selected UI/runtime configuration for the client

### Understanding web data aggregation

**Data optimization:**

* Combines multiple data sources into a single efficient endpoint
* Reduces the number of API calls required for web applications
* Provides pre-aggregated statistics for improved performance
* Optimized for frontend consumption and display

**Real-time updates:**

* Market data reflects current trading conditions
* Network statistics show live platform activity
* UI configuration allows for dynamic feature management
* Data freshness ensures accurate user experience

**Frontend integration:**

* Structured for easy consumption by web applications
* Includes display-ready formatted data
* Supports responsive UI updates and notifications
* Enables comprehensive dashboard implementations

**Performance benefits:**

* Single endpoint reduces latency and bandwidth usage
* Pre-calculated aggregations improve response times
* Efficient data structure minimizes parsing overhead
* Optimized for high-frequency frontend updates

## Example request

<CodeGroup>
  ```shell Shell theme={"system"}
  curl -X POST \
    -H "Content-Type: application/json" \
    -d '{"type": "webData2"}' \
    https://hyperliquid-mainnet.core.chainstack.com/4f8d8f4040bdacd1577bff8058438274/info
  ```

  ```python Python (hyperliquid-python-sdk) theme={"system"}
  from hyperliquid.info import Info

  # In the official Python SDK, webData2 is a WebSocket subscription,
  # not an HTTP info method, so the WebSocket manager must stay enabled.
  info = Info("YOUR_CHAINSTACK_ENDPOINT")

  user = "0x31ca8395cf837de08b24da3f660e77761dfb974b"
  info.subscribe({"type": "webData2", "user": user}, print)
  ```

  ```typescript TypeScript (@nktkas/hyperliquid) theme={"system"}
  import * as hl from "@nktkas/hyperliquid";

  const transport = new hl.HttpTransport({ apiUrl: "YOUR_CHAINSTACK_ENDPOINT" });
  const client = new hl.InfoClient({ transport });

  const data = await client.webData2({
    user: "0x31ca8395cf837de08b24da3f660e77761dfb974b",
  });
  console.log(data);
  ```
</CodeGroup>

<Note>
  **Use your own endpoint in your code.** The code examples use a placeholder Chainstack endpoint (YOUR\_CHAINSTACK\_ENDPOINT) — replace it with your own Hyperliquid node endpoint from the [Chainstack console](https://console.chainstack.com/). The curl above uses a shared public endpoint for quick checks only; do not use it in production.
</Note>

## Use case

The `info` endpoint with `type: "webData2"` is essential for applications that need to:

* **Trading dashboards**: Display comprehensive market overview and statistics
* **Web applications**: Provide aggregated data for frontend interfaces
* **Market summaries**: Show platform-wide trading activity and metrics
* **Real-time displays**: Update UI components with current market conditions
* **Performance monitoring**: Track network health and user activity
* **Feature management**: Control UI features based on configuration settings
* **Mobile applications**: Efficiently load dashboard data with minimal requests
* **Analytics interfaces**: Display aggregated platform statistics
* **Status pages**: Show platform health and maintenance information
* **Portfolio overviews**: Provide market context for user positions
* **Trading terminals**: Display comprehensive market data in trading interfaces
* **Public displays**: Show platform statistics for marketing and transparency
* **API optimization**: Reduce multiple endpoint calls with single aggregated request
* **Caching strategies**: Implement efficient data caching for web applications

This endpoint is particularly valuable for web developers building comprehensive trading interfaces, mobile app developers optimizing for performance, dashboard creators needing aggregated platform data, and any application requiring efficient access to multiple data categories in a single API call on the Hyperliquid network.


## OpenAPI

````yaml openapi/hyperliquid_node_api/hypercore_info/info_web_data2.json post /4f8d8f4040bdacd1577bff8058438274/info
openapi: 3.0.0
info:
  title: Hyperliquid Node API
  version: 1.0.0
  description: This is an API for interacting with Chainstack Hyperliquid node.
servers:
  - url: https://hyperliquid-mainnet.core.chainstack.com
security: []
paths:
  /4f8d8f4040bdacd1577bff8058438274/info:
    post:
      tags:
        - hyperliquid operations
      summary: info (webData2)
      operationId: infoWebData2
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                type:
                  type: string
                  default: webData2
                  enum:
                    - webData2
                  description: Request type to retrieve web application data
              required:
                - type
      responses:
        '200':
          description: Web application data and interface configuration
          content:
            application/json:
              schema:
                type: object
                description: Comprehensive web application data for frontend interfaces
                properties:
                  marketData:
                    type: object
                    description: Market information and trading data
                    properties:
                      markets:
                        type: array
                        description: List of available markets
                        items:
                          type: object
                          properties:
                            symbol:
                              type: string
                              description: Market symbol
                            price:
                              type: string
                              description: Current market price
                            volume24h:
                              type: string
                              description: 24-hour trading volume
                            change24h:
                              type: string
                              description: 24-hour price change percentage
                      totalVolume:
                        type: string
                        description: Total platform trading volume
                      totalOpenInterest:
                        type: string
                        description: Total open interest across all markets
                  networkStats:
                    type: object
                    description: Network statistics and health metrics
                    properties:
                      blockHeight:
                        type: integer
                        description: Current block height
                      activeUsers:
                        type: integer
                        description: Number of active users
                      totalTransactions:
                        type: integer
                        description: Total number of transactions
                  uiConfig:
                    type: object
                    description: User interface configuration settings
                    properties:
                      features:
                        type: array
                        description: Enabled features for the web interface
                        items:
                          type: string
                      maintenance:
                        type: boolean
                        description: Whether the platform is in maintenance mode

````