Skip to main content
GET
/
api
/
infrastructure
/
v1
/
get-temporal-baseline
GetTemporalBaseline
curl --request GET \
  --url https://api.worldmonitor.app/api/infrastructure/v1/get-temporal-baseline \
  --header 'X-WorldMonitor-Key: <api-key>'
import requests

url = "https://api.worldmonitor.app/api/infrastructure/v1/get-temporal-baseline"

headers = {"X-WorldMonitor-Key": "<api-key>"}

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

print(response.text)
const options = {method: 'GET', headers: {'X-WorldMonitor-Key': '<api-key>'}};

fetch('https://api.worldmonitor.app/api/infrastructure/v1/get-temporal-baseline', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://api.worldmonitor.app/api/infrastructure/v1/get-temporal-baseline",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-WorldMonitor-Key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

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

func main() {

url := "https://api.worldmonitor.app/api/infrastructure/v1/get-temporal-baseline"

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

req.Header.Add("X-WorldMonitor-Key", "<api-key>")

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

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

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://api.worldmonitor.app/api/infrastructure/v1/get-temporal-baseline")
.header("X-WorldMonitor-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.worldmonitor.app/api/infrastructure/v1/get-temporal-baseline")

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

request = Net::HTTP::Get.new(url)
request["X-WorldMonitor-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "anomaly": {
    "multiplier": 1.5,
    "severity": "watch",
    "zScore": 42.5
  },
  "baseline": {
    "mean": 1.5,
    "sampleCount": 1,
    "stdDev": 1.5
  },
  "error": "example",
  "learning": true,
  "sampleCount": 1
}
{
"violations": [
{
"field": "<string>",
"description": "<string>"
}
]
}
{
"error": "<string>"
}
{
"error": "<string>",
"requiredTier": 123,
"currentTier": 123,
"planKey": "<string>"
}
{
"message": "<string>"
}
{
"message": "<string>"
}

Authorizations

X-WorldMonitor-Key
string
header
required

User-issued WorldMonitor API key.

Query Parameters

type
enum<string>
required

Activity type: "military_flights", "vessels", "protests", "news", "ais_gaps", "satellite_fires".

Available options:
military_flights,
vessels,
protests,
news,
ais_gaps,
satellite_fires
region
string

Geographic region key, defaults to "global".

count
number<double>

Current observed count to compare against baseline.

jmespath
string

Optional JMESPath expression applied server-side to project or reduce the JSON response before it is returned (mirrors the MCP jmespath argument). Invalid expressions, expressions larger than 1024 UTF-8 bytes, or projections that exceed the 256 KB output cap return HTTP 400 with a {_jmespath_error, original_keys} envelope. Grammar and worked examples: https://www.worldmonitor.app/docs/mcp-jmespath.

Response

Successful response

GetTemporalBaselineResponse returns anomaly info or learning status.

anomaly
object

BaselineAnomaly describes a detected deviation from historical baseline.

baseline
object

BaselineStats contains the running statistics for a baseline key.

learning
boolean

True if insufficient samples have been collected.

sampleCount
integer<int32>

Current number of samples stored.

samplesNeeded
integer<int32>

Minimum samples required before anomaly detection activates.

error
string

Error message if request was invalid.