Say Goodbye to the Cookbook

It has had a great run but our new docs are easier to use and navigate. Check them out at docs.saucelabs.com.

The Sauce Labs Cookbook

Sauce Headless

Front End Performance Testing

Insights

External Resources

More Info


Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

Table of Contents
maxLevel3

Location 

There are two endpoints depending on which data center you are using. There are two data centers in Sauce Labs that support real devices: EU and US. Please use the endpoint associated to the data center you have an account in. 

Get Jobs

Get a list of jobs running on real devices

Code Block
GET api.us-west-1.saucelabs.com/v1/rdc/jobs 
GET api.eu-central-1.saucelabs.com/v1/rdc/jobs

...

Expand
titleClick here to see a sample JSON response



Code Block
RDC jobs list:

https://api.us-west-1.saucelabs.com/v1/rdc/jobs or https://api.eu-central-1.saucelabs.com/v1/rdc/jobs

{
    "entities": [
        {
            "assigned_tunnel_id": null,
            "device_type": "real_device",
            "owner_sauce": "maxmustermann",
            "consolidated_status": "complete",
            "end_time": 1551271288938,
            "id": "b7b24affb8bd4562b1a085677df83529",
            "name": "takeScreenshot",
            "os": "Android",
            "os_version": "7.0",
            "device_name": "Huawei Honor 8",
            "start_time": 1551271274593,
            "status": "complete",
            "creation_time": 1551271274593
        },
        {
            "assigned_tunnel_id": null,
            "device_type": "real_device",
            "owner_sauce": "maxmustermann",
            "consolidated_status": "complete",
            "end_time": 1551270267061,
            "id": "c63d5d051d3b47f8a5026b5595f01739",
            "name": "takeScreenshot",
            "os": "iOS",
            "os_version": "10.1.1",
            "device_name": "iPhone 5C",
            "start_time": 1551270206344,
            "status": "complete",
            "creation_time": 1551270206344
        },
        {
            "assigned_tunnel_id": null,
            "device_type": "real_device",
            "owner_sauce": "maxmustermann",
            "consolidated_status": "complete",
            "end_time": 1551269354340,
            "id": "774e5aab24264d72961484ed3d250dfb",
            "name": "takeScreenshot",
            "os": "Android",
            "os_version": "6.0",
            "device_name": "LG G Stylo",
            "start_time": 1551269315405,
            "status": "complete",
            "creation_time": 1551269315405
        },
        ...
    ],
    "metaData": {
        "offset": 1,
        "limit": 20,
        "searchTerm": null,
        "sortDirection": "DESCENDING",
        "moreAvailable": true
    }
}

...

Code Block
GET api.us-west-1.saucelabs.com/v1/rdc/jobs/[JOB_ID]
GET api.eu-central-1.saucelabs.com/v1/rdc/jobs/[JOB_ID]

...