API

Introduction

Allows a user to access data featured in the BREATHE air alliance dashboard.

 

Overview

TCEQ Data Sources Description Parameters Filter Column Endpoint
Auto-GC readings Retrieves auto-gc readings from previous day length https://air-alliance-api.herokuapp.com/api/auto_gc
Complaints Retrieves TCEQ complaints lengthfiltercolgt lt complaint_received_date https://air-alliance-api.herokuapp.com/api/air_complaints
Complaint Investigations Retrieves TCEQ complaint investigations length https://air-alliance-api.herokuapp.com/api/air_complaint_investigations
Emissions Retrieves TCEQ emissions lengthfiltercolgt lt event_began_date https://air-alliance-api.herokuapp.com/api/air_emissions
Air Monitors Retrieves TCEQ (Houston) air monitors length https://air-alliance-api.herokuapp.com/api/air_monitors
Air Monitor Parameters Retrieves TCEQ (Houston) air monitor parameters length https://air-alliance-api.herokuapp.com/api/air_monitors_params
Enforcement Reports Retrieves TCEQ enforcement reports lengthfiltercolgt lt action_date https://air-alliance-api.herokuapp.com/api/air_enforcement_reports
Air Permits Retrieves TCEQ air permits lengthfiltercolgt lt tceq_received_date https://air-alliance-api.herokuapp.com/api/air_permits

Usage

Add /length to query the number of rows in a table. This can be helpful for paging through the response.

Query number of pages with: page

Date filtering requires two query parameters: filtercol lt gt

The filtercol will be the column name of the date filter, and the lt and gt parameters will be the date to filter by in epoch time.

Sample Queries

https://air-alliance-api.herokuapp.com/api/air_permits/length

https://air-alliance-api.herokuapp.com/api/air_permits?page=4

https://air-alliance-api.herokuapp.com/api/air_permits?filtercol=tceq_received_date&gt=1520726400&lt=1523318400