---
title: "How to Check AI Gateway Uptime: 5 Steps Using Public CSV Data"
description: "Don't trust a homepage percentage. Using AGI Plan's public hourly request data, learn to download the CSV, compute uptime by the 5xx rule, and know its limits."
url: https://cdnping.org/en/blog/check-gateway-uptime-public-data
language: en
published: 2026-11-29
category: "Relays & gateways"
tags: ["AI gateway","uptime","relay stability","public data","AGI Plan"]
source: cdnping.org
license: Free to quote and summarize with a link to the url above.
---
# How to Check AI Gateway Uptime: 5 Steps Using Public CSV Data

The most reliable way to check an AI gateway's uptime is to find the raw request data it publishes, download it, and do the math yourself, instead of trusting a single percentage on a web page. Few services publish hourly success and failure counts. This article uses the interface published by AGI Plan as an example and walks through the process from download to calculation, then covers what this kind of data can and cannot tell you. AGI Plan is a commercial partner of cdnping, and the example is taken from it, so read with that relationship in mind.

## Why isn't "99.9%" enough?

A standalone percentage is missing three things: what the denominator is, what counts as a failure, and how long the window is. The same 99.9% might mean "the share of all requests that returned 5xx," or it might mean "whether a probe every 5 minutes got through." Those are very different claims.

To judge whether a gateway's numbers are credible, ask four questions:

- Do the numerator and denominator come from real user requests, or from the operator's own probes?
- How is failure defined? Does a 4xx caused by a user's own bad parameters count?
- Can the data be split by hour, by capability group, or by model?
- Can anyone download the raw data and recompute it?

Only if the last answer is yes can the data be called verifiable.

## What data does AGI Plan publish?

AGI Plan offers an endpoint that requires no login:

```
https://agiplan.dev/api/status/requests?month=YYYY-MM
```

It returns success and failure counts per hour and per capability group for the given month. The default format is CSV; add `format=json` to get JSON. The capability groups are four: frontier reasoning, balanced general-purpose, Chinese flagship models, and fast lightweight models. See the AGI Plan website for exact definitions.

Its uptime definition is:

```
uptime = successes / (successes + failures caused by the platform itself)
```

Only 5xx responses count as platform failures. 4xx responses (for example a wrong key, invalid parameters, or an exhausted quota) are not counted as platform failures and, under this formula, do not enter the denominator either. This is the definition the operator publishes. Whether it is reasonable is for you to judge, and the limitations are covered below.

cdnping's [/en/status/agiplan](/en/status/agiplan) page mirrors this data. If you want to look at a chart first, start there.

## How do you calculate it yourself?

### Step 1: Download a month of data

```bash
curl -s "https://agiplan.dev/api/status/requests?month=2026-11" -o agiplan-2026-11.csv
head -n 5 agiplan-2026-11.csv
```

Replace the month with the one you want to check. Column names depend on what is actually returned, so run `head` to see the header first. The column names in the scripts below are placeholders for you to replace.

### Step 2: Identify the success and failure columns

The header usually contains a timestamp, a capability group, a success count, and a failure count. Fill the matching column names into the variables in the script. If you can't tell what a column means, go by the explanation on the AGI Plan website.

### Step 3: Aggregate by capability group

```python
import csv
from collections import defaultdict

FILE = "agiplan-2026-11.csv"
GROUP_COL = "group"      # placeholder: replace with the header's capability-group column
OK_COL = "success"       # placeholder: success count column
FAIL_COL = "failure"     # placeholder: platform failure count column

ok = defaultdict(int)
fail = defaultdict(int)
with open(FILE, newline="", encoding="utf-8") as f:
    for row in csv.DictReader(f):
        g = row[GROUP_COL]
        ok[g] += int(row[OK_COL])
        fail[g] += int(row[FAIL_COL])

for g in sorted(ok):
    total = ok[g] + fail[g]
    rate = ok[g] / total * 100 if total else float("nan")
    print(f"{g}: 请求 {total}，失败 {fail[g]}，可用率 {rate:.3f}%")
```

