Building Permits
curl --request POST \
--url https://win.oneshotagent.com/v1/tools/lookup/place-permitsimport requests
url = "https://win.oneshotagent.com/v1/tools/lookup/place-permits"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://win.oneshotagent.com/v1/tools/lookup/place-permits', 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://win.oneshotagent.com/v1/tools/lookup/place-permits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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://win.oneshotagent.com/v1/tools/lookup/place-permits"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://win.oneshotagent.com/v1/tools/lookup/place-permits")
.asString();require 'uri'
require 'net/http'
url = URI("https://win.oneshotagent.com/v1/tools/lookup/place-permits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyPlaces & hazards
Building Permits
Look up recorded permits and contractor work at a covered US street address
POST
/
v1
/
tools
/
lookup
/
place-permits
Building Permits
curl --request POST \
--url https://win.oneshotagent.com/v1/tools/lookup/place-permitsimport requests
url = "https://win.oneshotagent.com/v1/tools/lookup/place-permits"
response = requests.post(url)
print(response.text)const options = {method: 'POST'};
fetch('https://win.oneshotagent.com/v1/tools/lookup/place-permits', 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://win.oneshotagent.com/v1/tools/lookup/place-permits",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);
$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://win.oneshotagent.com/v1/tools/lookup/place-permits"
req, _ := http.NewRequest("POST", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://win.oneshotagent.com/v1/tools/lookup/place-permits")
.asString();require 'uri'
require 'net/http'
url = URI("https://win.oneshotagent.com/v1/tools/lookup/place-permits")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
response = http.request(request)
puts response.read_bodyReturns building permits from daily copies of public city records. Results return inline with a request ID and receipt. Send an
For NYC, supply
Idempotency-Key to replay the saved answer without another charge; if payment confirmation is pending, 202 returns the request ID, receipt ID and key, and you retry with that key.
Coverage: Chicago, Illinois (permits from 2006 onward, excluding permits voided or revoked after issuance) and New York City’s five boroughs (the legacy DOB permit issuance dataset, not DOB NOW). Not nationwide, and not a complete account of all work on a building.
await agent.tool('lookup/place-permits', {
street_address: '7529 N CLARK ST',
city: 'Chicago',
state: 'IL',
issued_from: '2024-01-01',
limit: 50,
});
city: 'New York City', state: 'NY', borough: 'Brooklyn', or city: 'Brooklyn'. street_address is the site street address only, with its number and directional prefix. Matching ignores case and repeated whitespace but does not geocode, expand abbreviations or strip apartment numbers. Use the source’s spelling.
issued_from and issued_to are inclusive YYYY-MM-DD dates; permits without issue dates are excluded when either is present. permit_type matches the full source type, ignoring case. limit is 1–100 (default 50); offset is 0–10000. Results sort newest issue date first, undated last. total counts all matches before pagination. A refresh can change page contents between calls.
Each permit has number, address, district, permit_type, status, filed_date, issued_date, expiration_date, description, declared_value in USD, and contractors. Missing fields are null (contractors: an empty array). Declared value is reported construction cost, never permit fees. NYC publishes no description or declared value. An expiration date does not establish current compliance. Contractors are published business names only.
The result includes source, loaded_at (last successful load or unchanged-source check) and coverage. An empty permits array means no exact recorded match; it does not establish that no work occurred. A no-match call is charged.
Errors
422 outside_coverage, before payment: an unsupported jurisdiction, an unspecified NYC borough, or conflicting city and borough inputs.400 invalid_request: invalid dates or other malformed input.503 data_unavailable: missing data, an incomplete refresh, or data not checked in 72 hours. A read or persistence failure aborts without charging. A keyed replay returns the saved answer even if the data later becomes unavailable.503 payment_processing_unavailable: the facilitator did not answer; nothing was taken. Resend the same request andIdempotency-KeyafterRetry-After.402 payment_verification_failed: the facilitator rejected the payment; the body namesreason,payment_attempt_idandstage. Sign a new payment.