# Ipregistry User-Agent Parsing

Parse a User-Agent via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Ipregistry, pass parameters such as ua, and retrieve structured data including original User-Agent header, parsed client name, parsed client version, parsed client category, and inferred device category for header inspection, and compatibility tools, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/ipregistry/ipregistry-user-agent-parsing/db79cc41-f7c7-483c-b68e-c0e41645e069/
API ID: db79cc41-f7c7-483c-b68e-c0e41645e069
Provider: ipregistry
Contract revision: 2
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/ipregistry/user-agent/parse
Page update time: 2026-12-03T02:49:12.584Z
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: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.000667 / call
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:11.793Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "667",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Ipregistry User-Agent Parsing API

Set the required ua query parameter to the complete User-Agent string. This profile parses that supplied value rather than detecting the caller’s browser automatically. The response includes header and parsed attributes; fields can select a subset.

## What You Can Build

- **Header inspection**: Display parsed attributes beside a supplied client header.
- **Compatibility tools**: Classify browser and engine versions for an application support workflow.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `header` | Original User-Agent header |
| `name` | Parsed client name |
| `version` | Parsed client version |
| `type` | Parsed client category |
| `device.type` | Inferred device category |
| `os.name` | Parsed operating system name |
| `engine.name` | Parsed engine name |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Ipregistry User-Agent Parsing 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": {
        "ua": {
          "type": "string",
          "description": "Complete User-Agent string to parse. Required in this OpenAny profile so the result describes the supplied string.",
          "minLength": 1
        },
        "fields": {
          "type": "string",
          "description": "Optional native response-field selector. Omit it to receive the full response. See https://ipregistry.co/docs/filtering.",
          "minLength": 1
        }
      },
      "required": [
        "ua"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "device": {
      "type": "object",
      "properties": {
        "brand": {
          "type": "null"
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      }
    },
    "engine": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "version": {
          "type": "string"
        },
        "version_major": {
          "type": "string"
        }
      }
    },
    "header": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "os": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      }
    },
    "type": {
      "type": "string"
    },
    "version": {
      "type": "string"
    },
    "version_major": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/ipregistry/user-agent/parse?ua=Mozilla%2F5.0+%28Windows+NT+10.0%3B+Win64%3B+x64%3B+rv%3A128.0%29+Gecko%2F20100101+Firefox%2F128.0' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "device": {
    "brand": null,
    "name": "Desktop",
    "type": "desktop"
  },
  "engine": {
    "name": "Gecko",
    "type": "browser",
    "version": "128.0",
    "version_major": "128"
  },
  "header": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0",
  "name": "Firefox",
  "os": {
    "name": "Windows NT",
    "type": "desktop",
    "version": ">=10"
  },
  "type": "browser",
  "version": "128.0",
  "version_major": "128"
}
```

## 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
### Will this automatically parse my browser?
No. This OpenAny profile requires ua and parses the string you supply.

### How should I send spaces and punctuation?
URL-encode the complete ua value. The curl example uses --data-urlencode so spaces, parentheses and other header characters remain part of one parameter.

### Can the returned device attributes be trusted as identity?
They describe the submitted text and can be incomplete or spoofed. Preserve unknown or null values rather than treating the result as device verification.

### Can I parse several headers in this GET call?
No. Use Batch User-Agent Parsing with a root JSON array for multiple complete strings.

### 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
- ipregistry: https://openany.si/ipregistry/ipregistry-user-agent-parsing/db79cc41-f7c7-483c-b68e-c0e41645e069/

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