Indax

Recipes

Call sequences for common tasks.

1. Chemical Sites in Louisiana with an active Project

Projects cannot be filtered by state or NAICS, so start from Sites and follow located_at.

# 1. Chemical Sites in Louisiana; repeat with next_cursor until null
GET /v1/search?naics=325&state=LA&label=site&limit=100
 
# 2. Each Site's Projects (skip Sites where edge_counts["located_at:in"] is 0)
GET /v1/sites/site_4716cb782b285d45a11ba85a64289ba0/edges?label=located_at&direction=in
#  -> prj_4f1f55da60225abc99bec70e0320e218, prj_fc606a24d8b25cad937c7b72f9babcf7
 
# 3. Keep Projects that are planned, permitting, permitted or under construction
GET /v1/projects/prj_fc606a24d8b25cad937c7b72f9babcf7
#  -> status "permitted", last_event_date "2026-02-24", undertaken_by FIRESTONE POLYMERS, LLC
 
# 4. The events behind the Project
GET /v1/projects/prj_fc606a24d8b25cad937c7b72f9babcf7/timeline

2. A permit number to the Site's violations

# 1. Permit number -> Permit, then its Site
GET /v1/resolve?kind=permit&key=US-AL-01:210-0005
GET /v1/permits/pmt_a3faf0a577d054b48056180d19adb9fe
 
# 2. Check the Site: name, address, NAICS, operating status
GET /v1/sites/site_4ed23885f4755785acba58fa0ab0a4db
 
# 3. Violations and enforcement since 2020, newest first
GET /v1/sites/site_4ed23885f4755785acba58fa0ab0a4db/timeline?since=2020-01-01&event_type=violation&event_type=enforcement&limit=50
#  -> 2025-06-12 violation, 2024-09-09 enforcement ($200,000)

3. Who operates a Site

GET /v1/sites/site_4716cb782b285d45a11ba85a64289ba0/edges?label=operates&label=owns
#  -> operates FIRESTONE POLYMERS, LLC  confidence 1.0  hard_key
#     owns     FIRESTONE POLYMERS, LLC  confidence 1.0  hard_key

A hard_key link at 1.0 is the strongest answer the API gives. Check a splink or geo link, or several owners with near-identical names, before you rely on it.

On this page