# Fetch baselines

getBaselines · GET /data/baselines.json

## Endpoint
`GET /data/baselines.json`

30/90-day archive baselines per numeric series plus a ranked deviations list (z-spikes, range breaks, new prints).

## Authentication
```json
[]
```
An empty security requirement means this operation does not declare authentication. Read operation notes for entitlement and protocol-method requirements.

## Parameters
No parameters declared by the specification.

## Responses and errors
| HTTP status | Meaning |
| --- | --- |
| 200 | The requested feed. |
| 404 | Feed not published for this run. |

## Response examples
No response example is supplied by OpenAPI for this operation. The complete response schemas are preserved below; use an actual response for observed values.

## Retry guidance
See [errors and retries](/docs/api/overview#errors-and-retries). Honor operation-specific response headers. A POST may create state; do not replay it automatically.

## Complete operation contract
The expanded contract below includes all parameter constraints, response headers, schemas and examples from OpenAPI.

```json
{
  "path": "/data/baselines.json",
  "method": "GET",
  "parameters": [],
  "operationId": "getBaselines",
  "summary": "Fetch baselines",
  "description": "30/90-day archive baselines per numeric series plus a ranked deviations list (z-spikes, range breaks, new prints).",
  "tags": [
    "data"
  ],
  "security": [],
  "responses": {
    "200": {
      "description": "The requested feed.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "schema_version": {
                "type": "integer"
              },
              "as_of": {
                "type": "string"
              },
              "source": {
                "type": "string"
              },
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "type": "string"
                    },
                    "value": {
                      "type": "number"
                    },
                    "url": {
                      "type": "string"
                    },
                    "extra": {
                      "type": "object",
                      "properties": {
                        "feed": {
                          "type": "string"
                        },
                        "feed_label": {
                          "type": "string"
                        },
                        "unit": {
                          "type": "string"
                        },
                        "kind": {
                          "type": "string"
                        },
                        "latest_source": {
                          "type": "string"
                        },
                        "baseline_30d": {
                          "type": "object",
                          "properties": {
                            "days": {},
                            "mean": {},
                            "std": {},
                            "min": {},
                            "max": {}
                          }
                        },
                        "baseline_90d": {
                          "type": "object",
                          "properties": {
                            "days": {},
                            "mean": {},
                            "std": {},
                            "min": {},
                            "max": {}
                          }
                        },
                        "z30": {
                          "type": "number"
                        },
                        "flags": {
                          "type": "array",
                          "items": {}
                        },
                        "note": {
                          "type": "string"
                        },
                        "note_zh": {
                          "type": "string"
                        },
                        "days_flagged": {
                          "type": "integer"
                        },
                        "archive_corrected_days": {
                          "type": "integer"
                        },
                        "archive_stale_days_excluded": {
                          "type": "integer"
                        }
                      }
                    }
                  }
                }
              },
              "window_days": {
                "type": "integer"
              },
              "short_window_days": {
                "type": "integer"
              },
              "deviations": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "type": "string"
                    },
                    "feed": {
                      "type": "string"
                    },
                    "feed_label": {
                      "type": "string"
                    },
                    "kind": {
                      "type": "string"
                    },
                    "flags": {
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "z30": {
                      "type": "number"
                    },
                    "severity": {
                      "type": "number"
                    },
                    "severity_raw": {
                      "type": "number"
                    },
                    "first_flagged": {
                      "type": "string"
                    },
                    "last_flagged": {
                      "type": "string"
                    },
                    "days_flagged": {
                      "type": "integer"
                    },
                    "note": {
                      "type": "string"
                    },
                    "note_zh": {
                      "type": "string"
                    },
                    "measure": {
                      "type": "string"
                    },
                    "unit": {
                      "type": "string"
                    },
                    "subject": {
                      "type": "string"
                    }
                  }
                }
              },
              "suppressed": {
                "type": "object",
                "properties": {
                  "archive_corrections": {
                    "type": "array",
                    "items": {}
                  },
                  "archive_correction_pending": {
                    "type": "array",
                    "items": {}
                  },
                  "stale_archive_days": {
                    "type": "object",
                    "properties": {}
                  },
                  "suspect_values": {
                    "type": "array",
                    "items": {}
                  },
                  "baseline_building": {
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              },
              "notes": {
                "type": "string"
              }
            },
            "additionalProperties": true,
            "description": "Inferred from the live feed at build time. The field inventory reflects this collection run; optional fields may be absent and the shape is refreshed on every deploy."
          }
        }
      }
    },
    "404": {
      "description": "Feed not published for this run.",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "required": [
              "error"
            ],
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "description": "A stable machine-readable code, e.g. unauthorized or not_found."
                  },
                  "message": {
                    "type": "string",
                    "description": "A human-readable explanation."
                  },
                  "hint": {
                    "type": "string",
                    "description": "Optional resolution pointer."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-codeSamples": [
    {
      "lang": "curl",
      "label": "curl",
      "source": "curl -s 'https://china-snapshot.com/data/baselines.json'"
    }
  ]
}
```
