uaparserjs: Parse 'User-Agent' Strings

Despite there being a section in RFC 7231 <https://datatracker.ietf.org/doc/html/rfc7231#section-5.5.3> defining a suggested structure for 'User-Agent' headers this data is notoriously difficult to parse consistently. Tools are provided that will take in user agent strings and return structured R objects. This is a 'V8'-backed package based on the 'ua-parser' project <https://github.com/ua-parser>.

Getting started

Package details

AuthorBob Rudis [aut, cph], Greg Hunt [aut, cre, cph], Lindsey Simon [aut] (uap-core), Tobie Langel [aut] (uap-core), Colman Humphrey [ctb]
MaintainerGreg Hunt <greg@firmansyah.com>
LicenseApache License 2.0 | file LICENSE
Version0.3.7
URL https://github.com/gregfrog/uaparserjs
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("uaparserjs")

Try the uaparserjs package in your browser

Any scripts or data that you put into this service are public.

uaparserjs documentation built on April 1, 2026, 5:06 p.m.