# Hyperliquid — Retrieve perp categories

Get Hyperliquid Perp Categories data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Hyperliquid, pass parameters such as type, and retrieve structured data including perpetual coin identifier and reported category label for market directories, and client filters, ready for production pipelines and AI agent automation using a single OpenAny API key.

Documentation: https://openany.si/hyperliquid/hyperliquid-retrieve-perp-categories/bbd928fa-e04d-41f6-9271-a2c3138ea7a0/
API ID: bbd928fa-e04d-41f6-9271-a2c3138ea7a0
Provider: hyperliquid
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/hyperliquid/info/perp-categories
Page update time: 2026-12-03T02:49:36.001Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:35.440Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Hyperliquid Perp Categories API

POST type="perpCategories". The response is an array of \[coin, category\] string pairs. Unlike concise annotations, the second element is a category string rather than an object containing category.

## What You Can Build

- **Market directories**: Group returned coin identifiers by category.
- **Client filters**: Apply category filters to your own view.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `[][0]` | Perpetual coin identifier |
| `[][1]` | Reported category label |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Hyperliquid — Retrieve perp categories request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "additionalProperties": false,
      "examples": [
        {
          "type": "perpCategories"
        }
      ],
      "properties": {
        "type": {
          "const": "perpCategories",
          "description": "Fixed native Info query discriminator.",
          "enum": [
            "perpCategories"
          ],
          "example": "perpCategories",
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object",
      "description": "Retrieve perp categories Documentation prepared only; runtime not verified."
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "array",
  "items": {
    "type": "array",
    "items": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Documentation example (source abbreviated)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/hyperliquid/info/perp-categories' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "type": "perpCategories"
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
[
  [
    "flx:BTC",
    "crypto"
  ],
  [
    "flx:COIN",
    "stocks"
  ],
  [
    "flx:COPPER",
    "commodities"
  ]
]
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Is the second element an annotation object?
No. This route returns the category string directly as the second element in each pair.

### Can I request a single category from the API?
This implementation accepts type only. Filter the returned pairs in your own application.

### Are returned labels a permanent enum?
Use the labels actually returned. This input schema does not define a category enum or a fixed list of categories.

### Should I drop DEX prefixes before joining?
No. Preserve the original coin identifier so markets with similar display names remain distinguishable.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- hyperliquid: https://openany.si/hyperliquid/hyperliquid-retrieve-perp-categories/bbd928fa-e04d-41f6-9271-a2c3138ea7a0/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