### Step 4: Find the worst hours

A monthly average smooths over short outages. Run the numbers hourly as well and list the hours with the highest failure ratio:

```python
import csv
rows = []
with open(FILE, newline="", encoding="utf-8") as f:
    for r in csv.DictReader(f):
        t = int(r[OK_COL]) + int(r[FAIL_COL])
        if t >= 50:   # hours with too few samples are excluded from the ranking; set the threshold yourself
            rows.append((int(r[FAIL_COL]) / t, r))
rows.sort(key=lambda x: x[0], reverse=True)
for ratio, r in rows[:10]:
    print(f"{ratio:.1%}", dict(r))
```

Check whether these hours cluster on one day or are scattered. Clustered on one day suggests a single incident. Scattered looks more like a chronic low-grade problem, though you should still cross-check against official status information.

### Step 5: Match the results to your own usage

Look mainly at the capability group you actually use. If you only make lightweight completion-style calls, don't draw conclusions from the frontier reasoning group, and vice versa. How the gateway performs during your peak hours (say, weekday daytime) matters more than the monthly average.

## What are the limits of this definition?

Because only 5xx is counted, the following cases won't show up in this uptime figure:

| Situation | Counted as failure? | What it means for you |
| --- | --- | --- |
| Upstream returns a 4xx rate limit | No | The "can't use it" you experience may not be in the numbers |
| Request is very slow but eventually succeeds | No | Latency has to be measured separately |
| Model output quality degrades | No | Uptime says nothing about quality |
| Link problems between your network and the gateway | No | The data is a server-side view |

So the public data answers "did the server return 5xx?" It can't answer "does it work well from where I am?" You have to fill in the last two yourself: latency and link quality can be measured from your own network with the [online speed test](/en) on the cdnping homepage, and you can check the details of the calculation basis against [/en/methodology](/en/methodology).

Also, cdnping's own data collection only began in October 2026, so its history is short and shouldn't be treated as a long-term statistic. The same goes for AGI Plan's monthly data: if you don't have enough months, don't draw conclusions about "long-term stability."

## After reading the data, what else should you check?

Uptime is just one item. Before buying, you should also check the billing model, the data policy, and what the operator says about its own identity. These articles are good next reads:

- [Are third-party AI gateways reliable? Eight checks before you buy](/en/blog/evaluate-third-party-ai-api-gateway)
- [How to test AI service stability before buying: public data and your own measurements](/en/blog/test-ai-service-stability-before-buying)
- [How to run an API uptime test: metrics, scripts, and counting rules for measuring an AI API yourself](/en/blog/measure-ai-api-uptime-yourself)

If you're new to relay services, you can first read [How to choose an API relay: eight verifiable checks on uptime, billing, and data policy](/en/blog/api-relay-how-to-evaluate), then come back to the calculation part of this article.

## If you want to try AGI Plan

AGI Plan is a multi-provider LLM aggregation gateway. It is sold as a monthly subscription, paid in RMB, with no overseas credit card needed. Tools like Claude Code and Codex connect by changing a single endpoint address. Note that the operator itself states it is not an officially authorized channel, and some models are labeled "overseas only." Refer to [https://agiplan.dev/models](https://agiplan.dev/models) for specifics.

If you'd like to learn more before deciding, see [https://agiplan.dev/startup](https://agiplan.dev/startup), or read [Getting started with AGI Plan: sign up, create a key, change one setting](/en/blog/agiplan-getting-started). AGI Plan is a commercial partner of cdnping, which is all the more reason to recompute the numbers yourself using the method above rather than just taking our word for it.

The next step is simple: download the most recent month's CSV, run Steps 3 and 4, and compare the results with your own usage hours. If the data doesn't match your experience, trust your own measurements.
