Skip to main content
POST
/
networks
/
traffic
/
domains
/
{domainUrl}
/
situation
Get Domain Situation
curl --request POST \
  --url https://api.eflow.team/v1/networks/traffic/domains/{domainUrl}/situation \
  --header 'Content-Type: application/json' \
  --header 'X-Eflow-Api-Key: <api-key>' \
  --data '{}'
import requests

url = "https://api.eflow.team/v1/networks/traffic/domains/{domainUrl}/situation"

payload = {}
headers = {
"X-Eflow-Api-Key": "<api-key>",
"Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
const options = {
method: 'POST',
headers: {'X-Eflow-Api-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};

fetch('https://api.eflow.team/v1/networks/traffic/domains/{domainUrl}/situation', 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.eflow.team/v1/networks/traffic/domains/{domainUrl}/situation",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([

]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-Eflow-Api-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"
"strings"
"net/http"
"io"
)

func main() {

url := "https://api.eflow.team/v1/networks/traffic/domains/{domainUrl}/situation"

payload := strings.NewReader("{}")

req, _ := http.NewRequest("POST", url, payload)

req.Header.Add("X-Eflow-Api-Key", "<api-key>")
req.Header.Add("Content-Type", "application/json")

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

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

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://api.eflow.team/v1/networks/traffic/domains/{domainUrl}/situation")
.header("X-Eflow-Api-Key", "<api-key>")
.header("Content-Type", "application/json")
.body("{}")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.eflow.team/v1/networks/traffic/domains/{domainUrl}/situation")

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

request = Net::HTTP::Post.new(url)
request["X-Eflow-Api-Key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
{
  "network_id": 1,
  "url": "track.acme.com",
  "type": "down",
  "domain_type": "tracking",
  "ownership": "internal",
  "is_mps": false,
  "time_expires": 1797989980,
  "is_ip_flagged": false,
  "time_last_uptime_checked": 1782434380,
  "time_first_uptime_checked": 1782437980,
  "incidents": [
    {
      "network_id": 1,
      "url": "track.acme.com",
      "identifier": "WO8429BKVJ4E7CPE",
      "type": "certificate_issue",
      "status": "active",
      "time_created": 1781746780,
      "time_resolved": 0
    }
  ],
  "ongoing_incidents_count": 1,
  "resolved_incidents_count": 0,
  "action_required_tasks_count": 0,
  "non_urgent_tasks_count": 0,
  "completed_tasks_count": 0,
  "active_flags_count": 0,
  "removed_flags_count": 0,
  "mean_time_to_resolution_seconds": 0
}
The full Traffic Health picture for a single monitored domain — overall state, ownership, expiry, its open incidents, and rolled-up incident, task, and flag counts. The domain must be a monitored tracking or conversion domain.

Authorizations

X-Eflow-Api-Key
string
header
required

Path Parameters

domainUrl
string
required

The monitored tracking or conversion domain URL (e.g. track.acme.com).

Body

application/json

Optional filters. Send an empty object {} for the default rollup.

Response

200 - application/json
network_id
integer
url
string
type
string

Overall state of the domain (up or down).

domain_type
string
ownership
string

Ownership / management model (e.g. internal).

is_mps
boolean

Managed proxy service domain.

time_expires
integer

Domain expiry (unix seconds).

is_ip_flagged
boolean

Whether a hosting IP is currently flagged.

time_last_uptime_checked
integer
time_first_uptime_checked
integer
incidents
object[]
ongoing_incidents_count
integer
resolved_incidents_count
integer
action_required_tasks_count
integer
non_urgent_tasks_count
integer
completed_tasks_count
integer
active_flags_count
integer
removed_flags_count
integer
mean_time_to_resolution_seconds
integer