---
title: "GetTemporalBaseline"
method: GET
path: "/api/infrastructure/v1/get-temporal-baseline"
tags: ["InfrastructureService"]
---

# GetTemporalBaseline

`GET /api/infrastructure/v1/get-temporal-baseline`

## Request

- Base URL: `https://api.worldmonitor.app`
- URL: `https://api.worldmonitor.app/api/infrastructure/v1/get-temporal-baseline`
- Auth: one of:
  - API key in header `X-WorldMonitor-Key`
  - API key in header `X-Api-Key`

GetTemporalBaseline retrieves historical baseline data for a specific signal.

## Query parameters

- `type` 'military_flights' | 'vessels' | 'protests' | 'news' | 'ais_gaps' | 'satellite_fires', required
- `region` 'global' | ''
- `count` number, double
- `jmespath` string

## Response `200`

OK

- WorldmonitorInfrastructureV1GetTemporalBaselineResponse: GetTemporalBaselineResponse returns anomaly info or learning status.
  - `anomaly` WorldmonitorInfrastructureV1BaselineAnomaly: BaselineAnomaly describes a detected deviation from historical baseline.
    - `zScore` number, double: Number of standard deviations from the mean.
    - `severity` string: Severity label: "critical", "high", "medium", "normal".
    - `multiplier` number, double: Ratio of current count to baseline mean.
  - `baseline` WorldmonitorInfrastructureV1BaselineStats: BaselineStats contains the running statistics for a baseline key.
    - `mean` number, double: Running mean of observed counts.
    - `stdDev` number, double: Standard deviation derived from Welford's M2.
    - `sampleCount` integer: Number of samples incorporated so far.
  - `learning` boolean: True if insufficient samples have been collected.
  - `sampleCount` integer: Current number of samples stored.
  - `samplesNeeded` integer: Minimum samples required before anomaly detection activates.
  - `error` string: Error message if request was invalid.

## Other responses

- `400`: Validation error
- `401`: Missing or invalid API key.
- `403`: API access requires an active subscription (the API key's subscription is inactive or expired).
- `429`: Rate limit exceeded.
- `503`: Service unavailable. Billing-verification responses include code and X-Billing-Verification; other gateway infrastructure failures use the generic GatewayError shape.
- `default`: Gateway or handler error response.

---

[API](https://skmtc.dev/worldmonitor/apis/worldmonitor-api.md) · [All operations](https://skmtc.dev/worldmonitor/apis/worldmonitor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/worldmonitor/apis/worldmonitor-api/revisions/e3dc8463a5c9?raw)
