I regularly need to consume the latest user agents. I was looking for an API but couldn’t find anything dependable. I came across a self-updating list of the latest and most common user agents seen on the web across all device types, operating systems, and browsers. The data is mostly fresh, theoretically updating weekly.

I saw also that both in December 2024 and April 2025 the data is not updated weekly.

I mean, I can’t really complain. But this points out to me that this is more manual than I initially expected. And also not accessible enough for what I like.

So I’ll keep looking for a better solution, ideally one that offers the data as an API.
Word of warning
Also be careful where you get your random user agent from. See the npm package “rand-user-agent” that was taken over and had malicious code injected into it.