> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://api.docs.modulards.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://api.docs.modulards.com/_mcp/server.

# Show site uptime

GET https://api.modulards.com/api/public/v1/sites/{site}/uptime

Returns the site's uptime summary as a meta-only JSON:API document (a computed structure, not a resource): whether uptime is `configured` and `enabled`, the current `status` (`up` / `down` / `unknown`) with `status_since`, the `last_ping` (`at`, `status`, `status_code`, `response_time_ms`, `error`) and rolling `availability` windows — `day`, `week` and `month` — each with an uptime `percentage` and `total_pings`.

Sites without an uptime service answer `configured: false` with everything else null. A paused service reports `status: "unknown"` but keeps historical `last_ping` / `availability`. A window with no pings reports `percentage: null`, never a fake 100.

This read is heavier than `Show site` (it runs availability stats queries per call) — fetch it for the site you are inspecting, not in a loop over your whole site list.

Sites of other organizations answer 404. The MCP twin of this endpoint is the `sites-uptime-show` tool.

Reference: https://api.docs.modulards.com/modular-ds-public-api/uptime-monitor/show-site-uptime

## Authentication

- `Authorization` header (bearer token, required) — Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints.

## Request

### Path parameters

- `site` (string, required)

## Response

### 200

200 - Uptime summary

- `jsonapi` (object, optional)
  - `version` (string, optional)
- `meta` (object, optional)
  - `availability` (object, optional)
    - `day` (object, optional)
      - `percentage` (double, optional)
      - `total_pings` (double, optional)
    - `month` (object, optional)
      - `percentage` (double, optional)
      - `total_pings` (double, optional)
    - `week` (object, optional)
      - `percentage` (double, optional)
      - `total_pings` (double, optional)
  - `configured` (boolean, optional)
  - `enabled` (boolean, optional)
  - `last_ping` (object, optional)
    - `at` (string, optional)
    - `error` (any, optional, nullable)
    - `response_time_ms` (double, optional)
    - `status` (string, optional)
    - `status_code` (double, optional)
  - `status` (string, optional)
  - `status_since` (string, optional)

## Examples

**Response**

```json
{
  "jsonapi": {
    "version": "1.1"
  },
  "meta": {
    "availability": {
      "day": {
        "percentage": 100,
        "total_pings": 288
      },
      "month": {
        "percentage": 99.72,
        "total_pings": 8640
      },
      "week": {
        "percentage": 99.86,
        "total_pings": 2016
      }
    },
    "configured": true,
    "enabled": true,
    "last_ping": {
      "at": "2026-09-21T09:55:00.000000Z",
      "error": null,
      "response_time_ms": 312,
      "status": "up",
      "status_code": 200
    },
    "status": "up",
    "status_since": "2026-09-10T06:00:00.000000Z"
  }
}
```

**SDK Code**

```python 200 - Uptime summary
import requests

url = "https://api.modulards.com/api/public/v1/sites/site/uptime"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript 200 - Uptime summary
const url = 'https://api.modulards.com/api/public/v1/sites/site/uptime';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go 200 - Uptime summary
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.modulards.com/api/public/v1/sites/site/uptime"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby 200 - Uptime summary
require 'uri'
require 'net/http'

url = URI("https://api.modulards.com/api/public/v1/sites/site/uptime")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java 200 - Uptime summary
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.modulards.com/api/public/v1/sites/site/uptime")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php 200 - Uptime summary
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.modulards.com/api/public/v1/sites/site/uptime', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp 200 - Uptime summary
using RestSharp;

var client = new RestClient("https://api.modulards.com/api/public/v1/sites/site/uptime");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift 200 - Uptime summary
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.modulards.com/api/public/v1/sites/site/uptime")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```