{
  "x402Version": 2,
  "id": 72366,
  "slug": "saylorinnovations-api-dev-user-agent",
  "resource": "https://saylorinnovations.com/api/dev/user-agent",
  "description": "Parse a User-Agent string into browser, version, engine, OS, device type and architecture, and flag search, AI and social bots and HTTP tools",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95830",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "user_agent": {
        "type": "string",
        "description": "User-agent the rules were evaluated for"
      },
      "is_bot": {
        "type": "boolean",
        "description": "True when this is bot"
      },
      "bot": {
        "type": [
          "object",
          "null"
        ],
        "description": "Bot or crawler name when the agent is automated, otherwise null"
      },
      "browser": {
        "type": [
          "string",
          "null"
        ],
        "description": "Browser family"
      },
      "browser_version": {
        "type": [
          "string",
          "null"
        ],
        "description": "Browser version"
      },
      "engine": {
        "type": [
          "string",
          "null"
        ],
        "description": "Engine or model that produced the result"
      },
      "os": {
        "type": [
          "string",
          "null"
        ],
        "description": "Operating system"
      },
      "os_version": {
        "type": [
          "string",
          "null"
        ],
        "description": "Os version"
      },
      "device_type": {
        "type": "string",
        "description": "Device type"
      },
      "architecture": {
        "type": [
          "string",
          "null"
        ],
        "description": "CPU architecture when stated"
      },
      "note": {
        "type": "string",
        "description": "Caveat or context for reading the result"
      },
      "source": {
        "type": "string",
        "description": "Data source the values come from"
      },
      "browser_major": {
        "type": [
          "number",
          "null"
        ],
        "description": "Browser major"
      },
      "outdated_browser_hint": {
        "description": "Outdated browser hint"
      }
    },
    "required": [
      "user_agent",
      "is_bot",
      "device_type"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "ua": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Mobile/15E148 Safari/604.1"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Mobile/15E148 Safari/604.1",
            "is_bot": false,
            "bot": null,
            "browser": "Safari",
            "browser_version": "17.4",
            "browser_major": 17,
            "engine": "WebKit",
            "os": "iOS",
            "os_version": "17.4",
            "device_type": "mobile",
            "architecture": null,
            "outdated_browser_hint": null,
            "note": "Pattern-based parsing of the User-Agent string. UA strings are easily spoofed, and Chrome now freezes parts of the string (macOS and Windows versions), so use it for analytics and rough routing, not security decisions.",
            "source": "User-Agent patterns"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "ua": {
                    "type": "string",
                    "description": "User-Agent header value to parse"
                  }
                },
                "required": [
                  "ua"
                ]
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "user_agent": {
                    "type": "string",
                    "description": "User-agent the rules were evaluated for"
                  },
                  "is_bot": {
                    "type": "boolean",
                    "description": "True when this is bot"
                  },
                  "bot": {
                    "type": [
                      "object",
                      "null"
                    ],
                    "description": "Bot or crawler name when the agent is automated, otherwise null"
                  },
                  "browser": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Browser family"
                  },
                  "browser_version": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Browser version"
                  },
                  "engine": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Engine or model that produced the result"
                  },
                  "os": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Operating system"
                  },
                  "os_version": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "Os version"
                  },
                  "device_type": {
                    "type": "string",
                    "description": "Device type"
                  },
                  "architecture": {
                    "type": [
                      "string",
                      "null"
                    ],
                    "description": "CPU architecture when stated"
                  },
                  "note": {
                    "type": "string",
                    "description": "Caveat or context for reading the result"
                  },
                  "source": {
                    "type": "string",
                    "description": "Data source the values come from"
                  },
                  "browser_major": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Browser major"
                  },
                  "outdated_browser_hint": {
                    "description": "Outdated browser hint"
                  }
                },
                "required": [
                  "user_agent",
                  "is_bot",
                  "device_type"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "parse a user agent string",
    "is this user agent a bot",
    "detect gptbot or claudebot",
    "browser and os from user agent",
    "mobile or desktop from user"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.937Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "ua": {
          "type": "string",
          "description": "User-Agent header value to parse"
        }
      },
      "required": [
        "ua"
      ]
    },
    "exampleResponse": {
      "user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Mobile/15E148 Safari/604.1",
      "is_bot": false,
      "bot": null,
      "browser": "Safari",
      "browser_version": "17.4",
      "browser_major": 17,
      "engine": "WebKit",
      "os": "iOS",
      "os_version": "17.4",
      "device_type": "mobile",
      "architecture": null,
      "outdated_browser_hint": null,
      "note": "Pattern-based parsing of the User-Agent string. UA strings are easily spoofed, and Chrome now freezes parts of the string (macOS and Windows versions), so use it for analytics and rough routing, not security decisions.",
      "source": "User-Agent patterns"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "ua": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Mobile/15E148 Safari/604.1"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "user_agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 17_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.4 Mobile/15E148 Safari/604.1",
              "is_bot": false,
              "bot": null,
              "browser": "Safari",
              "browser_version": "17.4",
              "browser_major": 17,
              "engine": "WebKit",
              "os": "iOS",
              "os_version": "17.4",
              "device_type": "mobile",
              "architecture": null,
              "outdated_browser_hint": null,
              "note": "Pattern-based parsing of the User-Agent string. UA strings are easily spoofed, and Chrome now freezes parts of the string (macOS and Windows versions), so use it for analytics and rough routing, not security decisions.",
              "source": "User-Agent patterns"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "ua": {
                      "type": "string",
                      "description": "User-Agent header value to parse"
                    }
                  },
                  "required": [
                    "ua"
                  ]
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "user_agent": {
                      "type": "string",
                      "description": "User-agent the rules were evaluated for"
                    },
                    "is_bot": {
                      "type": "boolean",
                      "description": "True when this is bot"
                    },
                    "bot": {
                      "type": [
                        "object",
                        "null"
                      ],
                      "description": "Bot or crawler name when the agent is automated, otherwise null"
                    },
                    "browser": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Browser family"
                    },
                    "browser_version": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Browser version"
                    },
                    "engine": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Engine or model that produced the result"
                    },
                    "os": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Operating system"
                    },
                    "os_version": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "Os version"
                    },
                    "device_type": {
                      "type": "string",
                      "description": "Device type"
                    },
                    "architecture": {
                      "type": [
                        "string",
                        "null"
                      ],
                      "description": "CPU architecture when stated"
                    },
                    "note": {
                      "type": "string",
                      "description": "Caveat or context for reading the result"
                    },
                    "source": {
                      "type": "string",
                      "description": "Data source the values come from"
                    },
                    "browser_major": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Browser major"
                    },
                    "outdated_browser_hint": {
                      "description": "Outdated browser hint"
                    }
                  },
                  "required": [
                    "user_agent",
                    "is_bot",
                    "device_type"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/dev/user-agent?ua=Mozilla%2F5.0%20(iPhone%3B%20CPU%20iPhone%20OS%2017_4%20like%20Mac%20OS%20X)%20AppleWebKit%2F605.1.15%20(KHTML%2C%20like%20Gecko)%20Version%2F17.4%20Mobile%2F15E148%20Safari%2F604.1",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "user_agent": "string",
    "is_bot": true,
    "bot": {},
    "browser": "string",
    "browser_version": "string",
    "engine": "string",
    "os": "string",
    "os_version": "string",
    "device_type": "string",
    "architecture": "string",
    "note": "string",
    "source": "string",
    "browser_major": 0,
    "outdated_browser_hint": null
  }
}