Operations
Status and uptime
Check whether the Ruuster Listings API is up with GET /v1/status, monitor it from your uptime tool, and know what a pause means for your site.
GET /v1/status answers whether the API is up. It needs no key and costs nothing, so point your uptime
monitor at it.
curl -s "https://idx.ruuster.com/v1/status"import { createClient } from "@ruuster/idx";
const idx = createClient({ secretKey: process.env.IDX_SECRET_KEY });
const r = await idx.status();
if (!r.ok) throw new Error(`${r.error.code}: ${r.error.message}`);
console.log(r.data);import requests
res = requests.get(
"https://idx.ruuster.com/v1/status",
timeout=30,
)
body = res.json()
if not body["ok"]:
raise RuntimeError(body["error"]["code"] + ": " + body["error"]["message"])
print(body["data"])<?php
$ch = curl_init('https://idx.ruuster.com/v1/status');
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [],
CURLOPT_TIMEOUT => 30,
]);
$body = json_decode(curl_exec($ch), true);
curl_close($ch);
if (!$body['ok']) {
throw new RuntimeException($body['error']['code'] . ': ' . $body['error']['message']);
}
print_r($body['data']);data.statusisokwhenever the API is answering.data.pausedis true while Ruuster has paused the API for maintenance. Other calls then answer 503api_pausedwith aRetry-After.data.versionis the API version,v1.
What a pause or an outage means for your site
When your pages cache their renders and throw on 503, a pause or an outage never shows your visitors an error: your cache keeps serving the last good pages until the API answers again (Caching).
Notices
Planned maintenance is announced ahead of time by email to your account's contacts. For anything
urgent, email helpme@ruuster.com or call 312-948-5402 (Support).