---
title: pydo.uptime.get_check_state()
description: Retrieve Check State
product: Reference
url: https://docs.digitalocean.com/reference/pydo/reference/uptime/get_check_state/
last_updated: "2026-11-06"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# pydo.uptime.get_check_state()

Generated on 6 Nov 2026 from `pydo` version [`v0.45.0`](https://github.com/digitalocean/pydo/releases/tag/v0.45.0)

## Usage

```python
client.uptime.get_check_state(check_id="4de7ac8b-495b-4884-9a69-1050c6793cd6")
```

Returns `JSON` Raises `HttpResponseError`

## Description

To show information about an existing check’s state, send a GET request to [`/v2/uptime/checks/{check_id}/state`](https://docs.digitalocean.com/reference/api/reference/uptime/index.html.md#uptime_get_checkState).

## Parameters

`check_id` string required

A unique identifier for a check.

## Request Sample

## Show Request Sample

```python
import os
from pydo import Client

client = Client(token=os.environ.get("DIGITALOCEAN_TOKEN"))

resp = client.uptime.check_state_get(check_id="fd9fda")
```

## Response Example

## Show Response Example

```json
{
  "state": {
    "previous_outage": {
      "region": "us_east",
      "started_at": "2022-03-17T18:04:55Z",
      "ended_at": "2022-03-17T18:06:55Z",
      "duration_seconds": 120
    }
  }
}
```

## More Information

See [`/v2/uptime/checks/{check_id}/state`](https://docs.digitalocean.com/reference/api/reference/uptime/index.html.md#uptime_get_checkState) in the API reference for additional detail on responses, headers, parameters, and more.