{"id":19691792,"url":"https://github.com/tomlutzenberger/useragent","last_synced_at":"2025-06-12T23:38:05.351Z","repository":{"id":86098352,"uuid":"95397997","full_name":"tomlutzenberger/useragent","owner":"tomlutzenberger","description":"A small and easy but useful webservice to identify user-agents","archived":false,"fork":false,"pushed_at":"2017-09-04T18:58:44.000Z","size":721,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-10T08:57:10.184Z","etag":null,"topics":["api","browser","identification","navigator","operating-system","os","user-agent","webservice"],"latest_commit_sha":null,"homepage":"https://useragent.codes","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tomlutzenberger.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-26T01:51:18.000Z","updated_at":"2017-09-04T18:56:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"4062f065-dbf9-4b57-8aaa-4953b3cddd61","html_url":"https://github.com/tomlutzenberger/useragent","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomlutzenberger%2Fuseragent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomlutzenberger%2Fuseragent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomlutzenberger%2Fuseragent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomlutzenberger%2Fuseragent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomlutzenberger","download_url":"https://codeload.github.com/tomlutzenberger/useragent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241000458,"owners_count":19891801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","browser","identification","navigator","operating-system","os","user-agent","webservice"],"created_at":"2024-11-11T19:11:01.173Z","updated_at":"2025-02-27T09:45:03.543Z","avatar_url":"https://github.com/tomlutzenberger.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# useragent.codes\n\n[![Releases](https://img.shields.io/github/release/tomlutzenberger/useragent/all.svg)](https://github.com/tomlutzenberger/useragent/releases)\n[![NSP Status](https://nodesecurity.io/orgs/tomlutzenberger/projects/fca7e226-450f-4807-a43b-da1a77afec4d/badge)](https://nodesecurity.io/orgs/tomlutzenberger/projects/fca7e226-450f-4807-a43b-da1a77afec4d)\n[![David](https://img.shields.io/david/tomlutzenberger/useragent.svg)]()\n[![David Dev](https://img.shields.io/david/dev/tomlutzenberger/useragent.svg?label=devDep)]()\n\n## What is _useragent.codes_ ?\n\nA small and easy but useful webservice to identify user-agents (browsers). I created it because I needed to identify browser + OS on another project. Browscap was not possible to use, because it gives you a 73MB JSON (minified). Not a good choice for a JavaScript-only frontend project.\n\n\n## Why do I need it?\n\nHave you (as a developer) ever tried to identify you browser \u0026 OS via `navigator.useragent` by yourself?\nYou have to parse this string and often it looks very different on various browsers and systems.\n\nBelieve me, you don't want to do this by yourself. **It sucks**.\n\n\n## How does it work?\n\n**It's simple:**\nI used [UA-Parser's PHP implementation](https://github.com/ua-parser/uap-php) and put it on a server. It returns a JSON string with all the available information.\n\n\n## How do I use it?\n\nJust request [https://useragent.codes/get](https://useragent.codes/get) and the response will look something like this:\n\n```json\n{\n  \"info\":{\n    \"name\":\"useragent.codes\",\n    \"version\":\"v0.1\"\n  },\n  \"browser\":{\n    \"fullName\":\"Chrome 59.0.3071\",\n    \"name\":\"Chrome\",\n    \"version\":\"59.0.3071\",\n    \"major\":\"59\",\n    \"minor\":\"0\",\n    \"patch\":\"3071\"\n  },\n  \"system\":{\n    \"fullName\":\"Windows 10\",\n    \"name\":\"Windows 10\",\n    \"version\":\"\",\n    \"major\":null,\n    \"minor\":null,\n    \"patch\":null,\n    \"patchMinor\":null\n  },\n  \"device\":{\n    \"brand\":null,\n    \"model\":null,\n    \"family\":\"Other\"\n  }\n}\n```\n\n---\n\nMade with ❤\n\nA Project by [Tom Lutzenberger](https://tomlutzenberger.de)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomlutzenberger%2Fuseragent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomlutzenberger%2Fuseragent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomlutzenberger%2Fuseragent/lists"}