@datafire/epa_gov_cwa
v6.0.0
Published
DataFire integration for U.S. EPA Enforcement and Compliance History Online (ECHO) - Clean Water Act (CWA) Rest Services
Downloads
2
Readme
@datafire/epa_gov_cwa
Client library for U.S. EPA Enforcement and Compliance History Online (ECHO) - Clean Water Act (CWA) Rest Services
Installation and Usage
npm install --save @datafire/epa_gov_cwa
let epa_gov_cwa = require('@datafire/epa_gov_cwa').create();
.then(data => {
console.log(data);
});
Description
Enforcement and Compliance History Online (ECHO) is a tool developed and maintained by EPA's Office of Enforcement and Compliance Assurance for public use. ECHO provides integrated compliance and enforcement information for over 1 million regulated facilities nationwide.
CWA Rest Services provides multiple service endpoints, each with specific capabilities, to search and retrieve data on facilities regulated under the Clean Water Act (CWA) and managed under the National Pollutant Discharge Elimination System (NPDES) program. The returned results reflect data drawn from EPA's ICIS-NPDES database.
The get_facilities, get_map, get_qid, and get_download end points are meant to be used together, while the enhanced get_facility_info end point is self contained.
The get_facility_info end point returns either an array of state, county or zip clusters with summary statistics per cluster or an array of facilities.
The recommended use scenario for get_facilities, get_qid, get_map, and get_downoad is:
1) Use get_facilities to validate passed query parameters, obtain summary statistics and to obtain a query_id (QID). QIDs are time sensitive and will be valid for approximately 30 minutes.
2) Use get_qid, with the returned QID, to paginate through arrays of facility results.
3) Use get_map, with the returned QID, to zoom in/out and pan on the clustered and individual facility coordinates that meet the QID query criteria.
4) Use get_download, with the returned QID, to generate a Comma Separated Value (CSV) file of facility information that meets the QID query criteria.
Use the qcolumns parameter to customize your search results. Use the Metadata service endpoint for a list of available output objects, their Column Ids, and their definitions to help you build your customized output.
Additional ECHO Resources: Web Services, About ECHO's Data, Data Downloads
Actions
cwa_rest_services.get_download.get
Based on the QID obtained from a get_facilities or get_facility_info query, return a comma separated value (CSV) file of the facilities found.
epa_gov_cwa.cwa_rest_services.get_download.get({
"qid": ""
}, context)
Input
- input
object
- output
string
: Output Format Flag. Enter one of the following keywords: - qid required
string
: Query ID Selector. Enter the QueryID number from a previously run query. - qcolumns
string
: Used to customize service output. A list of comma-separated column IDs of output objects that will be returned in the service query object or download. Use the metadata service endpoint for a complete list of Ids and definitions. - p_pretty_print
number
: Optional flag to request GeoJSON formatted results to be pretty printed. Only provide a numeric value when the output needs to be human readable as pretty printing has a performance cost.
- output
Output
- output
file
cwa_rest_services.get_download.post
Based on the QID obtained from a get_facilities or get_facility_info query, return a comma separated value (CSV) file of the facilities found.
epa_gov_cwa.cwa_rest_services.get_download.post({
"qid": ""
}, context)
Input
- input
object
- output
string
: Output Format Flag. Enter one of the following keywords: - qid required
string
: Query ID Selector. Enter the QueryID number from a previously run query. - qcolumns
string
: Used to customize service output. A list of comma-separated column IDs of output objects that will be returned in the service query object or download. Use the metadata service endpoint for a complete list of Ids and definitions. - p_pretty_print
number
: Optional flag to request GeoJSON formatted results to be pretty printed. Only provide a numeric value when the output needs to be human readable as pretty printing has a performance cost.
- output
Output
- output
file
cwa_rest_services.get_facilities.get
Validates query search parameters and returns query identifier. Use the responseset parameter to set the page size
epa_gov_cwa.cwa_rest_services.get_facilities.get({}, context)
Input
- input
object
- output
string
(values: JSONP, JSON, XML): Output Format Flag. Enter one of the following keywords: - p_fn
string
: Facility Name Filter. Enter one or more case-insensitive facility names to filter results. Provide multiple values as a comma-delimited list. See p_fntype for additional modifiers. - p_sa
string
: Facility street address. Enter a complete or partial street address. - p_sa1
string
: Facility street address. Enter a complete or partial street address. Note that p_sa1 is culmulative with p_sa. - p_ct
string
: Facility City Filter. Enter a single case-insensitive city name to filter results. - p_co
string
: Facility County Filter. Provide a single county name in combination with a state value provided via p_st. - p_fips
string
: FIPS Code Filter. Enter a single 5-character Federal Information Processing Standards (FIPS) state + county value to restrict results. E.g. to limit results to Kenosha County, Wisconsin, use 55059. - p_st
string
: Facility State and State-Equivalent Filter. Provide one or more USPS postal abbreviations for states and state-equivalents to filter results. Provide multiple values as a comma-delimited list. - p_zip
string
: 5-Digit ZIP Code Filter. Provide one or more 5-digit postal zip codes to filter results. May contain multiple comma-separated values. - p_frs
string
: Facility Registry Service ID Filter. Enter a single 12-digit FRS identifier to filter results. - p_reg
string
(values: 01, 02, 03, 04, 05, 06, 07, 08, 09, 10): EPA Region Filter. Provide a single value of 01 thru 10 to restrict results to a single EPA region. - p_sic
string
: Standard Industrial Classification (SIC) Code Filter. Enter a single 4-digit SIC Code to filter results. If more complex filtering is required, use p_sic2 and p_sic4. - p_ncs
string
: North American Industry Classification System Filter. Enter two to six digits to filter results to facilities having matching NAICS codes. Digits less than six will match to all codes beginning with the provided values. - p_pen
string
: Last Penality Date Qualifier Filter. Enter one of the following: - p_c1lat
number
: In decimal degrees. Latitude of 1st corner of box that bounds the resulting facilities. The latitude and longitude of both corners of the bounding box must be provided. - p_c1lon
number
: In decimal degrees. Longitude of 1st corner of box that bounds the resulting facilities. The latitude and longitude of both corners of the bounding box must be provided. - p_c2lat
number
: In decimal degrees. Latitude of 2nd corner of box that bounds the resulting facilities. The latitude and longitude of both corners of the bounding box must be provided. - p_c2lon
number
: In decimal degrees. Longitude of 2nd corner of box that bounds the resulting facilities. The latitude and longitude of both corners of the bounding box must be provided. - p_usmex
string
(values: Y, N): US-Mexico Border Flag. Enter Y/N to restrict searches to facilities located within 100KM of the border. - p_sic2
string
: Standard Industrial Classification (SIC) Code Filter Alternate 2. Enter a wild-card search against SIC codes. A final wild-card is always present allowing "22" to match all SIC codes beginning with 22. Use the "%" character within strings to match any SIC values with the pattern. For example, "2%21" matches 2021, 2121, 2221, etc. - p_sic4
string
: Standard Industrial Classification (SIC) Code Filter Alternate 3. Enter the first 2, 3 or 4 SIC code digits to filter results to facilities having those code prefixes. As this alternative does not utilize an index, p_sic2 will generally be quicker. - p_fa
string
: Federal Agency. 1 character or 5-character values; may contain multiple comma-separated values. ALL will retrieve all facilities where the federal agency code is not null. Use the Federal Agencies lookup service to obtain a list of values. - p_ff
string
(values: Y): Federal Facility Indicator Flag. Enter Y to restrict searches to federal facilities. - p_act
string
: Active Permits/Facilities Flag. Provide Y or N to filter results to facilities with active permits. A Y will select ICIS NPDES permits with a status of effective, continued, or expired. - p_maj
string
(values: Y, N): Major Facility Flag. Enter Y to restrict results to Major facilities only. - p_mact
string
: CAA Maximum Achievable Control Technology (MACT) Subpart codes (alpha ID between 1 and 7 characters) applicable to the facility. - p_fea
string
(values: W, N): Formal Enforcement Actions [within / not within] specified date range indicator. The date range is determined by parameters p_fead1 and p_fead2 or by parameter p_feay. - p_feay
number
(values: 1, 2, 3, 4, 5): Years (1 to 5) Range. This value is used to create a date range for Formal Enforcement Actions (FEA). Used along with p_fea (which indicates whether to look within or outside of the date range) to find FEAs within (or not within) the number of years specified. - p_feaa
string
(values: A, E, S): Agency associated with Formal Enforcement Actions: - p_iea
string
(values: W, N): Informal Enforcement Actions [within / not within] specified date range. The date range is determined by parameters p_iead1 and p_iead2 or by parameter p_ieay. - p_ieay
number
(values: 1, 2, 3, 4, 5): Years (1 to 5) Range. This value is used to create a date range for Informal Enforcement Actions (IEA). Used along with p_iea (which indicates whether to look within or outside of the date range) to find IEAs within (or not within) the number of years specified. - p_ieaa
string
(values: E, S): Agency associated with Informal Enforcement Actions. If left blank, both agencies are included. - p_qiv
string
(values: 0, GT1, GT2, GT4, GT8, 12): Quarters in Noncompliance Limiter. Enter a coded value to limit results to facilities with given quarter of noncompliance. - p_iv
string
: Facility has a violation status of 'In Viol' during any of the selected quarters. - p_impw
string
(values: Y, N): Discharging into Impaired Waters Flag. Enter Y to limit results to facilities with discharge to waterbodies listed as impaired in the ATTAINS database. - p_imp_cau_grp
string
(values: ALGAL GROWTH, AMMONIA, BIOTOXINS, CAUSE UNKNOWN, CAUSE UNKNOWN - FISH KILLS, CAUSE UNKNOWN - IMPAIRED BIOTA, CHLORINE, DIOXINS, FISH CONSUMPTION ADVISORY, FLOW ALTERATION(S), HABITAT ALTERATIONS, MERCURY, METALS (OTHER THAN MERCURY), NOXIOUS AQUATIC PLANTS, NUISANCE EXOTIC SPECIES, NUISANCE NATIVE SPECIES, NUTRIENTS, OIL AND GREASE, ORGANIC ENRICHMENT/OXYGEN DEPLETION, OTHER CAUSE, PATHOGENS, PESTICIDES, PH/ACIDITY/CAUSTIC CONDITIONS, POLYCHLORINATED BIPHENYLS (PCBS), RADIATION, SALINITY/TOTAL DISSOLVED SOLIDS/CHLORIDES/SULFATES, SEDIMENT, TASTE, COLOR AND ODOR, TEMPERATURE, TOTAL TOXICS, TOXIC INORGANICS, TOXIC ORGANICS, TRASH, TURBIDITY): Facility is discharging a pollutant group causing a waterbody to be impaired. Enter 1 through 34 (the internal number of the pollutant group); or enter a partial name such as Dioxin,Temp,tUrBidity. - p_imp_pol
string
(values: Y, N): Facility is discharging pollutants that are potentially contributing to the impairment of local waterbodies according to the ATTAINS database. - p_trep
string
(values: CURR, NOTCURR): Current Toxics Release Inventory (TRI) Reporter Limiter. Enter one of the following codes to limit results. - p_pm
string
(values: NONE, GT5, GT10, GT25, GT50, GT75): Percent Minority Population Limiter. Enter a value to restrict results to facilities with a given percentage of minority population within 3-mile radius. - p_pd
string
(values: NONE, GT100, GT500, GT1000, GT5000, GT10000, GT20000): Population Density Limiter (per sq mile). Enter a value to limit results to facilities located in area of a given population density. - p_ico
string
(values: Y, N): Indian Country Flag. Enter a "Y" or "N" to restrict searches to facilities inside or outside Indian Country. - p_huc
string
: 2-, 4-, 6-, or 8-character watershed code. May contain multiple comma-separated values. - p_pid
string
: Nine-digit permit IDs. May contain up to 2000 comma-separated values. - p_med
string
(values: A, M, R, S, ALL): Filter Results by Media. - p_ysl
string
(values: W, N, NV): Last Facility Inspection [within / not within] Specified Date Range Indicator. The date range is determined by parameters p_idt1 and p_idt2 or by parameter p_ysly. - p_ysly
number
(values: 1, 2, 3, 4, 5): Number of years (1 to 5) since last facility inspection. A value of 1 means that it has been inspected within the year. - p_ysla
string
(values: E, S, A): Facility Last Inspection Code Filter. If left blank, both agencies are included. Enter a value to limit results: - p_qs
string
: Quick Search. Allows entry for city, state, and/or zip code. - p_sfs
string
: Single Facility Search Filter. Provide a facility name or program system identifier to limit results. For the all data search, the FRS registry identifier is also searched. - p_tribeid
number
: Numeric code for tribe (or list of tribes). - p_tribename
string
: Tribe Name Filter. Enter a single tribe name to filter results. - p_tribedist
number
: Proximity to tribal land limiter. Enter an amount of mile between 0 and 25 to filter results. This parameter is only evaluated if p_tribeid is populated. - p_pstat
string
: Permit Status Filter. Enter one or more of the following codes. Provide multiple values as a comma-delimited list. - p_ptype
string
: Permit Type Filter. Enter one or more code values to filter results. Provide multiple values as a comma-delimited list. - p_pcomp
string
: Permit Component Code Filter. Enter one or more codes to filter results. Provide multiple values as a comma-delimited list. - p_plimits
string
(values: Y, N): Permit Limits Present Flag. Enter Y to limit results to facilities have present permit limits. - p_pcss
string
(values: ALL, GE1, GE10, GE50): Combined Sewer Systems Outflows Limiter. Enter one of the following to limit results to facilities having the given count of CSS outflows. - p_pexp
string
(values: EXP, EXPLE1YR, EXPGT1YR): Permit Expired or Administratively Continued Limiter. Enter one of the following values to filter results. - p_owop
string
(values: FEDERAL, POTW, NON-POTW): Owner/Operator code filter. Enter one of the following values to restrict results. - p_ipfti
string
- p_agoo
string
(values: AND, OR): Indicates whether to AND or OR the Owner/Operator parameter (p_owop) and the federal agency code (p_fa) parameters. - p_idt1
string
: Beginning of date range of most recent facility inspection. - p_idt2
string
: End of date range of most recent facility inspection. - p_pityp
string
: Inspection Type Code. See ICIS Compliance Monitor Types lookup serivce for a list of available codes and descriptions. - p_pfead1
string
: Formal Enforcement Action Date Range Start. Enter a date in MM/DD/YYYY format to set the start of the range for filtering by recent Formal Enforcement Action (FEA) taken against the facility within the last five years. - p_pfead2
string
: Formal Enforcement Action Date Range End. Enter a date in MM/DD/YYYY format to set the end of the date range for filtering by recent Formal Enforcement Action (FEA) taken against the facility within the last five years. - p_pfeat
string
: Formal Enforcement Action (FEA) Code Filter. Enter one or more three-letter FEA codes to restrict results to facilities with these attributes. Use p_fead1 and p_fead2 parameters to further restrict this filter by entering a date range. Provide multiple codes as a comma-delimited list. - p_pccs
string
: Current Compliance Status: - p_pexcd
string
(values: 0, GE0, GE10, GE50, GE100): 3-Year Effluent Exceedances Limiter. Enter a value to restrict results to facilities with the given amount of exceedances in the past 3 years. - p_psncq
string
(values: GT1, GE1, GT2, GE2, GT4, GE4, GT8, GE8, GT12, GE12): Quarters in Significant Noncompliance Limiter. Enter a coded value to limit results to facilities with given quarter of significant noncompliance. - p_pctrack
string
(values: Off, Partial, On): Compliance Tracking Limiter. Provide a keyword to indicate the extent to which data is being entered and effluent exceedances are being identified. - p_dwd
string
(values: 0, GT0, GT1000, GT5000, GT10000, GT20000, GT50000): Direct Water Discharges. Pounds of toxic chemicals released directly to surface water as reported to the Toxics Release Inventory. - p_pt
string
(values: 0, GT0, GT1000, GT5000, GT10000, GT20000, GT50000): POTW Transfers. Pounds of toxic chemicals transferred to a Publicly Operated Treatment Works (POTW) as reported to the Toxics Release Inventory. - p_pdwdist
string
(values: N, LT1, LT2, LT5, LT10, LT15): Distance (in miles) to downstream drinking water intake. - p_pswdpc
string
: Pollutant Category Code: Values: WTR for Water, AIR for Air - p_pswdmp
string
(values: 1, 2, 3, 4, 5): Used to determine limit begin and end dates for surface water discharges. Number represents years from current date. - p_pswpol
string
: For CWA, pollutant names for surface water discharges. for Drinking Water, SDWIS Violation contaminant codes for unaddressed violations that have occurred in the last 3 years. May contain multiple comma-separated values. - p_pswcas
string
: CAS numbers for surface water discharges. May contain multiple comma-separated values. - p_pswparam
string
: Parameter codes for surface water discharges. May contain multiple comma-separated values. - p_pswvio
string
(values: Y, N): Used in conjuction with parameters p_pswpol and p_pswparam, indicates whether search should only include pollutants with violations. - p_wbd
string
: 2-, 4-, 6-, 8-, 10-, or 12-character watershed (WBD from the USGS Watershed Boundary Dataset). May contain multiple comma-separated values. Uses the FRS Best Pick Coordinate to obtain the WBD12 Huc value. - p_radwbd
string
: 2-, 4-, 6-, 8-, 10-, or 12 character watershed (WBD from the USGS Watershed Boundary Dataset). May contain multiple comma-separated values. Will search against WBD values otained by "reach indexing" NPDES permits against the medium resolution National Hydrography Dataset. - p_frswbd
string
: Works exactly the same as the p_wbd parameter. 2-, 4-, 6-, 8-, 10-, or 12-character watershed (WBD from the USGS Watershed Boundary Dataset). May contain multiple comma-separated values. Uses the FRS Best Pick Coordinate to obtain the WBD12 Huc value. - p_fntype
string
(values: ALL, CONTAINS, EXACT, BEGINS): Controls type of text search performed on facility name with parameter p_fn. - p_pidall
string
(values: Y, N): Controls whether search is restricted to existing system. Y means the search will match the p_pid parameter against all associated permits (AIR, RCRA, SDWIS, etc). - p_months_last_dmr
number
: The number of months since the last Discharge Monitoring Report has been submitted. - p_last_dmr_within
string
(values: W, N): W value returns facilities that have submitted DMRs within the number of months specified by p_months_last_dmr. An N value returns facilities that have not submitted a DMR within the specified number of months. - p_indsw
string
(values: Y, N): Industrial Stormwater Permit Flag. Enter a Y or N to filter results by this type of permit. - p_msgp_ptype
string
(values: NOI, NOE): Multi-Sector General Purpose Permit Type. Enter a value to filter results by MSGP Permit Type. - p_mon_type
string
(values: BENCHG2, BENCH, ELG): For use with the Industrial Stormwater search only. Valid values are BENCHGS fro Benchmark (Alert Limit) G2 Ore, BENCH for Benchmark (Alert Limit), and ELG fro Effluent Limitation Guidelines(ELG)(Effluent Limit). - p_iagency
string
: Issuing Agency Limiter. Enter a single value to filter results by the issuing agency, e.g. "State" or "EPA". - p_permitting_agency
string
- p_isws
string
: Multi-Sector General Purpose Permit Subsector Individual Identifier. Enter a value to filter results. - p_iswss
string
: Multi-Sector General Purpose Permit Subsector Group Code. Enter a value to filter results. - p_iswssID
string
: Multi-Sector General Purpose Permit Sector Code. Enter a value to filter results. - p_ds1
string
: Submitted Date Filter Start. To filter by the date of submission, enter a start date here and an end date in the p_ds2 parameter. Both dates are required for filtering. - p_ds2
string
: Submitted Date Filter End. To filter by the date of submission, enter an end date here and a start date in the p_ds1 parameter. Both dates are required for filtering. - p_da1
string
: Active Date Filter Start. To filter by the active date, enter a start date here and an end date in the p_da2 parameter. Both dates are required for filtering. - p_da2
string
: Active Date Filter End. To filter by the active date, enter an end date here and a start date in the p_da1 parameter. Both dates are required for filtering. - p_MS4
string
(values: Y, N): Municipal Separate Storm Water Sewer (MS4) Permit Flag. Enter a Y or N to filter results by this type of permit. - p_ooFN
string
: Owner/Operator Name. Enter the owner/operator name of the facility. - p_ooFNtype
string
(values: ALL, EXACT, BEGINS, CONTAINS): Owner/Operator Name Multiple Selection Evaluator. - p_ooSA
string
: Owner/Operator Address. Enter the address of the owner/operator of the facility. - p_ooSA1
string
: Owner/Operator Address Line 2. Enter the line 2 address of the owner/operator of the facility. - p_ooCt
string
: Owner/Operator City. Enter the city where the owner/operator of the facility is located. - p_ooSt
string
: Owner/Operator State. Enter the standardized postal state code where the owner/operator of the facility is located. - p_ooZip
string
: Owner/Operator Zip Code. Enter the postal zip code where the owner/operator of the facility is located. - p_fac_ico
string
(values: Y, N): FRS tribal land code flag. Enter "Y" or "N" to include or exclude facilities based on FRS tribal land code. - p_icoo
string
: Indian country search and/or flag. Enter "Y" to set indian country search conditions to return any results found using p_ico, p_fac_ico or p_fac_icoo. Otherwise only results matching all provided p_ico, p_fac_ico or p_fac_icoo conditions will be returned. - p_fac_icos
string
: FRS tribal land spatial flag. Enter "Y" or "N" to include or exclude facilities based on FRS tribal land spatial flag. - p_ejscreen
string
: Enter "Y" to limit facilities to Census block groups where one of more Environmental Justice indexes above 80th percentile. - p_alrexceed
number
: Alert Limits Exceedences Limiter. Enter a numeric value to restrict results to facilities having the given amount or more of alert limits exceedances. - p_limit_addr
string
(values: Y, N): Limit Address Search Flag. Enter Y to restrict facility searches to native data source only. - p_lat
number
: Latitude location in decimal degrees. - p_long
number
: Longitude location in decimal degrees. - p_radius
number
: Spatial Search Radius. Enter a radius up to 100 miles in which to spatially search for facilities. - p_ejscreen_over80cnt
string
(values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11): The number of Environmenmt Justice Indicators above the 80th percentile. Valid values are 1 through 11. - p_bio_flag
string
: A Y value will select all biosolid-related permits. - p_bio_fac_type
string
: The code indicating the reporting obligation reason: - p_bio_trtmnt_procs
string
: The biosolids or sewage sludge treatment process or processes at the facility: - p_bio_analy_method_catgry
string
: The unique code for the category of the analytic methods used by the facility to analyze regulated parameters (including enteric viruses, fecal coliforms, helminth ova, and Salmonella sp.) at the facility: - p_bio_total_volume_amt
string
: Total annual amount (in dry metric tons) of biosolids or sewage sludge generated at the facility. - p_bio_mgmt_prctce_type
string
: The unique code that identifies the type of biosolids or sewage sludge management practice (e.g., land application, surface disposal, incineration) used by the facility. The facility will separately report the management practice for each biosolids or sewage sludge form and pathogen class. This data element will also identify the management practices used by surface disposal site owners/operators (see 40 CFR 503.24): - p_bio_mgmt_prctce_stype
string
: This is the code indicating additional detail about the type of Management Practice used for a volume of Biosolids or Sewage Sludge: - p_bio_mgmt_prctce_handler
string
: This is the code indicating the type of Biosolids or Sewage Sludge handlers/preparers. - p_bio_mgmt_container
string
: The code that identifies the nature of each biosolids and sewage sludge material generated by the facility in terms of whether the material is a biosolid or sewage sludge and whether the material is ultimately conveyed off-site in bulk or in bags. The facility separately reports the form for each biosolids or sewage sludge management practice or practices used by the facility and pathogen class: - p_bio_mgmt_pathogen
string
: This code identifies the pathogen class [e.g., Class A, Class B, Not Applicable (Incineration)] for biosolids or sewage sludge generated by the facility. The facility will separately report the pathogen class for each biosolids or sewage sludge management practice used by the facility and by each biosolids or sewage sludge form. It also is used to filter applicable Pathogen Reduction and Vector Attraction Reduction Options as well as Land Application Management Practice Deficiencies. Only reqired for some of the mgmt. practice types: - p_bio_mgmt_pathred
string
: This is the description of the option used by the facility to control pathogen for a Biosolids Management Practice: - p_bio_mgmt_vector
string
: The unique code that identifies the option used by the facility for vector attraction reduction. See a listing of these vector attraction reduction options at 40 CFR 503.33(b)(1) through (11). The facility will separately report the vector attraction reduction options for each biosolids or sewage sludge management practice used by the facility and by each biosolids or sewage sludge form as well as by each biosolids or sewage sludge pathogen class: - p_bio_mgmt_def_category
string
: This is the code indicating the type of NPDES special regulatory program deficiency: - p_bio_mgmt_deficiencies
number
: The number of times noncompliance was reported by the facility in the last 3 years. The results returned will include facilities whose number of reported noncompliance events is greater than or equal to the number entered. - p_bio_vio_code
string
: The Biosolids Single Event Violation Code. Enter one or mode codes. - p_bio_current_vio
string
(values: Y, N): Indicator of whether the facility is currently in violation for biosolids under the Clean Water Act, in the 12th or 13th quarter: - p_bio_qtrs_in_vio
number
: The number of quarters, in the last three years, where the facility was in violation for a biosolids violation type. The results returned will include facilities whose number of quarters with violations is greater than or equal to the number entered. - p_bio_rpt_year
string
: The last year that the permittee submitted an annual Biosolids report. Valid values are NONE and any year greater or equal to 2016. - p_bio_vio_last_year
string
(values: Y, N): Identifies if a biosolids violation has occured in the last year. Valid values are Y and N. - p_msgp_rpt_year
string
: The last year that a MSGP report was submitted for the permit. Valid values are "NONE" and any year Greater or Eqal to 2015. - p_vio_last_year
string
(values: Y, N): Identifies if a permit violation has occured in the last year. Valid values are Y and N. - queryset
number
: Query Limiter. Enter a value to limit the number of records returned for each query. Value cannot exceed 70,000. - responseset
number
: Response Set Limiter. Enter a value to limit the number of records per page. Value cannot exceed 1,000. - tablelist
string
(values: Y, N): Table List Flag. Enter a Y to display the first page of facility results. - maplist
string
(values: Y, N): Map List Flag. Provide a Y to return mappable coordinates representing the full geographic extent of the queryset (all facilities that met the selection criteria). - summarylist
string
(values: Y, N): Summary List Flag. Enter a Y to return a list of summary statistics based on the parameters submitted to the query service. - callback
string
: JSONP Callback. For use with JSONP and GEOJSONP output only. Enter a name of the function in which to wrap the JSON response. - qcolumns
string
: Used to customize service output. A list of comma-separated column IDs of output objects that will be returned in the service query object or download. Use the metadata service endpoint for a complete list of Ids and definitions. - p_e90_count
number
: Number of E90 Exceedances. Identifies water permits with a number of E90 (Effluient Exceedances) >= the value provided for the last number of years provided by the p_e90_years value. - p_e90_years
number
: Number of years for the p_e90_count search. Identified the past number of years to be used for the p_e90_count search. - p_psc
string
: Point Source Category.
- output
Output
- output
object
: Root Object- Results required cwa04
cwa_rest_services.get_facilities.post
Validates query search parameters and returns query identifier. Use the responseset parameter to set the page size
epa_gov_cwa.cwa_rest_services.get_facilities.post({}, context)
Input
- input
object
- output
string
(values: JSONP, JSON, XML): Output Format Flag. Enter one of the following keywords: - p_fn
string
: Facility Name Filter. Enter one or more case-insensitive facility names to filter results. Provide multiple values as a comma-delimited list. See p_fntype for additional modifiers. - p_sa
string
: Facility street address. Enter a complete or partial street address. - p_sa1
string
: Facility street address. Enter a complete or partial street address. Note that p_sa1 is culmulative with p_sa. - p_ct
string
: Facility City Filter. Enter a single case-insensitive city name to filter results. - p_co
string
: Facility County Filter. Provide a single county name in combination with a state value provided via p_st. - p_fips
string
: FIPS Code Filter. Enter a single 5-character Federal Information Processing Standards (FIPS) state + county value to restrict results. E.g. to limit results to Kenosha County, Wisconsin, use 55059. - p_st
string
: Facility State and State-Equivalent Filter. Provide one or more USPS postal abbreviations for states and state-equivalents to filter results. Provide multiple values as a comma-delimited list. - p_zip
string
: 5-Digit ZIP Code Filter. Provide one or more 5-digit postal zip codes to filter results. May contain multiple comma-separated values. - p_frs
string
: Facility Registry Service ID Filter. Enter a single 12-digit FRS identifier to filter results. - p_reg
string
(values: 01, 02, 03, 04, 05, 06, 07, 08, 09, 10): EPA Region Filter. Provide a single value of 01 thru 10 to restrict results to a single EPA region. - p_sic
string
: Standard Industrial Classification (SIC) Code Filter. Enter a single 4-digit SIC Code to filter results. If more complex filtering is required, use p_sic2 and p_sic4. - p_ncs
string
: North American Industry Classification System Filter. Enter two to six digits to filter results to facilities having matching NAICS codes. Digits less than six will match to all codes beginning with the provided values. - p_pen
string
: Last Penality Date Qualifier Filter. Enter one of the following: - p_c1lat
number
: In decimal degrees. Latitude of 1st corner of box that bounds the resulting facilities. The latitude and longitude of both corners of the bounding box must be provided. - p_c1lon
number
: In decimal degrees. Longitude of 1st corner of box that bounds the resulting facilities. The latitude and longitude of both corners of the bounding box must be provided. - p_c2lat
number
: In decimal degrees. Latitude of 2nd corner of box that bounds the resulting facilities. The latitude and longitude of both corners of the bounding box must be provided. - p_c2lon
number
: In decimal degrees. Longitude of 2nd corner of box that bounds the resulting facilities. The latitude and longitude of both corners of the bounding box must be provided. - p_usmex
string
(values: Y, N): US-Mexico Border Flag. Enter Y/N to restrict searches to facilities located within 100KM of the border. - p_sic2
string
: Standard Industrial Classification (SIC) Code Filter Alternate 2. Enter a wild-card search against SIC codes. A final wild-card is always present allowing "22" to match all SIC codes beginning with 22. Use the "%" character within strings to match any SIC values with the pattern. For example, "2%21" matches 2021, 2121, 2221, etc. - p_sic4
string
: Standard Industrial Classification (SIC) Code Filter Alternate 3. Enter the first 2, 3 or 4 SIC code digits to filter results to facilities having those code prefixes. As this alternative does not utilize an index, p_sic2 will generally be quicker. - p_fa
string
: Federal Agency. 1 character or 5-character values; may contain multiple comma-separated values. ALL will retrieve all facilities where the federal agency code is not null. Use the Federal Agencies lookup service to obtain a list of values. - p_ff
string
(values: Y): Federal Facility Indicator Flag. Enter Y to restrict searches to federal facilities. - p_act
string
: Active Permits/Facilities Flag. Provide Y or N to filter results to facilities with active permits. A Y will select ICIS NPDES permits with a status of effective, continued, or expired. - p_maj
string
(values: Y, N): Major Facility Flag. Enter Y to restrict results to Major facilities only. - p_mact
string
: CAA Maximum Achievable Control Technology (MACT) Subpart codes (alpha ID between 1 and 7 characters) applicable to the facility. - p_fea
string
(values: W, N): Formal Enforcement Actions [within / not within] specified date range indicator. The date range is determined by parameters p_fead1 and p_fead2 or by parameter p_feay. - p_feay
number
(values: 1, 2, 3, 4, 5): Years (1 to 5) Range. This value is used to create a date range for Formal Enforcement Actions (FEA). Used along with p_fea (which indicates whether to look within or outside of the date range) to find FEAs within (or not within) the number of years specified. - p_feaa
string
(values: A, E, S): Agency associated with Formal Enforcement Actions: - p_iea
string
(values: W, N): Informal Enforcement Actions [within / not within] specified date range. The date range is determined by parameters p_iead1 and p_iead2 or by parameter p_ieay. - p_ieay
number
(values: 1, 2, 3, 4, 5): Years (1 to 5) Range. This value is used to create a date range for Informal Enforcement Actions (IEA). Used along with p_iea (which indicates whether to look within or outside of the date range) to find IEAs within (or not within) the number of years specified. - p_ieaa
string
(values: E, S): Agency associated with Informal Enforcement Actions. If left blank, both agencies are included. - p_qiv
string
(values: 0, GT1, GT2, GT4, GT8, 12): Quarters in Noncompliance Limiter. Enter a coded value to limit results to facilities with given quarter of noncompliance. - p_iv
string
: Facility has a violation status of 'In Viol' during any of the selected quarters. - p_impw
string
(values: Y, N): Discharging into Impaired Waters Flag. Enter Y to limit results to facilities with discharge to waterbodies listed as impaired in the ATTAINS database. - p_imp_cau_grp
string
(values: ALGAL GROWTH, AMMONIA, BIOTOXINS, CAUSE UNKNOWN, CAUSE UNKNOWN - FISH KILLS, CAUSE UNKNOWN - IMPAIRED BIOTA, CHLORINE, DIOXINS, FISH CONSUMPTION ADVISORY, FLOW ALTERATION(S), HABITAT ALTERATIONS, MERCURY, METALS (OTHER THAN MERCURY), NOXIOUS AQUATIC PLANTS, NUISANCE EXOTIC SPECIES, NUISANCE NATIVE SPECIES, NUTRIENTS, OIL AND GREASE, ORGANIC ENRICHMENT/OXYGEN DEPLETION, OTHER CAUSE, PATHOGENS, PESTICIDES, PH/ACIDITY/CAUSTIC CONDITIONS, POLYCHLORINATED BIPHENYLS (PCBS), RADIATION, SALINITY/TOTAL DISSOLVED SOLIDS/CHLORIDES/SULFATES, SEDIMENT, TASTE, COLOR AND ODOR, TEMPERATURE, TOTAL TOXICS, TOXIC INORGANICS, TOXIC ORGANICS, TRASH, TURBIDITY): Facility is discharging a pollutant group causing a waterbody to be impaired. Enter 1 through 34 (the internal number of the pollutant group); or enter a partial name such as Dioxin,Temp,tUrBidity. - p_imp_pol
string
(values: Y, N): Facility is discharging pollutants that are potentially contributing to the impairment of local waterbodies according to the ATTAINS database. - p_trep
string
(values: CURR, NOTCURR): Current Toxics Release Inventory (TRI) Reporter Limiter. Enter one of the following codes to limit results. - p_pm
string
(values: NONE, GT5, GT10, GT25, GT50, GT75): Percent Minority Population Limiter. Enter a value to restrict results to facilities with a given percentage of minority population within 3-mile radius. - p_pd
string
(values: NONE, GT100, GT500, GT1000, GT5000, GT10000, GT20000): Population Density Limiter (per sq mile). Enter a value to limit results to facilities located in area of a given population density. - p_ico
string
(values: Y, N): Indian Country Flag. Enter a "Y" or "N" to restrict searches to facilities inside or outside Indian Country. - p_huc
string
: 2-, 4-, 6-, or 8-character watershed code. May contain multiple comma-separated values. - p_pid
string
: Nine-digit permit IDs. May contain up to 2000 comma-separated values. - p_med
string
(values: A, M, R, S, ALL): Filter Results by Media. - p_ysl
string
(values: W, N, NV): Last Facility Inspection [within / not within] Specified Date Range Indicator. The date range is determined by parameters p_idt1 and p_idt2 or by parameter p_ysly. - p_ysly
number
(values: 1, 2, 3, 4, 5): Number of years (1 to 5) since last facility inspection. A value of 1 means that it has been inspected within the year. - p_ysla
string
(values: E, S, A): Facility Last Inspection Code Filter. If left blank, both agencies are included. Enter a value to limit results: - p_qs
string
: Quick Search. Allows entry for city, state, and/or zip code. - p_sfs
string
: Single Facility Search Filter. Provide a facility name or program system identifier to limit results. For the all data search, the FRS registry identifier is also searched. - p_tribeid
number
: Numeric code for tribe (or list of tribes). - p_tribename
string
: Tribe Name Filter. Enter a single tribe name to filter results. - p_tribedist
number
: Proximity to tribal land limiter. Enter an amount of mile between 0 and 25 to filter results. This parameter is only evaluated if p_tribeid is populated. - p_pstat
string
: Permit Status Filter. Enter one or more of the following codes. Provide multiple values as a comma-delimited list. - p_ptype
string
: Permit Type Filter. Enter one or more code values to filter results. Provide multiple values as a comma-delimited list. - p_pcomp
string
: Permit Component Code Filter. Enter one or more codes to filter results. Provide multiple values as a comma-delimited list. - p_plimits
string
(values: Y, N): Permit Limits Present Flag. Enter Y to limit results to facilities have present permit limits. - p_pcss
string
(values: ALL, GE1, GE10, GE50): Combined Sewer Systems Outflows Limiter. Enter one of the following to limit results to facilities having the given count of CSS outflows. - p_pexp
string
(values: EXP, EXPLE1YR, EXPGT1YR): Permit Expired or Administratively Continued Limiter. Enter one of the following values to filter results. - p_owop
string
(values: FEDERAL, POTW, NON-POTW): Owner/Operator code filter. Enter one of the following values to restrict results. - p_ipfti
string
- p_agoo
string
(values: AND, OR): Indicates whether to AND or OR the Owner/Operator parameter (p_owop) and the federal agency code (p_fa) parameters. - p_idt1
string
: Beginning of date range of most recent facility inspection. - p_idt2
string
: End of date range of most recent facility inspection. - p_pityp
string
: Inspection Type Code. See ICIS Compliance Monitor Types lookup serivce for a list of available codes and descriptions. - p_pfead1
string
: Formal Enforcement Action Date Range Start. Enter a date in MM/DD/YYYY format to set the start of the range for filtering by recent Formal Enforcement Action (FEA) taken against the facility within the last five years. - p_pfead2
string
: Formal Enforcement Action Date Range End. Enter a date in MM/DD/YYYY format to set the end of the date range for filtering by recent Formal Enforcement Action (FEA) taken against the facility within the last five years. - p_pfeat
string
: Formal Enforcement Action (FEA) Code Filter. Enter one or more three-letter FEA codes to restrict results to facilities with these attributes. Use p_fead1 and p_fead2 parameters to further restrict this filter by entering a date range. Provide multiple codes as a comma-delimited list. - p_pccs
string
: Current Compliance Status: - p_pexcd
string
(values: 0, GE0, GE10, GE50, GE100): 3-Year Effluent Exceedances Limiter. Enter a value to restrict results to facilities with the given amount of exceedances in the past 3 years. - p_psncq
string
(values: GT1, GE1, GT2, GE2, GT4, GE4, GT8, GE8, GT12, GE12): Quarters in Significant Noncompliance Limiter. Enter a coded value to limit results to facilities with given quarter of significant noncompliance. - p_pctrack
string
(values: Off, Partial, On): Compliance Tracking Limiter. Provide a keyword to indicate the extent to which data is being entered and effluent exceedances are being identified. - p_dwd
string
(values: 0, GT0, GT1000, GT5000, GT10000, GT20000, GT50000): Direct Water Discharges. Pounds of toxic chemicals released directly to surface water as reported to the Toxics Release Inventory. - p_pt
string
(values: 0, GT0, GT1000, GT5000, GT10000, GT20000, GT50000): POTW Transfers. Pounds of toxic chemicals transferred to a Publicly Operated Treatment Works (POTW) as reported to the Toxics Release Inventory. - p_pdwdist
string
(values: N, LT1, LT2, LT5, LT10, LT15): Distance (in miles) to downstream drinking water intake. - p_pswdpc
string
: Pollutant Category Code: Values: WTR for Water, AIR for Air - p_pswdmp
string
(values: 1, 2, 3, 4, 5): Used to determine limit begin and end dates for surface water discharges. Number represents years from current date. - p_pswpol
string
: For CWA, pollutant names for surface water discharges. for Drinking Water, SDWIS Violation contaminant codes for unaddressed violations that have occurred in the last 3 years. May contain multiple comma-separated values. - p_pswcas
string
: CAS numbers for surface water discharges. May contain multiple comma-separated values. - p_pswparam
string
: Parameter codes for surface water discharges. May contain multiple comma-separated values. - p_pswvio
string
(values: Y, N): Used in conjuction with parameters p_pswpol and p_pswparam, indicates whether search should only include pollutants with violations. - p_wbd
string
: 2-, 4-, 6-, 8-, 10-, or 12-character watershed (WBD from the USGS Watershed Boundary Dataset). May contain multiple comma-separated values. Uses the FRS Best Pick Coordinate to obtain the WBD12 Huc value. - p_radwbd
string
: 2-, 4-, 6-, 8-, 10-, or 12 character watershed (WBD from the USGS Watershed Boundary Dataset). May contain multiple comma-separated values. Will search against WBD values otained by "reach indexing" NPDES permits against the medium resolution National Hydrography Dataset. - p_frswbd
string
: Works exactly the same as the p_wbd parameter. 2-, 4-, 6-, 8-, 10-, or 12-character watershed (WBD from the USGS Watershed Boundary Dataset). May contain multiple comma-separated values. Uses the FRS Best Pick Coordinate to obtain the WBD12 Huc value. - p_fntype
string
(values: ALL, CONTAINS, EXACT, BEGINS): Controls type of text search performed on facility name with parameter p_fn. - p_pidall
string
(values: Y, N): Controls whether search is restricted to existing system. Y means the search will match the p_pid parameter against all associated permits (AIR, RCRA, SDWIS, etc). - p_months_last_dmr
number
: The number of months since the last Discharge Monitoring Report has been submitted. - p_last_dmr_within
string
(values: W, N): W value returns facilities that have submitted DMRs within the number of months specified by p_months_last_dmr. An N value returns facilities that have not submitted a DMR within the specified number of months. - p_indsw
string
(values: Y, N): Industrial Stormwater Permit Flag. Enter a Y or N to filter results by this type of permit. - p_msgp_ptype
string
(values: NOI, NOE): Multi-Sector General Purpose Permit Type. Enter a value to filter results by MSGP Permit Type. - p_mon_type
string
(values: BENCHG2, BENCH, ELG): For use with the Industrial Stormwater search only. Valid values are BENCHGS fro Benchmark (Alert Limit) G2 Ore, BENCH for Benchmark (Alert Limit), and ELG fro Effluent Limitation Guidelines(ELG)(Effluent Limit). - p_iagency
string
: Issuing Agency Limiter. Enter a single value to filter results by the issuing agency, e.g. "State" or "EPA". - p_permitting_agency
string
- p_isws
string
: Multi-Sector General Purpose Permit Subsector Individual Identifier. Enter a value to filter results. - p_iswss
string
: Multi-Sector General Purpose Permit Subsector Group Code. Enter a value to filter results. - p_iswssID
string
: Multi-Sector General Purpose Permit Sector Code. Enter a value to filter results. - p_ds1
string
: Submitted Date Filter Start. To filter by the date of submission, enter a start date here and an end date in the p_ds2 parameter. Both dates are required for filtering. - p_ds2
string
: Submitted Date Filter End. To filter by the date of submission, enter an end date here and a start date in the p_ds1 parameter. Both dates are required for filtering. - p_da1
string
: Active Date Filter Start. To filter by the active date, enter a start date here and an end date in the p_da2 parameter. Both dates are required for filtering. - p_da2
string
: Active Date Filter End. To filter by the active date, enter an end date here and a start date in the p_da1 parameter. Both dates are required for filtering. - p_MS4
string
(values: Y, N): Municipal Separate Storm Water Sewer (MS4) Permit Flag. Enter a Y or N to filter results by this type of permit. - p_ooFN
string
: Owner/Operator Name. Enter the owner/operator name of the facility. - p_ooFNtype
string
(values: ALL, EXACT, BEGINS, CONTAINS): Owner/Operator Name Multiple Selection Evaluator. - p_ooSA
string
: Owner/Operator Address. Enter the address of the owner/operator of the facility. - p_ooSA1
string
: Owner/Operator Address Line 2. Enter the line 2 address of the owner/operator of the facility. - p_ooCt
string
: Owner/Operator City. Enter the city where the owner/operator of the facility is located. - p_ooSt
string
: Owner/Operator State. Enter the standardized postal state code where the owner/operator of the facility is located. - p_ooZip
string
: Owner/Operator Zip Code. Enter the postal zip code where the owner/operator of the facility is located. - p_fac_ico
string
(values: Y, N): FRS tribal land code flag. Enter "Y" or "N" to include or exclude facilities based on FRS tribal land code. - p_icoo
string
: Indian country search and/or flag. Enter "Y" to set indian country search conditions to return any results found using p_ico, p_fac_ico or p_fac_icoo. Otherwise only results matching all provided p_ico, p_fac_ico or p_fac_icoo conditions will be returned. - p_fac_icos
string
: FRS tribal land spatial flag. Enter "Y" or "N" to include or exclude facilities based on FRS tribal land spatial flag. - p_ejscreen
string
: Enter "Y" to limit facilities to Census block groups where one of more Environmental Justice indexes above 80th percentile. - p_alrexceed
number
: Alert Limits Exceedences Limiter. Enter a numeric value to restrict results to facilities having the given amount or more of alert limits exceedances. - p_limit_addr
string
(values: Y, N): Limit Address Search Flag. Enter Y to restrict facility searches to native data source only. - p_lat
number
: Latitude location in decimal degrees. - p_long
number
: Longitude location in decimal degrees. - p_radius
number
: Spatial Search Radius. Enter a radius up to 100 miles in which to spatially search for facilities. - p_ejscreen_over80cnt
string
(values: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11): The number of Environmenmt Justice Indicators above the 80th percentile. Valid values are 1 through 11. - p_bio_flag
string
: A Y value will select all biosolid-related permits. - p_bio_fac_type
string
: The code indicating the reporting obligation reason: - p_bio_trtmnt_procs
string
: The biosolids or sewage sludge treatment process or processes at the facility: - p_bio_analy_method_catgry
string
: The unique code for the category of the analytic methods used by the facility to analyze regulated parameters (including enteric viruses, fecal coliforms, helminth ova, and Salmonella sp.) at the facility: - p_bio_total_volume_amt
string
: Total annual amount (in dry metric tons) of biosolids or sewage sludge generated at the facility. - p_bio_mgmt_prctce_type
string
: The unique code that identifies the type of biosolids or sewage sludge management practice (e.g., land application, surface disposal, incineration) used by the facility. The facility will separately report the management practice for each biosolids or sewage sludge form and pathogen class. This data element will also identify the management practices used by surface disposal site owners/operators (see 40 CFR 503.24): - p_bio_mgmt_prctce_stype
string
: This is the code indicating additional detail about the type of Management Practice used for a volume of Biosolids or Sewage Sludge: - p_bio_mgmt_prctce_handler
string
: This is the code indicating the type of Biosolids or Sewage Sludge handlers/preparers. - p_bio_mgmt_container
string
: The code that identifies the nature of each biosolids and sewage sludge material generated by the facility in terms of whether the material is a biosolid or sewage sludge and whether the material is ultimately conveyed off-site in bulk or in bags. The facility separately reports the form for each biosolids or sewage sludge management practice or practices used by the facility and pathogen class: - p_bio_mgmt_pathogen
string
: This code identifies the pathogen class [e.g., Class A, Class B, Not Applicable (Incineration)] for biosolids or sewage sludge generated by the facility. The facility will separately report the pathogen class for each biosolids or sewage sludge management practice used by the facility and by each biosolids or sewage sludge form. It also is used to filter applicable Pathogen Reduction and Vector Attraction Reduction Options as well as Land Application Management Practice Deficiencies. Only reqired for some of the mgmt. practice types: - p_bio_mgmt_pathred
string
: This is the description of the option used by the facility to control pathogen for a Biosolids Management Practice: - p_bio_mgmt_vector
string
: The unique code that identifies the option used by the facility for vector attraction reduction. See a listing of these vector attraction reduction options at 40 CFR 503.33(b)(1) through (11). The facility will separately report the vector attraction reduction options for each biosolids or sewage sludge management practice used by the facility and by each biosolids or sewage sludge form as well as by each biosolids or sewage sludge pathogen class: - p_bio_mgmt_def_category
string
: This is the code indicating the type of NPDES special regulatory program deficiency: - p_bio_mgmt_deficiencies
number
: The number of times noncompliance was reported by the facility in the last 3 years. The results returned will include facilities whose number of reported noncompliance events is greater than or equal to the number entered. - p_bio_vio_code
string
: The Biosolids Single Event Violation Code. Enter one or mode codes. - p_bio_current_vio
string
(values: Y, N): Indicator of whether the facility is currently in violation for biosolids under the Clean Water Act, in the 12th or 13th quarter: - p_bio_qtrs_in_vio
number
: The number of quarters, in the last three years, where the facility was in violation for a biosolids violation type. The results returned will include facilities whose number of quarters with violations is greater than or equal to the number entered. - p_bio_rpt_year
string
: The last year that the permittee submitted an annual Biosolids report. Valid values are NONE and any year greater or equal to 2016. - p_bio_vio_last_year
string
(values: Y, N): Identifies if a biosolids violation has occured in the last year. Valid values are Y and N. - p_msgp_rpt_year
string
: The last year that a MSGP report was submitted for the permit. Valid values are "NONE" and any year Greater or Eqal to 2015. - p_vio_last_year
string
(values: Y, N): Identifies if a permit violation has occured in the last year. Valid values are Y and N. - queryset
number
: Query Limiter. Enter a value to limit the number of records returned for each query. Value cannot exceed 70,000. - responseset
number
: Response Set Limiter. Enter a value to limit the number of records per page. Value cannot exceed 1,000. - tablelist
string
(values: Y, N): Table List Flag. Enter a Y to display the first page of facility results. - maplist
string
(values: Y, N): Map List Flag. Provide a Y to return mappable coordinates representing the full geographic extent of the queryset (all facilities that met the selection criteria). - summarylist
string
(values: Y, N): Summary List Flag. Enter a Y to return a list of summary statistics based on the parameters submitted to the query service. - callback
string
: JSONP Callback. For use with JSONP and GEOJSONP output only. Enter a name of the function in which to wrap the JSON response. - qcolumns
string
: Used to customize service output. A list of comma-separated column IDs of output objects that will be returned in the service query object or download. Use the metadata service endpoint for a complete list of Ids and definitions. - p_e90_count
number
: Number of E90 Exceedances. Identifies water permits with a number of E90 (Effluient Exceedances) >= the value provided for the last number of years provided by the p_e90_years value. - p_e90_years
number
: Number of years for the p_e90_count search. Identified the past number of years to be used for the p_e90_count search. - p_psc
string
: Point Source Category.
- output
Output
- output
object
: Root Object- Results required cwa04
cwa_rest_services.get_facility_info.get
Returns either an array of Facilities or an array of Clusters that meet the specified search criteria.
epa_gov_cwa.cwa_rest_services.get_facility_info.get({}, context)
Input
- input
object
- output
string
: Output Format Flag. Enter one of the following keywords: - p_fn
string
: Facility Name Filter. Enter one or more case-insensitive facility names to filter results. Provide multiple values as a comma-delimited list. See p_fntype for additional modifiers. - p_sa
string
: Facility street address. Enter a complete or partial street address. - p_sa1
string
: Facility street address. Enter a complete or partial street address. Note that p_sa1 is culmulative with p_sa. - p_ct
string
: Facility City Filter. Enter a single case-insensitive city name to filter results. - p_co
string
: Facility County Filter. Provide a single county name in combination with a state value provided via p_st. - p_fips
string
: FIPS Code Filter. Enter a single 5-character Federal Information Processing Standards (FIPS) state + county value to restrict results. E.g. to limit results to Kenosha County, Wisconsin, use 55059. - p_st
string
: Facility State and State-Equivalent Filter. Provide one or more USPS postal abbreviations for states and state-equivalents to filter results. Provide multiple values as a comma-delimited list. - p_zip
string
: 5-Digit ZIP Code Filter. Provide one or more 5-digit postal zip codes to filter results. May contain multiple comma-separated values. - p_frs
string
: Facility Registry Service ID Filter. Enter a single 12-digit FRS identifier to filter results. - p_reg
string
(values: 01, 02, 03, 04, 05, 06, 07, 08, 09, 10): EPA Region Filter. Provide a single value of 01 thru 10 to restrict results to a single EPA region. - p_sic
string
: Standard Industrial Classification (SIC) Code Filter. Enter a single 4-digit SIC Code to filter results. If more complex filtering is required, use p_sic2 and p_sic4. - p_ncs
string
: North American Industry Classification System Filter. Enter two to six digits to filter results to facilities having matching NAICS codes. Digits less than six will match to all codes beginning with the provided values. - p_pen
string
: Last Penality Date Qualifier Filter. Enter one of the following: - xmin
number
: Minimum longitude value in decimal degrees. - ymin
number
: Minimum latitude value in decimal degrees. - xmax
number
: Maximum longitude value in decimal degrees. - ymax
number
: Maximum latitude value in decimal degrees. - p_usmex
string
(values: Y, N): US-Mexico Border Flag. Enter Y/N to restrict searches to facilities located within 100KM of the border. - p_sic2
string
: Standard Industrial Classification (SIC) Code Filter Alternate 2. Enter a wild-card search against SIC codes. A final wild-card is always present allowing "22" to match all SIC codes beginning with 22. Use the "%" character within strings to match any SIC values with the pattern. For example, "2%21" matches 2021, 2121, 2221, etc. - p_sic4
string
: Standard Industrial Classification (SIC) Code Filter Alternate 3. Enter the first 2, 3 or 4 SIC code digits to filter results to facilities having those code prefixes. As this alternative does not utilize an index, p_sic2 will generally be quicker. - p_fa
string
: Federal Agency. 1 character or 5-character values; may contain multiple comma-separated values. ALL will retrieve all facilities where the federal agency code is not null. Use the Federal Agencies lookup service to obtain a list of values. - p_ff
string
(values: Y): Federal Facility Indicator Flag. Enter Y to restrict searches to federal facilities. - p_act
string
: Active Permits/Facilities Flag. Provide Y or N to filter results to facilities with active permits. A Y will select ICIS NPDES permits with a status of effective, continued, or expired. - p_maj
string
(values: Y, N): Major Facility Flag. Enter Y to restrict results to Major facilities only. - p_mact
string
: CAA Maximum Achievable Control Technology (MACT) Subpart codes (alpha ID between 1 and 7 characters) applicable to the facility. - p_fea
string
(values: W, N): Formal Enforcement Actions [within / not within] specified date range indicator. The date range is determined by parameters p_fead1 and p_fead2 or by parameter p_feay. - p_feay
number
(values: 1, 2, 3, 4, 5): Years (1 to 5) Range. This value is used to create a date range for Formal Enforcement Actions (FEA). Used along with p_fea (which indicates whether to look within or outside of the date range) to find FEAs within (or not within) the number of years specified. - p_feaa
string
(values: A, E, S): Agency associated with Formal Enforcement Actions: - p_iea
string
(values: W, N): Informal Enforcement Actions [within / not within] specified date range. The date range is determined by parameters p_iead1 and p_iead2 or by parameter p_ieay. - p_ieay
number
(values: 1, 2, 3, 4, 5): Years (1 to 5) Range. This value is used to create a date range for Informal Enforcement Actions (IEA). Used along with p_iea (which indicates whether to look within or outside of the date range) to find IEAs within (or not within) the number of years specified. - p_ieaa
string
(values: E, S): Agency associated with Informal Enforcement Actions. If left blank, both agencies are included. - p_qiv
string
(values: 0, GT1, GT2, GT4, GT8, 12): Quarters in Noncompliance Limiter. Enter a coded value to limit results to facilities with given quarter of noncompliance. - p_iv
string
: Facility has a violation status of 'In Viol' during any of the selected quarters. - p_impw
string
(values: Y, N): Discharging into Impaired Waters Flag. Enter Y to limit results to facilities with discharge to waterbodies listed as impaired in the ATTAINS database. - p_imp_pol
string
(values: Y, N): Facility is discharging pollutants that are potentially contributing to the impairment of local waterbodies according to the ATTAINS database. - p_imp_cau_grp
string
(values: ALGAL GROWTH, AMMONIA, BIOTOXINS, CAUSE UNKNOWN, CAUSE UNKNOWN - FISH KILLS, CAUSE UNKNOWN - IMPAIRED BIOTA, CHLORINE, DIOXINS, FISH CONSUMPTION ADVISORY, FLOW ALTERATION(S), HABITAT ALTERATIONS, MERCURY, METALS (OTHER THAN MERCURY), NOXIOUS AQUATIC PLANTS, NUISANCE EXOTIC SPECIES, NUISANCE NATIVE SPECIES, NUTRIENTS, OIL AND GREASE, ORGANIC ENRICHMENT/OXYGEN DEPLETION, OTHER CAUSE, PATHOGENS, PESTICIDES, PH/ACIDITY/CAUSTIC CONDITIONS, POLYCHLORINATED BIPHENYLS (PCBS), RADIATION, SALINITY/TOTAL DISSOLVED SOLIDS/CHLORIDES/SULFATES, SEDIMENT, TASTE, COLOR AND ODOR, TEMPERATURE, TOTAL TOXICS, TOXIC INORGANICS, TOXIC ORGANICS, TRASH, TURBIDITY): Facility is discharging a pollutant group causing a waterbody to be impaired. Enter 1 through 34 (the internal number of the pollutant group); or enter a partial name such as Dioxin,Temp,tUrBidity. - p_trep
string
(values: CURR, NOTCURR): Current Toxics Release Inventory (TRI) Reporter Limiter. Enter one of the following codes to limit results. - p_pm
string
(values: NONE, GT5, GT10, GT25, GT50, GT75): Percent Minority Population Limiter. Enter a value to restrict results to facilities with a given percentage of minority population within 3-mile radius. - p_pd
string
(values: NONE, GT100, GT500, GT1000, GT5000, GT10000, GT20000): Population Density Limiter (per sq mile). Enter a value to limit results to facilities located in area of a given population density. - p_ico
string
(values: Y, N): Indian Country Flag. Enter a "Y" or "N" to restrict searches to facilities inside or outside Indian Country. - p_huc
string
: 2-, 4-, 6-, or 8-character watershed code. May contain multiple comma-separated values. - p_pid
string
: Nine-digit permit IDs. May contain up to 2000 comma-separated values. - p_med
string
(values: A, M, R, S, ALL): Filter Results by Media. - p_ysl
string
(values: W, N, NV): Last Facility Inspection [within / not within] Specified Date Range Indicator. The date range is determined by parameters p_idt1 and p_idt2 or by parameter p_ysly. - p_ysly
number
(values: 1, 2, 3, 4, 5): Number of years (1 to 5) since last facility inspection. A value of 1 means that it has been inspected within the year. - p_ysla
string
(values: E, S, A): Facility Last Inspection Code Filter. If left blank, both agencies are included. Enter a value to limit results: - p_qs
string
: Quick Search. Allows entry for city, state, and/or zip code. - p_sfs
string
: Single Facility Search Filter. Provide a facility name or program system identifier to limit results. For the all data search, the FRS registry identifier is also searched. - p_tribeid
number
: Numeric code for tribe (or list of t
- output