> For the complete documentation index, see [llms.txt](https://ontime.gitbook.io/ontime-v1-old/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ontime.gitbook.io/ontime-v1-old/additional-notes/sync-poll-ontime-status.md).

# Sync: Poll ontime status

In the scenario of syncing the state of ontime with 3rd party applications, ontime offers an endpoint to poll the app status

## Returns object containing app timer status

<mark style="color:blue;">`GET`</mark> `http://<your_ip>:4001/ontime/poll`

{% tabs %}
{% tab title="200: OK  " %}

```javascript
{
    "clock": 39981051,                  // clock in milliseconds
    "running": 1792,                    // current timer in milliseconds
    "durationSeconds": 1800,            // duration of current event
    "playback": "start",                // playback status
    "title": "Welcome to Ontime",       // current event title
    "presenter": "cpvalente",           // current event presenter 
    "timetag": "00:29:51"               // current timer string
}
```

{% endtab %}
{% endtabs %}

### Playback states

With the poll endpoint, ontime will report one of the following playback states

* Start - Playback in **play** mode
* Pause - playback in **pause** mode
* Roll - playback in [**roll** mode](/ontime-v1-old/features/roll.md)
* Stop - Playback in **stop** mode
