Redirect.li API
Access the Redirect.li service through the API.
User Agent
Get my useragent
Gets detailed useragent information for my client
Query Example
curl https://api.redirect.li/v1/useragent
200 Success
This JSON object will be returned on a successful query.
Useragent device (or false if unknown)
URL to useragent information (or false if unknown)
The useragent string that was requested
Device vendor name
Device name
Type of device (desktop, unknown, bot, app, feed, library)
Operating system (or false if unknown)
Operating system name
Operating system version
Useragent engine (or false if unknown)
Engine name
Engine version
Browser information (or false if unknown)
Name of browser
Version of browser
Example
HTTP/1.1 200 OK
{
"agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36",
"device": {
"vendor": "Apple",
"name": " Mac",
"type": "desktop"
},
"os": {
"name": "Mac OS",
"version": "10.13.2"
},
"engine": {
"name": "WebKit",
"version": "537.36"
},
"browser": {
"name": "Chrome",
"version": "63.0.3239.132"
},
"url": false
}
Get useragent
Gets detailed useragent information for the give agent
URL Parameters
These parameters are supplied in the request URL.
User agent
Query Example
curl https://api.redirect.li/v1/useragent/Mozilla%2F5.0%20(Macintosh%3B%20Intel%20Mac%20OS%20X%2010_13_2)%20AppleWebKit%2F537.36%20(KHTML%2C%20like%20Gecko)%20Chrome%2F63.0.3239.132%20Safari%2F537.36
200 Success
This JSON object will be returned on a successful query.
Useragent device (or false if unknown)
URL to useragent information (or false if unknown)
The useragent string that was requested
Device vendor name
Device name
Type of device (desktop, unknown, bot, app, feed, library)
Operating system (or false if unknown)
Operating system name
Operating system version
Useragent engine (or false if unknown)
Engine name
Engine version
Browser information (or false if unknown)
Name of browser
Version of browser
Example
HTTP/1.1 200 OK
{
"agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.132 Safari/537.36",
"device": {
"vendor": "Apple",
"name": " Mac",
"type": "desktop"
},
"os": {
"name": "Mac OS",
"version": "10.13.2"
},
"engine": {
"name": "WebKit",
"version": "537.36"
},
"browser": {
"name": "Chrome",
"version": "63.0.3239.132"
},
"url": false
}