Get Decision Filter Values
curl --request GET \
--url https://api.shovels.ai/v2/list/decisions/filters \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.shovels.ai/v2/list/decisions/filters"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)HttpResponse<String> response = Unirest.get("https://api.shovels.ai/v2/list/decisions/filters")
.header("X-API-Key", "<api-key>")
.asString();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.shovels.ai/v2/list/decisions/filters"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://api.shovels.ai/v2/list/decisions/filters")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.shovels.ai/v2/list/decisions/filters",
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-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"asset_class": [
{
"id": "commercial",
"label": "Commercial"
},
{
"id": "mixed_use",
"label": "Mixed-Use"
}
],
"category": [
{
"id": "spot_rezoning",
"label": "Spot Rezoning"
}
],
"subcategory": [
{
"id": "water_sewer",
"label": "Water/Sewer"
}
],
"property_type": [
{
"id": "vacant_land",
"label": "Vacant Land"
}
]
}Lists
Get Decision Filter Values
Returns the values that the asset_class, category, subcategory and property_type filters of /decisions/search match. Lists only values that occur in the served decisions.
GET
/
list
/
decisions
/
filters
Get Decision Filter Values
curl --request GET \
--url https://api.shovels.ai/v2/list/decisions/filters \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.shovels.ai/v2/list/decisions/filters"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)HttpResponse<String> response = Unirest.get("https://api.shovels.ai/v2/list/decisions/filters")
.header("X-API-Key", "<api-key>")
.asString();package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.shovels.ai/v2/list/decisions/filters"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}require 'uri'
require 'net/http'
url = URI("https://api.shovels.ai/v2/list/decisions/filters")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.shovels.ai/v2/list/decisions/filters",
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-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"asset_class": [
{
"id": "commercial",
"label": "Commercial"
},
{
"id": "mixed_use",
"label": "Mixed-Use"
}
],
"category": [
{
"id": "spot_rezoning",
"label": "Spot Rezoning"
}
],
"subcategory": [
{
"id": "water_sewer",
"label": "Water/Sewer"
}
],
"property_type": [
{
"id": "vacant_land",
"label": "Vacant Land"
}
]
}Response
200 - application/json
The values of each decision filter, sorted by id
The values each Decisions search filter matches.
Was this page helpful?

