UNPKG

openapi-directory

Version:

Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS

1 lines 252 kB
{"openapi":"3.0.0","info":{"contact":{"name":"U.S. EPA, OECA Integration, Targeting and Access Branch","url":"https://echo.epa.gov/resources/general-info/contact-us"},"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.\n ECHO Rest Services provide multiple service endpoints, each with specific capabilities, to search and retrieve data on facilities regulated as Clean Air Act (CAA) stationary sources, Clean Water Act (CWA) dischargers, Resource Conservation and Recovery Act (RCRA) hazardous waste generators/handlers, and Safe Drinking Water Act (SDWA) public water systems. Data of interest from other EPA sources, such as the Toxics Release Inventory, is also supplied for context. \n\\\nThe 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.\n 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.\n\\\nThe recommended use scenario for get_facilities, get_qid, get_map, and get_downoad is:\n\\\n <b>1)</b> 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.\n <b>2)</b> Use get_qid, with the returned QID, to paginate through arrays of facility results.\n <b>3)</b> 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.\n <b>4)</b> Use get_download, with the returned QID, to generate a Comma Separated Value (CSV) file of facility information that meets the QID query criteria.\n\\\n\\\nUse 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. \n\\\nAdditional ECHO Resources: <a href=\"https://echo.epa.gov/tools/web-services\">Web Services</a>, <a href=\"https://echo.epa.gov/resources/echo-data/about-the-data\">About ECHO's Data</a>, <a href=\"https://echo.epa.gov/tools/data-downloads\">Data Downloads</a>\n ","license":{"name":"U.S. Public Domain License","url":"https://edg.epa.gov/EPA_Data_License.html"},"title":"U.S. EPA Enforcement and Compliance History Online (ECHO) - All Data","version":"2019.10.15","x-apisguru-categories":["open_data"],"x-logo":{"backgroundColor":"#FFFFFF","url":"https://pbs.twimg.com/profile_images/632233890594299904/DgRDU6dx_400x400.png"},"x-origin":[{"format":"swagger","url":"https://ofmpub.epa.gov/echo/swaggerx.swagger_json?p_prefix=ECHO","version":"2.0"}],"x-providerName":"epa.gov","x-serviceName":"echo"},"paths":{"/echo_rest_services.get_download":{"get":{"description":"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.","parameters":[{"description":"Output Format Flag. Enter one of the following keywords:\n- CSV = Facility results formatted as comma delimited file download (default).\n- GEOJSOND = Facility results formatted as GeoJSON feature collection download.","in":"query","name":"output","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/q.qid"},{"description":"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.","in":"query","name":"qcolumns","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/q.p_pretty_print"}],"responses":{"200":{"description":"Results are a comma separated value (CSV) file or a file containing a GeoJSON feature collection.","content":{"application/json":{"schema":{"type":"string","format":"binary"}},"application/xml":{"schema":{"type":"string","format":"binary"}}}}},"summary":"Combined ECHO Download Data Service","tags":["Facility Info"]},"post":{"description":"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.","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"output":{"description":"Output Format Flag. Enter one of the following keywords:\n- CSV = Facility results formatted as comma delimited file download (default).\n- GEOJSOND = Facility results formatted as GeoJSON feature collection download.","type":"string"},"qid":{"description":"Query ID Selector. Enter the QueryID number from a previously run query.","type":"string"},"qcolumns":{"description":"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.","type":"string"},"p_pretty_print":{"description":"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.","type":"number"}},"required":["qid"]}}}},"responses":{"200":{"description":"Results are a comma separated value (CSV) file or a file containing a GeoJSON feature collection.","content":{"application/json":{"schema":{"type":"string","format":"binary"}},"application/xml":{"schema":{"type":"string","format":"binary"}}}}},"summary":"Combined ECHO Download Data Service","tags":["Facility Info"]}},"/echo_rest_services.get_facilities":{"get":{"description":"Validates query search parameters and returns query identifier. Use the responseset parameter to set the page size","parameters":[{"description":"Output Format Flag. Enter one of the following keywords:\n- JSON = Data model formatted as Javascript Object Notation (default).\n- JSONP = Data model formatted as Javascript Object Notation with Padding. \n- XML = Data model formatted as Extensible Markup Language.","in":"query","name":"output","required":false,"schema":{"type":"string","enum":["JSONP","JSON","XML"]}},{"$ref":"#/components/parameters/q.p_fn"},{"$ref":"#/components/parameters/q.p_sa"},{"$ref":"#/components/parameters/q.p_sa1"},{"$ref":"#/components/parameters/q.p_ct"},{"$ref":"#/components/parameters/q.p_co"},{"$ref":"#/components/parameters/q.p_fips"},{"$ref":"#/components/parameters/q.p_st"},{"$ref":"#/components/parameters/q.p_zip"},{"$ref":"#/components/parameters/q.p_frs"},{"$ref":"#/components/parameters/q.p_reg"},{"$ref":"#/components/parameters/q.p_sic"},{"$ref":"#/components/parameters/q.p_ncs"},{"$ref":"#/components/parameters/q.p_pen"},{"$ref":"#/components/parameters/q.p_c1lat"},{"$ref":"#/components/parameters/q.p_c1lon"},{"$ref":"#/components/parameters/q.p_c2lat"},{"$ref":"#/components/parameters/q.p_c2lon"},{"$ref":"#/components/parameters/q.p_usmex"},{"$ref":"#/components/parameters/q.p_sic2"},{"$ref":"#/components/parameters/q.p_sic4"},{"$ref":"#/components/parameters/q.p_fa"},{"$ref":"#/components/parameters/q.p_ff"},{"$ref":"#/components/parameters/q.p_act"},{"$ref":"#/components/parameters/q.p_maj"},{"$ref":"#/components/parameters/q.p_mact"},{"$ref":"#/components/parameters/q.p_fea"},{"$ref":"#/components/parameters/q.p_feay"},{"$ref":"#/components/parameters/q.p_feaa"},{"$ref":"#/components/parameters/q.p_feac"},{"$ref":"#/components/parameters/q.p_fea_5yr"},{"$ref":"#/components/parameters/q.p_iea"},{"$ref":"#/components/parameters/q.p_ieay"},{"$ref":"#/components/parameters/q.p_ieaa"},{"$ref":"#/components/parameters/q.p_iea_5yr"},{"$ref":"#/components/parameters/q.p_cs"},{"$ref":"#/components/parameters/q.p_qiv"},{"$ref":"#/components/parameters/q.p_naa"},{"$ref":"#/components/parameters/q.p_impw"},{"$ref":"#/components/parameters/q.p_trep"},{"$ref":"#/components/parameters/q.p_ocr"},{"$ref":"#/components/parameters/q.p_oct"},{"$ref":"#/components/parameters/q.p_pm"},{"$ref":"#/components/parameters/q.p_pd"},{"$ref":"#/components/parameters/q.p_ico"},{"$ref":"#/components/parameters/q.p_huc"},{"$ref":"#/components/parameters/q.p_pid"},{"$ref":"#/components/parameters/q.p_med"},{"$ref":"#/components/parameters/q.p_istatute"},{"$ref":"#/components/parameters/q.p_ysl"},{"$ref":"#/components/parameters/q.p_ysly"},{"$ref":"#/components/parameters/q.p_ysla"},{"$ref":"#/components/parameters/q.p_qs"},{"$ref":"#/components/parameters/q.p_sfs"},{"$ref":"#/components/parameters/q.p_tribeid"},{"$ref":"#/components/parameters/q.p_tribename"},{"$ref":"#/components/parameters/q.p_tribedist"},{"$ref":"#/components/parameters/q.p_wbd"},{"$ref":"#/components/parameters/q.p_fntype"},{"$ref":"#/components/parameters/q.p_icoo"},{"$ref":"#/components/parameters/q.p_fac_icos"},{"$ref":"#/components/parameters/q.p_ejscreen"},{"$ref":"#/components/parameters/q.p_limit_addr"},{"$ref":"#/components/parameters/q.p_lat"},{"$ref":"#/components/parameters/q.p_long"},{"$ref":"#/components/parameters/q.p_radius"},{"$ref":"#/components/parameters/q.p_ejscreen_over80cnt"},{"$ref":"#/components/parameters/q.p_agoo"},{"$ref":"#/components/parameters/q.p_neiu"},{"$ref":"#/components/parameters/q.queryset"},{"$ref":"#/components/parameters/q.responseset"},{"$ref":"#/components/parameters/q.tablelist"},{"$ref":"#/components/parameters/q.maplist"},{"$ref":"#/components/parameters/q.summarylist"},{"$ref":"#/components/parameters/q.callback"},{"description":"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.","in":"query","name":"qcolumns","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Results are summary statistics for the query and a query identifier (QID).","content":{"application/json":{"schema":{"description":"Root Object","properties":{"Results":{"$ref":"#/components/schemas/echo04"}},"required":["Results"],"type":"object","xml":{"name":"Root"}}},"application/xml":{"schema":{"description":"Root Object","properties":{"Results":{"$ref":"#/components/schemas/echo04"}},"required":["Results"],"type":"object","xml":{"name":"Root"}}}}}},"summary":"Combined ECHO Facility Search Service","tags":["Facility Info"]},"post":{"description":"Validates query search parameters and returns query identifier. Use the responseset parameter to set the page size","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"output":{"description":"Output Format Flag. Enter one of the following keywords:\n- JSON = Data model formatted as Javascript Object Notation (default).\n- JSONP = Data model formatted as Javascript Object Notation with Padding. \n- XML = Data model formatted as Extensible Markup Language.","type":"string","enum":["JSONP","JSON","XML"]},"p_fn":{"description":"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.","type":"string"},"p_sa":{"description":"Facility street address. Enter a complete or partial street address.","type":"string"},"p_sa1":{"description":"Facility street address. Enter a complete or partial street address. Note that p_sa1 is culmulative with p_sa.","type":"string"},"p_ct":{"description":"Facility City Filter. Enter a single case-insensitive city name to filter results.","type":"string"},"p_co":{"description":"Facility County Filter. Provide a single county name in combination with a state value provided via p_st.","type":"string"},"p_fips":{"description":"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.","type":"string"},"p_st":{"description":"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.","type":"string"},"p_zip":{"description":"5-Digit ZIP Code Filter. Provide one or more 5-digit postal zip codes to filter results. May contain multiple comma-separated values.","type":"string"},"p_frs":{"description":"Facility Registry Service ID Filter. Enter a single 12-digit FRS identifier to filter results.","type":"string"},"p_reg":{"description":"EPA Region Filter. Provide a single value of 01 thru 10 to restrict results to a single EPA region.","type":"string","enum":["01","02","03","04","05","06","07","08","09","10"]},"p_sic":{"description":"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.","type":"string"},"p_ncs":{"description":"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.","type":"string"},"p_pen":{"description":"Last Penality Date Qualifier Filter. Enter one of the following: \n- NEVER = No Penalties\n- ANY = Any Penalty\n- LEXX = Less than or equal to XX months. Provide a number in place of XX, e.g. \"LE5\" for a facility with a penalty within previous 5 months.\n- GTXX = Greater than XX months. Provide a number in place of XX, eg. GT12, for a facility with the last penalty greater than 12 months ago.","type":"string"},"p_c1lat":{"description":"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.","type":"number"},"p_c1lon":{"description":"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.","type":"number"},"p_c2lat":{"description":"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.","type":"number"},"p_c2lon":{"description":"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.","type":"number"},"p_usmex":{"description":"US-Mexico Border Flag. Enter Y/N to restrict searches to facilities located within 100KM of the border.","type":"string","enum":["Y","N"]},"p_sic2":{"description":"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.","type":"string"},"p_sic4":{"description":"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.","type":"string"},"p_fa":{"description":"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.","type":"string"},"p_ff":{"description":"Federal Facility Indicator Flag. Enter Y to restrict searches to federal facilities.","type":"string","enum":["Y"]},"p_act":{"description":"Active Permits/Facilities Flag. Provide Y or N to filter results to facilities with active permits.","type":"string","enum":["Y","N","A"]},"p_maj":{"description":"Major Facility Flag. Enter Y to restrict results to Major facilities only.","type":"string","enum":["Y","N"]},"p_mact":{"description":"CAA Maximum Achievable Control Technology (MACT) Subpart codes (alpha ID between 1 and 7 characters) applicable to the facility.","type":"string"},"p_fea":{"description":"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.\n- W = within date range\n- N = not within date range","type":"string","enum":["W","N"]},"p_feay":{"description":"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.","type":"number","enum":[1,2,3,4,5]},"p_feaa":{"description":"Agency associated with Formal Enforcement Actions:\n- E = EPA\n- S = State\n- A = All","type":"string","enum":["A","E","S"]},"p_feac":{"description":"Formal Enforcment Action Last Case Date Limiter Flag. Enter a value of \"Y\" to additionally apply the p_feay year filter to the last formal enforcement action case date. Use the p_fea parameter to control if the filter is within or outside the date span provided.","type":"string"},"p_fea_5yr":{"description":"A Y value identifies facilities that have had a formal enforcement action within the last 5 years.","type":"string"},"p_iea":{"description":"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.\n- W = within date range\n- N = not within date range","type":"string","enum":["W","N"]},"p_ieay":{"description":"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.","type":"number","enum":[1,2,3,4,5]},"p_ieaa":{"description":"Agency associated with Informal Enforcement Actions. If left blank, both agencies are included.\n- E = EPA\n- S = State","type":"string","enum":["E","S"]},"p_iea_5yr":{"description":"A Y value identifies facilities that have had an informal enforcement action within the last 5 years.","type":"string"},"p_cs":{"description":"Facility Compliance Limiter. Enter 2, 3 or 4 to limit facilities returned.\n- 2 = Facilities in noncompliance.\n- 3 = Facilities having one or more programs reporting significant noncompliance.\n- 4 = Facilities having more than one program reporting significant noncompliance.","type":"number","enum":["2","3","4"]},"p_qiv":{"description":"Quarters in Noncompliance Limiter. Enter a coded value to limit results to facilities with given quarter of noncompliance.\n- Z = Zero quarters in noncompliance.\n- GEXX = Replacing XX with a numeric value, that number of quarterd or more in noncompliance.\n- GTXX = Replacing XX with a numeric value, more than that number of quarters in noncompliance.","type":"string","enum":["0","GT1","GT2","GT4","GT8","12"]},"p_naa":{"description":"Non-Attainment Area Flag. Enter a Y or N to filter for or against facilities flagged as non-attainment areas.","type":"string"},"p_impw":{"description":"Discharging into Impaired Waters Flag. Enter Y to limit results to facilities with discharge to waterbodies listed as impaired in the ATTAINS database.","type":"string","enum":["Y","N"]},"p_trep":{"description":"Current Toxics Release Inventory (TRI) Reporter Limiter. Enter one of the following codes to limit results.\n- CURR = Current TRI reporter.\n- NONCURR = Has reported to TRI in the past but not for the current reporting year.","type":"string","enum":["CURR","NOTCURR"]},"p_ocr":{"description":"Toxics Release Inventory Pounds of On-Site Chemical Releases Limiter. Enter a keyword to filter results.\n- Z = Zero pounds of chemical releases.\n- GT0 = More than zero pounds of chemical releases.\n- GT1000 = More than one thousand pounds of chemical releases.\n- GT5000 = More than five thousand pounds of chemical releases.\n- GT10000 = More than ten thousand pounds of chemical releases.\n- GT20000 = More than twenty thousand pounds of chemical releases.\n- GT50000 = More than fifty thousand pounds of chemical releases.","type":"string"},"p_oct":{"description":"Toxic Release Inventory Pounds of Off-Site Chemical Releases Limiter. Enter a keyword to filter results.\n- Z = Zero pounds of chemical releases.\n- GT0 = More than zero pounds of chemical releases.\n- GT1000 = More than one thousand pounds of chemical releases.\n- GT5000 = More than five thousand pounds of chemical releases.\n- GT10000 = More than ten thousand pounds of chemical releases.\n- GT20000 = More than twenty thousand pounds of chemical releases.\n- GT50000 = More than fifty thousand pounds of chemical releases.","type":"string","enum":["Z","GT0","GT1000","GT5000","GT10000","GT20000","GT50000"]},"p_pm":{"description":"Percent Minority Population Limiter. Enter a value to restrict results to facilities with a given percentage of minority population within 3-mile radius.\n- NONE = 0%\n- GT5 = greater than 5%\n- GT10 = greater than 10%\n- GT25 = greater than 25%\n- GT50 = greater than 50%\n- GT75 = greater than 75%","type":"string","enum":["NONE","GT5","GT10","GT25","GT50","GT75"]},"p_pd":{"description":"Population Density Limiter (per sq mile). Enter a value to limit results to facilities located in area of a given population density.\n- NONE = 0 population density per square mile\n- GT100 = More than 100 population density per square mile\n- GT500 = More than 500 population density per square mile\n- GT1000 = More than 1000 population density per square mile\n- GT5000 = More than 5000 population density per square mile\n- GT10000 = More than 10000 population density per square mile\n- GT20000 = More than 20000 population density per square mile","type":"string","enum":["NONE","GT100","GT500","GT1000","GT5000","GT10000","GT20000"]},"p_ico":{"description":"Indian Country Flag. Enter a \"Y\" or \"N\" to restrict searches to facilities inside or outside Indian Country.","type":"string","enum":["Y","N"]},"p_huc":{"description":"2-, 4-, 6-, or 8-character watershed code. May contain multiple comma-separated values.","type":"string"},"p_pid":{"description":"Nine-digit permit IDs. May contain up to 2000 comma-separated values.","type":"string"},"p_med":{"description":"Filter Results by Media.- A = Air- C = CAMD (Clean Air Markets Division)- E = EIS (Emissions Inventory Systems)- G = GHG (Greenhouse Gases)- M = RMP (Risk Management Plan)- R = RCRA (Hazardous Waste)- S = SDWA (Public Drinking Water Systems)- T = TRI (Toxic Release Inventory)- TSCA = TSCA (Toxic Substances Control Act)- W = Water- ALL = Air and Water and RCRA","type":"string","enum":["A","C","E","G","M","R","S","T","TSCA","W","ALL"]},"p_istatute":{"description":"For use in identifying Facilities that have an inspection performed under the entered Statute.","type":"string"},"p_ysl":{"description":"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.\n- W = within date range\n- N = not within date range","type":"string","enum":["W","N","NV"]},"p_ysly":{"description":"Number of years (1 to 5) since last facility inspection. A value of 1 means that it has been inspected within the year.","type":"number","enum":[1,2,3,4,5]},"p_ysla":{"description":"Facility Last Inspection Code Filter. If left blank, both agencies are included. Enter a value to limit results:\n- E = EPA\n- S = State","type":"string","enum":["E","S","A"]},"p_qs":{"description":"Quick Search. Allows entry for city, state, and/or zip code.","type":"string"},"p_sfs":{"description":"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.","type":"string"},"p_tribeid":{"description":"Numeric code for tribe (or list of tribes).","type":"number"},"p_tribename":{"description":"Tribe Name Filter. Enter a single tribe name to filter results.","type":"string"},"p_tribedist":{"description":"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.","type":"number"},"p_wbd":{"description":"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.","type":"string"},"p_fntype":{"description":"Controls type of text search performed on facility name with parameter p_fn.\n- EXACT = Find facilities having the exact provided name(s).\n- BEGINS = Find facilities with names starting with the provided term(s).\n- ALL = Find facilities using Oracle text search terms.\n- CONTAINS = ","type":"string","enum":["ALL","CONTAINS","EXACT","BEGINS"]},"p_icoo":{"description":"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.","type":"string"},"p_fac_icos":{"description":"FRS tribal land spatial flag. Enter \"Y\" or \"N\" to include or exclude facilities based on FRS tribal land spatial flag.","type":"string"},"p_ejscreen":{"description":"Enter \"Y\" to limit facilities to Census block groups where one of more Environmental Justice indexes above 80th percentile.","type":"string"},"p_limit_addr":{"description":"Limit Address Search Flag. Enter Y to restrict facility searches to native data source only. ","type":"string","enum":["Y","N"]},"p_lat":{"description":"Latitude location in decimal degrees.","type":"number"},"p_long":{"description":"Longitude location in decimal degrees.","type":"number"},"p_radius":{"description":"Spatial Search Radius. Enter a radius up to 100 miles in which to spatially search for facilities.","type":"number"},"p_ejscreen_over80cnt":{"description":"The number of Environmenmt Justice Indicators above the 80th percentile. Valid values are 1 through 11.","type":"string","enum":["1","2","3","4","5","6","7","8","9","10","11"]},"p_agoo":{"description":"Indicates whether to AND or OR the Owner/Operator parameter (p_owop) and the federal agency code (p_fa) parameters.","type":"string","enum":["AND","OR"]},"p_neiu":{"type":"string"},"queryset":{"description":"Query Limiter. Enter a value to limit the number of records returned for each query. Value cannot exceed 70,000.","type":"number"},"responseset":{"description":"Response Set Limiter. Enter a value to limit the number of records per page. Value cannot exceed 1,000.","type":"number"},"tablelist":{"description":"Table List Flag. Enter a Y to display the first page of facility results.","type":"string","enum":["Y","N"]},"maplist":{"description":"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).","type":"string","enum":["Y","N"]},"summarylist":{"description":"Summary List Flag. Enter a Y to return a list of summary statistics based on the parameters submitted to the query service.","type":"string","enum":["Y","N"]},"callback":{"description":"JSONP Callback. For use with JSONP and GEOJSONP output only. Enter a name of the function in which to wrap the JSON response.","type":"string"},"qcolumns":{"description":"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.","type":"string"}}}}}},"responses":{"200":{"description":"Results are summary statistics for the query and a query identifier (QID).","content":{"application/json":{"schema":{"description":"Root Object","properties":{"Results":{"$ref":"#/components/schemas/echo04"}},"required":["Results"],"type":"object","xml":{"name":"Root"}}},"application/xml":{"schema":{"description":"Root Object","properties":{"Results":{"$ref":"#/components/schemas/echo04"}},"required":["Results"],"type":"object","xml":{"name":"Root"}}}}}},"summary":"Combined ECHO Facility Search Service","tags":["Facility Info"]}},"/echo_rest_services.get_facility_info":{"get":{"description":"Returns either an array of Facilities or an array of Clusters that meet the specified search criteria.","parameters":[{"description":"Output Format Flag. Enter one of the following keywords:\n- JSON = Data model formatted as Javascript Object Notation (default).\n- JSONP = Data model formatted as Javascript Object Notation with Padding. \n- XML = Data model formatted as Extensible Markup Language.\n- CSV = Facility results formatted as comma delimited file download.\n- GEOJSON = Facility results formatted as GeoJSON feature collection.\n- GEOJSONP = Facility results formatted as GeoJSON feature collection with Padding.\n- GEOJSOND = Facility results formatted as GeoJSON feature collection download.","in":"query","name":"output","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/q.p_fn"},{"$ref":"#/components/parameters/q.p_sa"},{"$ref":"#/components/parameters/q.p_sa1"},{"$ref":"#/components/parameters/q.p_ct"},{"$ref":"#/components/parameters/q.p_co"},{"$ref":"#/components/parameters/q.p_fips"},{"$ref":"#/components/parameters/q.p_st"},{"$ref":"#/components/parameters/q.p_zip"},{"$ref":"#/components/parameters/q.p_frs"},{"$ref":"#/components/parameters/q.p_reg"},{"$ref":"#/components/parameters/q.p_sic"},{"$ref":"#/components/parameters/q.p_ncs"},{"$ref":"#/components/parameters/q.p_pen"},{"$ref":"#/components/parameters/q.xmin"},{"$ref":"#/components/parameters/q.ymin"},{"$ref":"#/components/parameters/q.xmax"},{"$ref":"#/components/parameters/q.ymax"},{"$ref":"#/components/parameters/q.p_usmex"},{"$ref":"#/components/parameters/q.p_sic2"},{"$ref":"#/components/parameters/q.p_sic4"},{"$ref":"#/components/parameters/q.p_fa"},{"$ref":"#/components/parameters/q.p_ff"},{"$ref":"#/components/parameters/q.p_act"},{"$ref":"#/components/parameters/q.p_maj"},{"$ref":"#/components/parameters/q.p_mact"},{"$ref":"#/components/parameters/q.p_fea"},{"$ref":"#/components/parameters/q.p_feay"},{"$ref":"#/components/parameters/q.p_feaa"},{"$ref":"#/components/parameters/q.p_feac"},{"$ref":"#/components/parameters/q.p_feac_5yr"},{"$ref":"#/components/parameters/q.p_iea"},{"$ref":"#/components/parameters/q.p_ieay"},{"$ref":"#/components/parameters/q.p_ieaa"},{"$ref":"#/components/parameters/q.p_iea_5yr"},{"$ref":"#/components/parameters/q.p_cs"},{"$ref":"#/components/parameters/q.p_qiv"},{"$ref":"#/components/parameters/q.p_naa"},{"$ref":"#/components/parameters/q.p_impw"},{"$ref":"#/components/parameters/q.p_trep"},{"$ref":"#/components/parameters/q.p_ocr"},{"$ref":"#/components/parameters/q.p_oct"},{"$ref":"#/components/parameters/q.p_pm"},{"$ref":"#/components/parameters/q.p_pd"},{"$ref":"#/components/parameters/q.p_ico"},{"$ref":"#/components/parameters/q.p_huc"},{"$ref":"#/components/parameters/q.p_pid"},{"$ref":"#/components/parameters/q.p_med"},{"$ref":"#/components/parameters/q.p_istatute"},{"$ref":"#/components/parameters/q.p_ysl"},{"$ref":"#/components/parameters/q.p_ysly"},{"$ref":"#/components/parameters/q.p_ysla"},{"$ref":"#/components/parameters/q.p_qs"},{"$ref":"#/components/parameters/q.p_sfs"},{"$ref":"#/components/parameters/q.p_tribeid"},{"$ref":"#/components/parameters/q.p_tribename"},{"$ref":"#/components/parameters/q.p_tribedist"},{"$ref":"#/components/parameters/q.p_wbd"},{"$ref":"#/components/parameters/q.p_fntype"},{"$ref":"#/components/parameters/q.p_icoo"},{"$ref":"#/components/parameters/q.p_fac_icos"},{"$ref":"#/components/parameters/q.p_ejscreen"},{"$ref":"#/components/parameters/q.p_limit_addr"},{"$ref":"#/components/parameters/q.p_lat"},{"$ref":"#/components/parameters/q.p_long"},{"$ref":"#/components/parameters/q.p_radius"},{"$ref":"#/components/parameters/q.p_ejscreen_over80cnt"},{"$ref":"#/components/parameters/q.p_agoo"},{"$ref":"#/components/parameters/q.p_neiu"},{"$ref":"#/components/parameters/q.responseset"},{"$ref":"#/components/parameters/q.callback"},{"description":"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.","in":"query","name":"qcolumns","required":false,"schema":{"type":"string"}},{"$ref":"#/components/parameters/q.p_pretty_print"}],"responses":{"200":{"description":"Results will either be an array of Facilities or an array of Clusters. The determination as to whether Facilities or Clusters are returned is based on the number of facilities that meet the specified criteria. Generally, if there are more than ~2000 facilities, the search will return clusters; otherwise individual facility records will be returned.","content":{"application/json":{"schema":{"description":"Root Object","properties":{"Results":{"$ref":"#/components/schemas/echo08"}},"required":["Results"],"type":"object","xml":{"name":"Root"}}},"application/xml":{"schema":{"description":"Root Object","properties":{"Results":{"$ref":"#/components/schemas/echo08"}},"required":["Results"],"type":"object","xml":{"name":"Root"}}}}}},"summary":"Combined ECHO Facility Enhanced Search Service","tags":["Facility Info"]},"post":{"description":"Returns either an array of Facilities or an array of Clusters that meet the specified search criteria.","requestBody":{"content":{"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"output":{"description":"Output Format Flag. Enter one of the following keywords:\n- JSON = Data model formatted as Javascript Object Notation (default).\n- JSONP = Data model formatted as Javascript Object Notation with Padding. \n- XML = Data model formatted as Extensible Markup Language.\n- CSV = Facility results formatted as comma delimited file download.\n- GEOJSON = Facility results formatted as GeoJSON feature collection.\n- GEOJSONP = Facility results formatted as GeoJSON feature collection with Padding.\n- GEOJSOND = Facility results formatted as GeoJSON feature collection download.","type":"string"},"p_fn":{"description":"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.","type":"string"},"p_sa":{"description":"Facility street address. Enter a complete or partial street address.","type":"string"},"p_sa1":{"description":"Facility street address. Enter a complete or partial street address. Note that p_sa1 is culmulative with p_sa.","type":"string"},"p_ct":{"description":"Facility City Filter. Enter a single case-insensitive city name to filter results.","type":"string"},"p_co":{"description":"Facility County Filter. Provide a single county name in combination with a state value provided via p_st.","type":"string"},"p_fips":{"description":"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.","type":"string"},"p_st":{"description":"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.","type":"string"},"p_zip":{"description":"5-Digit ZIP Code Filter. Provide one or more 5-digit postal zip codes to filter results. May contain multiple comma-separated values.","type":"string"},"p_frs":{"description":"Facility Registry Service ID Filter. Enter a single 12-digit FRS identifier to filter results.","type":"string"},"p_reg":{"description":"EPA Region Filter. Provide a single value of 01 thru 10 to restrict results to a single EPA region.","type":"string","enum":["01","02","03","04","05","06","07","08","09","10"]},"p_sic":{"description":"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.","type":"string"},"p_ncs":{"description":"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.","type":"string"},"p_pen":{"description":"Last Penality Date Qualifier Filter. Enter one of the following: \n- NEVER = No Penalties\n- ANY = Any Penalty\n- LEXX = Less than or equal to XX months. Provide a number in place of XX, e.g. \"LE5\" for a facility with a penalty within previous 5 months.\n- GTXX = Greater than XX months. Provide a number in place of XX, eg. GT12, for a facility with the last penalty greater than 12 months ago.","type":"string"},"xmin":{"description":"Minimum longitude value in decimal degrees.","type":"number"},"ymin":{"description":"Minimum latitude value in decimal degrees.","type":"number"},"xmax":{"description":"Maximum longitude value in decimal degrees.","type":"number"},"ymax":{"description":"Maximum latitude value in decimal degrees.","type":"number"},"p_usmex":{"description":"US-Mexico Border Flag. Enter Y/N to restrict searches to facilities located within 100KM of the border.","type":"string","enum":["Y","N"]},"p_sic2":{"description":"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.","type":"string"},"p_sic4":{"description":"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.","type":"string"},"p_fa":{"description":"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.","type":"string"},"p_ff":{"description":"Federal Facility Indicator Flag. Enter Y to restrict searches to federal facilities.","type":"string","enum":["Y"]},"p_act":{"description":"Active Permits/Facilities Flag. Provide Y or N to filter results to facilities with active permits.","type":"string","enum":["Y","N","A"]},"p_maj":{"description":"Major Facility Flag. Enter Y to restrict results to Major facilities only.","type":"string","enum":["Y","N"]},"p_mact":{"description":"CAA Maximum Achievable Control Technology (MACT) Subpart codes (alpha ID between 1 and 7 characters) applicable to the facility.","type":"string"},"p_fea":{"description":"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.\n- W = within date range\n- N = not within date range","type":"string","enum":["W","N"]},"p_feay":{"description":"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.","type":"number","enum":[1,2,3,4,5]},"p_feaa":{"description":"Agency associated with Formal Enforcement Actions:\n- E = EPA\n- S = State\n- A = All","type":"string","enum":["A","E","S"]},"p_feac":{"description":"Formal Enforcment Action Last Case Date Limiter Flag. Enter a value of \"Y\" to additionally apply the p_feay year filter to the last formal enforcement action case date. Use the p_fea parameter to control if the filter is within or outside the date span provided.","type":"string"},"p_feac_5yr":{"type":"string"},"p_iea":{"description":"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.\n- W = within date range\n- N = not within date range","type":"string","enum":["W","N"]},"p_ieay":{"description":"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.","type":"number","enum":[1,2,3,4,5]},"p_ieaa":{"description":"Agency associated with Informal Enforcement Actions. If left blank, both agencies are included.\n- E = EPA\n- S = State","type":"string","enum":["E","S"]},"p_iea_5yr":{"description":"A Y value identifies facilities that have had an informal enforcement action within the last 5 years.","type":"string"},"p_cs":{"description":"Facility Compliance Limiter. Enter 2, 3 or 4 to limit facilities returned.\n- 2 = Facilities in noncompliance.\n- 3 = Facilities having one or more programs reporting significant noncompliance.\n- 4 = Facilities having more than one program reporting significant noncompliance.","type":"number","enum":["2","3","4"]},"p_qiv":{"description":"Quarters in Noncompliance Limiter. Enter a coded value to limit results to facilities with given quarter of noncompliance.\n- Z = Zero quarters in noncompliance.\n- GEXX = Replacing XX with a numeric value, that number of quarterd or more in noncompliance.\n- GTXX = Replacing XX with a numeric value, more than that number of quarters in noncompliance.","type":"string","enum":["0","GT1","GT2","GT4","GT8","12"]},"p_naa":{"description":"Non-Attainment Area Flag. Enter a Y or N to filter for or against facilities flagged as non-attainment areas.","type":"string"},"p_impw":{"description":"Discharging into Impaired Waters Flag. Enter Y to limit results to facilities with discharge to waterbodies listed as impaired in the ATTAINS database.","type":"string","enum":["Y","N"]},"p_trep":{"description":"Current Toxics Release Inventory (TRI) Reporter Limiter. Enter one of the following codes to limit results.\n- CURR = Current TRI reporter.\n- NONCURR = Has reported to TRI in the past but not for the current reporting year.","type":"string","enum":["CURR","NOTCURR"]},"p_ocr":{"description":"Toxics Release Inventory Pounds of On-Site Chemical Releases Limiter. Enter a keyword to filter results.\n- Z = Zero pounds of chemical releases.\n- GT0 = More than zero pounds of chemical releases.\n- GT1000 = More than one thousand pounds of chemical releases.\n- GT5000 = More than five thousand pounds of chemical releases.\n- GT10000 = More than ten thousand pounds of chemical releases.\n- GT20000 = More than twenty thousand pounds of chemical releases.\n- GT50000 = More than fifty thousand pounds of chemical releases.","type":"string"},"p_oct":{"description":"Toxic Release Inventory Pounds of Off-Site Chemical Releases Limiter. Enter a keyword to filter results.\n- Z = Zero pounds of chemical releases.\n- GT0 = More than zero pounds of chemical releases.\n- GT1000 = More than one thousand pounds of chemical releases.\n- GT5000 = More than five thousand pounds of chemical releases.\n- GT10000 = More than ten thousand pounds of chemical releases.\n- GT20000 = More than twenty thousand pounds of chemical releases.\n- GT50000 = More than fifty thousand pounds of chemical releases.","type":"string","enum":["Z","GT0","GT1000","GT5000","GT10000","GT20000","GT50000"]},"p_pm":{"description":"Percent Minority Population Limiter. Enter a value to restrict results to facilities with a given percentage of minority population within 3-mile radius.\n- NONE = 0%\n- GT5 = greater than 5%\n- GT10 = greater than 10%\n- GT25 = greater than 25%\n- GT50 = greater than 50%\n- GT75 = greater than 75%","type":"string","enum":["NONE","GT5","GT10","GT25","GT50","GT75"]},"p_pd":{"description":"Population Density Limiter (per sq mile). Enter a value to limit results to facilities located in area of a given population density.\n- NONE = 0 population density per square mile\n- GT100 = More than 100 population density per square mile\n- GT500 = More than 500 population density per square mile\n- GT1000 = More than 1000 population density per square mile\n- GT5000 = More than 5000 population density per square mile\n- GT10000 = More than 10000 population density per square mile\n- GT20000 = More than 20000 population density per square mile","type":"string","enum":["NONE","GT100","GT500","GT1000","GT5000","GT10000","GT20000"]},"p_ico":{"description":"Indian Country Flag. Enter a \"Y\" or \"N\" to restrict searches to facilities inside or outside Indian Country.","type":"string","enum":["Y","N"]},"p_huc":{"description":"2-, 4-, 6-, or 8-character watershed code. May contain multiple comma-separated values.","type":"string"},"p_pid":{"description":"Nine-digit permit IDs. May contain up to 2000 comma-separated values.","type":"string"},"p_med":{"description":"Filter Results by Media.- A = Air- C = CAMD (Clean Air Markets Division)- E = EIS (Emissions Inventory Systems)- G = GHG (Greenhouse Gases)- M = RMP (Risk Management Plan)- R = RCRA (Hazardous Waste)- S = SDWA (Public Drinking Water Systems)- T = TRI (Toxic Release Inventory)- TSCA = TSCA (Toxic Substances Control Act)- W = Water- ALL = Air and Water and RCRA","type":"string","enum":["A","C","E","G","M","R","S","T","TSCA","W","ALL"]},"p_istatute":{"description":"For use in identifying Facilities that have an inspection performed under the entered Statute.","type":"string"},"p_ysl":{"description":"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.\n- W = within date range\n- N = not within date range","type":"string","enum":["W","N","NV"]},"p_ysly":{"description":"Number of years (1 to 5) since last facility inspection. A value of 1 means that it has been inspected within the year.","type":"number","enum":[1,2,3,4,5]},"p_ysla":{"description":"Facility Last Inspection Code Filter. If left blank, both agencies are included. Enter a value to limit results:\n- E = EPA\n- S = State","type":"string","enum":["E","S","A"]},"p_qs":{"description":"Quick Search. Allows entry for city, state, and/or zip code.","type":"string"},"p_sfs":{"description":"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.","type":"string"},"p_tribeid":{"description":"Numeric code for tribe (or list of tribes).","type":"number"},"p_tribename":{"description":"Tribe Name Filter. Enter a single tribe name to filter results.","type":"string"},"p_tribedist":{"description":"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.","type":"number"},"p_wbd":{"description":"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.","type":"string"},"p_fntype":{"description":"Controls type of text search performed on facility name with parameter p_fn.\n- EXACT = Find facilities having the exact provided name(s).\n- BEGINS = Find facilities with names starting with the provided term(s).\n- ALL = Find facilities using Oracle text search terms.\n- CONTAINS = ","type":"string","enum":["ALL","CONTAINS","EXACT","BEGINS"]},"p_icoo":{"description":"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.","type":"string"},"p_fac_icos":{"description":"FRS tribal land spatial flag. Enter \"Y\" or \"N\" to include or exclude facilities based on FRS tribal land spatial flag.","type":"string"},"p_ejscreen":{"description":"Enter \"Y\" to limit facilities to Census block groups where one of more Environmental Justice indexes above 80th percentile.","type":"string"},"p_limit_addr":{"description":"Limit Address Search Flag. Enter Y to restrict facility searches to native data source only. ","type":"string","enum":["Y","N"]},"p_lat":{"description":"Latitude location in decimal degrees.","type":"number"},"p_long":{"description":"Longitude location in decimal degrees.","type":"number"},"p_radius":{"description":"Spatial Search Radius. Enter a radius up to 100 miles in which to spatially search for facilities.","type":"number"},"p_ejscreen_over80cnt":{"description":"The number of Environmenmt Justice Indicators above the 80th percentile. Valid values are 1 through 11.","type":"string","enum":["1","2","3","4","5","6","7","8","9","10","11"]},"p_agoo":{"description":"Indicates whether to AND or OR the Owner/Operator parameter (p_owop) and the federal agency code (p_fa) parameters.","type":"string","enum":["AND","OR"]},"p_neiu":{"type":"string"},"responseset":{"description":"Response Set Limiter. Enter a value to limit the number of records per page. Value cannot exceed 1,000.","type":"number"},"call