Ranked facility list inside the warning area
The call sheet rows, ranked by the fixed scoring formula. Each row carries its score breakdown and evidence id. An empty list is a typed empty state, not an error.
GET
/
runs
/
{id}
/
facilities
Ranked facility list inside the warning area
curl --request GET \
--url https://api.example.com/runs/{id}/facilities \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/runs/{id}/facilities"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/runs/{id}/facilities', 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.example.com/runs/{id}/facilities",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.example.com/runs/{id}/facilities"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.example.com/runs/{id}/facilities")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/runs/{id}/facilities")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "<string>",
"country": "us",
"name": "<string>",
"type": "dialysis",
"key": {
"type": "ccn",
"value": "12081"
},
"lat": 123,
"lon": 123,
"score": {
"total": 123,
"terms": [
{
"name": "type_weight",
"input": 123,
"weight": 123,
"weighted": 123,
"note": "<string>"
}
],
"formula_version": "<string>",
"rank": 2,
"tie_break": "<string>"
},
"evidence": {
"zetaris_query_ids": [
"<string>"
],
"sources": [
{
"name": "cms_dialysis",
"license": "<string>",
"dataset_id": "23ew-n7w9",
"url": "<string>"
}
],
"data_as_of": [
{
"source": "<string>",
"fetched_at": "2023-11-07T05:31:56Z",
"snapshot_id": "<string>",
"stale": true,
"modified": "2023-11-07T05:31:56Z",
"provenance_file": "<string>"
}
],
"join_path": [
{
"from_key": "ccn",
"to_key": "ccn",
"method": "exact_key",
"match_rate": 123,
"query_id": "<string>"
}
],
"score": {
"total": 123,
"terms": [
{
"name": "type_weight",
"input": 123,
"weight": 123,
"weighted": 123,
"note": "<string>"
}
],
"formula_version": "<string>",
"rank": 2,
"tie_break": "<string>"
},
"dq_results": [
{
"rule": "zip_is_5_digits",
"passed": true,
"detail": "<string>"
}
],
"failed_joins": [
{
"from_key": "ccn",
"to_key": "ccn",
"method": "<unknown>",
"reason": "address could not be geocoded",
"row_count": 123,
"query_id": "<string>"
}
],
"facts": [
{
"name": "svi_pct",
"value": "<unknown>",
"query_id": "<string>",
"unit": "<string>"
}
],
"reason": {
"text": "<string>",
"trace_id": "<string>",
"rule_cites": [
{
"cite": "42 CFR 494.62",
"plan_section": "<string>",
"page": 123
}
],
"model_id": "nvidia/nemotron-3.5-super-vl-120b-a12b",
"mode": "meterless/deep",
"provider": "local"
},
"ledger_ids": [
"<string>"
]
},
"alt_keys": [
{
"type": "ccn",
"value": "12081"
}
],
"address": "<string>",
"phone": {
"status": "available",
"value": "<string>",
"source": {
"name": "cms_dialysis",
"license": "<string>",
"dataset_id": "23ew-n7w9",
"url": "<string>"
},
"source_record_key": "<string>"
},
"zip": "<string>",
"county_key": {
"type": "ccn",
"value": "12081"
},
"tract_key": {
"type": "ccn",
"value": "12081"
},
"geocode": {
"source": "census_geocoder",
"match_quality": "exact"
},
"attributes": {},
"mock": true
}
],
"total": 123,
"empty_state": {
"code": "no_facilities",
"message": "No facilities sit inside the warning area."
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"detail": "<unknown>",
"retry_after_ms": 123
}
}Authorizations
Query Parameters
⌘I
Ranked facility list inside the warning area
curl --request GET \
--url https://api.example.com/runs/{id}/facilities \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.example.com/runs/{id}/facilities"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.example.com/runs/{id}/facilities', 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.example.com/runs/{id}/facilities",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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.example.com/runs/{id}/facilities"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
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.example.com/runs/{id}/facilities")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/runs/{id}/facilities")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"items": [
{
"id": "<string>",
"country": "us",
"name": "<string>",
"type": "dialysis",
"key": {
"type": "ccn",
"value": "12081"
},
"lat": 123,
"lon": 123,
"score": {
"total": 123,
"terms": [
{
"name": "type_weight",
"input": 123,
"weight": 123,
"weighted": 123,
"note": "<string>"
}
],
"formula_version": "<string>",
"rank": 2,
"tie_break": "<string>"
},
"evidence": {
"zetaris_query_ids": [
"<string>"
],
"sources": [
{
"name": "cms_dialysis",
"license": "<string>",
"dataset_id": "23ew-n7w9",
"url": "<string>"
}
],
"data_as_of": [
{
"source": "<string>",
"fetched_at": "2023-11-07T05:31:56Z",
"snapshot_id": "<string>",
"stale": true,
"modified": "2023-11-07T05:31:56Z",
"provenance_file": "<string>"
}
],
"join_path": [
{
"from_key": "ccn",
"to_key": "ccn",
"method": "exact_key",
"match_rate": 123,
"query_id": "<string>"
}
],
"score": {
"total": 123,
"terms": [
{
"name": "type_weight",
"input": 123,
"weight": 123,
"weighted": 123,
"note": "<string>"
}
],
"formula_version": "<string>",
"rank": 2,
"tie_break": "<string>"
},
"dq_results": [
{
"rule": "zip_is_5_digits",
"passed": true,
"detail": "<string>"
}
],
"failed_joins": [
{
"from_key": "ccn",
"to_key": "ccn",
"method": "<unknown>",
"reason": "address could not be geocoded",
"row_count": 123,
"query_id": "<string>"
}
],
"facts": [
{
"name": "svi_pct",
"value": "<unknown>",
"query_id": "<string>",
"unit": "<string>"
}
],
"reason": {
"text": "<string>",
"trace_id": "<string>",
"rule_cites": [
{
"cite": "42 CFR 494.62",
"plan_section": "<string>",
"page": 123
}
],
"model_id": "nvidia/nemotron-3.5-super-vl-120b-a12b",
"mode": "meterless/deep",
"provider": "local"
},
"ledger_ids": [
"<string>"
]
},
"alt_keys": [
{
"type": "ccn",
"value": "12081"
}
],
"address": "<string>",
"phone": {
"status": "available",
"value": "<string>",
"source": {
"name": "cms_dialysis",
"license": "<string>",
"dataset_id": "23ew-n7w9",
"url": "<string>"
},
"source_record_key": "<string>"
},
"zip": "<string>",
"county_key": {
"type": "ccn",
"value": "12081"
},
"tract_key": {
"type": "ccn",
"value": "12081"
},
"geocode": {
"source": "census_geocoder",
"match_quality": "exact"
},
"attributes": {},
"mock": true
}
],
"total": 123,
"empty_state": {
"code": "no_facilities",
"message": "No facilities sit inside the warning area."
}
}{
"error": {
"code": "not_found",
"message": "<string>",
"detail": "<unknown>",
"retry_after_ms": 123
}
}