Use Cases
Real-world scenarios for using Parley's environmental compliance API.
PropTech: Environmental Due Diligence
Real estate developers, property acquisition teams, commercial RE platforms
Before acquiring a commercial property, check what EPA-regulated facilities are nearby and whether they have active violations or high compliance risk scores. Parley's geospatial search answers 'what's near this property?' in a single API call.
import requests# Find facilities with active violations within 2 miles of a propertyresp = requests.get( "https://api.parley.dev/v1/facilities", params={ "lat": 29.7604, "lng": -95.3698, "radius": 2, "active_violations": "true", "sort": "score", "order": "desc", }, headers={"X-API-Key": "prl_YOUR_KEY_HERE"},)nearby = resp.json()["data"]for facility in nearby: print(f"{facility['name']} - Score: {facility['compliance_score']}")ESG & Compliance: Portfolio Risk Dashboards
ESG analysts, portfolio risk managers, compliance officers
Monitor the environmental compliance posture of facilities across a portfolio. Use compliance scores to flag high-risk assets and set up webhook alerts so your dashboard updates automatically when a new violation is recorded.
// Fetch compliance profiles for a list of facilitiesconst facilityIds = [ "f47ac10b-58cc-4372-a567-0e02b2c3d479", "a2b3c4d5-6789-0abc-def1-234567890abc",];const results = await Promise.all( facilityIds.map((id) => fetch(`https://api.parley.dev/v1/facilities/${id}`, { headers: { "X-API-Key": process.env.PARLEY_API_KEY }, }).then((r) => r.json()) ));// Flag facilities with elevated riskconst highRisk = results .map((r) => r.data) .filter((f) => f.compliance_score > 60);console.log(`${highRisk.length} facilities need attention`);Insurance: Environmental Liability Underwriting
Environmental liability underwriters, insurance analytics teams
Assess environmental risk for a facility before issuing coverage. Pull the full compliance profile including violation history, penalty amounts, and risk score to inform underwriting decisions.
# Facility detail with compliance historycurl "https://api.parley.dev/v1/facilities/f47ac10b-58cc-4372-a567-0e02b2c3d479" \ -H "X-API-Key: prl_YOUR_KEY_HERE"# Recent violations for the same facilitycurl "https://api.parley.dev/v1/facilities/f47ac10b-.../violations?severity=HIGH&since=2024-01-01" \ -H "X-API-Key: prl_YOUR_KEY_HERE"# Penalty historycurl "https://api.parley.dev/v1/facilities/f47ac10b-.../penalties?min_amount=10000" \ -H "X-API-Key: prl_YOUR_KEY_HERE"Legal: Enforcement Case Monitoring
Environmental attorneys, litigation support teams, regulatory affairs
Track enforcement actions against specific facilities or search for new cases by program and date range. Set up webhooks to get real-time alerts when enforcement activity occurs at facilities your clients operate or are acquiring.
import requests# Search recent civil enforcement cases for a facilityresp = requests.get( "https://api.parley.dev/v1/cases", params={ "facility_id": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "since": "2024-01-01", "case_type": "CIVIL", }, headers={"X-API-Key": "prl_YOUR_KEY_HERE"},)cases = resp.json()["data"]for case in cases: print(f"{case['case_number']}: {case['case_name']}") print(f" Status: {case['status']}") print(f" Filed: {case['filing_date']}")