Redirect.li API

Access the Redirect.li service through the API.

User Agent

Get my useragent

Gets detailed useragent information for my client

GEThttps://api.redirect.li/v1/useragent

Query Example

curl https://api.redirect.li/v1/useragent

200 Success

This JSON object will be returned on a successful query.

deviceObject

Useragent device (or false if unknown)

urlString

URL to useragent information (or false if unknown)

agentobject

The useragent string that was requested

vendorString

Device vendor name

nameString

Device name

typeString

Type of device (desktop, unknown, bot, app, feed, library)

osObject

Operating system (or false if unknown)

nameString

Operating system name

versionString

Operating system version

engineObject

Useragent engine (or false if unknown)

nameString

Engine name

versionString

Engine version

browserObject

Browser information (or false if unknown)

nameString

Name of browser

versionString

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

GEThttps://api.redirect.li/v1/useragent/:agent

URL Parameters

These parameters are supplied in the request URL.

:agentstring

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.

deviceObject

Useragent device (or false if unknown)

urlString

URL to useragent information (or false if unknown)

agentobject

The useragent string that was requested

vendorString

Device vendor name

nameString

Device name

typeString

Type of device (desktop, unknown, bot, app, feed, library)

osObject

Operating system (or false if unknown)

nameString

Operating system name

versionString

Operating system version

engineObject

Useragent engine (or false if unknown)

nameString

Engine name

versionString

Engine version

browserObject

Browser information (or false if unknown)

nameString

Name of browser

versionString

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
}