{"openapi":"3.1.0","info":{"title":"NPDES Permit Renewal Sentinel","version":"0.1.0","description":"For any NPDES permit number: the expiration date on file with EPA, the last day to send the renewal application, whether that date binds or the State's own rule governs, the days left, and the published status once the term has ended.","termsOfService":"https://npdes.amacunia.fr/terms","contact":{"name":"amacunia.fr","email":"contact@amacunia.fr","url":"https://npdes.amacunia.fr/"},"license":{"name":"U.S. Government work, public domain (17 U.S.C. 105; EPA Standard Open Data License)","url":"https://edg.epa.gov/EPA_Data_License.html"},"x-guidance":"NPDES Permit Renewal Sentinel. For any NPDES permit number: the expiration date on file with EPA, the last day to send the renewal application, whether that date binds or the State's own rule governs, the days left, and the published status once the term has ended.\nPayment: x402 version 2, USDC, network eip155:8453. Call a paid operation without payment to get the 402 challenge (PAYMENT-REQUIRED header), then retry with PAYMENT-SIGNATURE. Errors and invalid input are never charged.\nFree trial on /v1/npdes-permit: add free_trial=1 (3 calls per day per caller). Without it the route always answers 402.\nFree sample: https://npdes.amacunia.fr/v1/exemple. MCP server: https://npdes.amacunia.fr/mcp. Rules and sources: https://npdes.amacunia.fr/rules. Full guide: https://npdes.amacunia.fr/llms.txt."},"paths":{"/v1/npdes-permit":{"get":{"summary":"NPDES discharge permit: renewal application deadline","operationId":"npdes_permit_v1_npdes_permit_get","parameters":[{"name":"permits","in":"query","required":true,"description":"1 to 10 NPDES permit numbers (9 ASCII letters or digits each, for example NH0100013), comma-separated","schema":{"type":"string","pattern":"^[A-Za-z0-9]{9}( *, *[A-Za-z0-9]{9}){0,9}$"},"example":"NH0100013"},{"name":"free_trial","in":"query","required":false,"description":"Set to 1 to ask for the free trial (3 calls per day per caller). Without it the route always answers 402 until a payment is presented.","schema":{"type":"string","enum":["1"]}}],"responses":{"200":{"description":"The answer. Charged only when the status is below 400.","content":{"application/json":{"schema":{"type":"object","properties":{"results":{"type":"array","description":"One entry per permit number, in input order","items":{"type":"object","required":["permit_id","found","state","permit_type_code","permit_type","echo_status_code","echo_status","issuing_agency_code","issuing_agency","issued_by_epa","facility_type","effective_date","expiration_date","termination_date","application_due","application_due_per_regulation","later_reading_next_working_day","due_is_binding","due_basis","days_to_application_due","days_past_application_due","days_to_expiration","days_past_expiration","administratively_continued_per_echo","term_exceeds_five_years","conflicts","official_record_url","as_of","time_zone","time_zone_known"]}},"consequences":{"type":"object","description":"What the cited law says of discharging without a permit in force, with its references"},"conflicts":{"type":"object","description":"The official texts that disagree, each flagged by name"},"rules":{"type":"array","description":"The rules read at the source, each with its id, url and whether it was applied"},"data":{"type":"object","description":"The source data: what it is, its date, when it was downloaded, and the fields used"},"note":{"type":"string","description":"How to read the deadline fields of each result"},"disclaimer":{"type":"string","description":"Information only, not legal advice, and not affiliated with any agency"},"licence":{"type":"object","description":"The license under which the source data is published"}},"required":["results","consequences","conflicts","rules","data","note","disclaimer","licence"]},"example":{"results":[{"permit_id":"NH0100013","found":true,"state":"before_application_deadline","permit_type_code":"NPD","permit_type":"NPDES Individual Permit","echo_status_code":"EFF","echo_status":"Effective","issuing_agency_code":"EP6","issuing_agency":"U.S. EPA","issued_by_epa":true,"facility_type":"POTW","effective_date":"2024-07-01","expiration_date":"2029-06-30","termination_date":null,"application_due":"2028-12-31","application_due_per_regulation":"2029-01-01","later_reading_next_working_day":"2029-01-02","due_is_binding":true,"due_basis":"40 CFR 122.21(d)(1)","days_to_application_due":771,"days_past_application_due":null,"days_to_expiration":952,"days_past_expiration":null,"administratively_continued_per_echo":null,"term_exceeds_five_years":false,"conflicts":["application_timing"],"official_record_url":"https://echodata.epa.gov/echo/dfr_rest_services.get_dfr?output=JSON&p_id=NH0100013","as_of":"2026-11-21","time_zone":"America/New_York","time_zone_known":true}],"consequences":{"summary":"Discharging a pollutant without a permit in force is unlawful (33 U.S.C. 1311(a)). When EPA is the issuing authority, the conditions of an expired permit continue in force only if a timely and complete application was submitted (40 CFR 122.6(a)); for a State-issued permit, State law decides (40 CFR 122.6(d)). References only: no penalty amount is returned, because the statutory amounts are adjusted every year (40 CFR 19.4).","references":[{"citation":"33 U.S.C. 1311(a)","about":"discharge without a permit is unlawful"},{"citation":"33 U.S.C. 1319(c), (d) and (g)","about":"criminal, civil and administrative penalties"},{"citation":"40 CFR 122.6","about":"continuation of expiring permits"},{"citation":"40 CFR 122.41(b)","about":"duty to reapply"},{"citation":"40 CFR 19.4","about":"yearly adjustment of the penalty amounts"}]},"conflicts":{"application_timing":{"summary":"40 CFR 122.21(d) asks for the new application 180 days before the permit expires (at least 180 days for a POTW). EPA's page \"NPDES Permit Basics\" says a permit can be administratively extended if the facility reapplies more than 180 days before it expires. The two texts differ by one day: application_due is the earlier date, 181 days before expiration; application_due_per_regulation is the date of the regulation, 180 days before.","texts":["40 CFR 122.21(d)(1)","40 CFR 122.21(d)(2)","EPA, NPDES Permit Basics (https://www.epa.gov/npdes/npdes-permit-basics)"]}},"rules":[{"id":"usc33-1342-b1B","url":"https://uscode.house.gov/us/usc/t33/s1342/","status":"applied"},{"id":"cfr122-46-a","url":"https://www.ecfr.gov/api/versioner/v1/full/2026-11-17/title-40.xml?part=122&section=122.46","status":"applied"},{"id":"cfr122-21-d1","url":"https://www.ecfr.gov/api/versioner/v1/full/2026-11-17/title-40.xml?part=122&section=122.21","status":"applied"},{"id":"cfr122-21-d2","url":"https://www.ecfr.gov/api/versioner/v1/full/2026-11-17/title-40.xml?part=122&section=122.21","status":"applied"},{"id":"cfr123-25-a4","url":"https://www.ecfr.gov/api/versioner/v1/full/2026-11-17/title-40.xml?part=123&section=123.25","status":"applied"},{"id":"cfr122-41-b","url":"https://www.ecfr.gov/api/versioner/v1/full/2026-11-17/title-40.xml?part=122","status":"applied"},{"id":"epa-basics-plus-de-180","url":"https://www.epa.gov/npdes/npdes-permit-basics","status":"applied"},{"id":"cfr122-6-a","url":"https://www.ecfr.gov/api/versioner/v1/full/2026-11-17/title-40.xml?part=122&section=122.6","status":"applied"},{"id":"cfr122-6-d","url":"https://www.ecfr.gov/api/versioner/v1/full/2026-11-17/title-40.xml?part=122&section=122.6","status":"applied"},{"id":"cfr124-20","url":"https://www.ecfr.gov/api/versioner/v1/full/2026-11-17/title-40.xml?part=124&section=124.20","status":"applied"},{"id":"usc33-1311-a","url":"https://uscode.house.gov/us/usc/t33/s1311/","status":"applied"},{"id":"usc33-1319-cdg","url":"https://uscode.house.gov/us/usc/t33/s1319/","status":"applied"},{"id":"icis-def-version","url":"https://echo.epa.gov/tools/data-downloads/icis-npdes-download-summary","status":"applied"},{"id":"icis-def-type","url":"https://echo.epa.gov/tools/data-downloads/icis-npdes-download-summary","status":"applied"},{"id":"icis-def-statut","url":"https://echo.epa.gov/tools/data-downloads/icis-npdes-download-summary","status":"applied"},{"id":"icis-def-agence-type","url":"https://echo.epa.gov/tools/data-downloads/icis-npdes-download-summary","status":"applied"},{"id":"icis-def-type-installation","url":"https://echo.epa.gov/tools/data-downloads/icis-npdes-download-summary","status":"applied"},{"id":"icis-def-dates","url":"https://echo.epa.gov/tools/data-downloads/icis-npdes-download-summary","status":"applied"},{"id":"cfr19-4","url":"https://www.ecfr.gov/api/versioner/v1/full/2026-11-17/title-40.xml?part=19&section=19.4","status":"not_applied"},{"id":"cfr122-21-d2i","url":"https://www.ecfr.gov/api/versioner/v1/full/2026-11-17/title-40.xml?part=122&section=122.21","status":"not_applied"},{"id":"cfr122-28-b2iii","url":"https://www.ecfr.gov/api/versioner/v1/full/2026-11-17/title-40.xml?part=122&section=122.28","status":"not_applied"}],"data":{"source":"ICIS-NPDES national data set, U.S. Environmental Protection Agency (ECHO data downloads)","data_date":"2026-11-13","archive_last_modified":"Sun, 15 Nov 2026 10:16:50 GMT","downloaded_at":"2026-11-21T20:12:05Z","refresh":"weekly","fields_used":["EXTERNAL_PERMIT_NMBR","PERMIT_TYPE_CODE","PERMIT_STATUS_CODE","AGENCY_TYPE_CODE","FACILITY_TYPE_INDICATOR","EFFECTIVE_DATE","EXPIRATION_DATE","TERMINATION_DATE","VERSION_NMBR"],"license":"U.S. Government work, public domain (17 U.S.C. 105; EPA Standard Open Data License)","license_url":"https://edg.epa.gov/EPA_Data_License.html"},"note":"application_due is the safe deadline for the renewal application of an individual NPDES permit: 181 days before the expiration date on file, never moved for a weekend or a holiday. application_due_per_regulation is the date of 40 CFR 122.21(d), 180 days before expiration; later_reading_next_working_day, returned for EPA-issued permits only, applies 40 CFR 124.20(c) and is not guaranteed. The deadline binds only when EPA issued the permit (due_is_binding); for a State-issued permit it is the federal default and the State's own rule governs. The permit itself may write its own date for reapplying, which prevails. echo_status and administratively_continued_per_echo repeat the status published by EPA on data.data_date; they are not a legal finding: a permit shown as expired may be continued under State law, and continuation requires a timely and complete application, which the data do not show. Coverage under a general permit is not computed. as_of is the current date in the State named by the first two characters of the permit number, the most advanced one when that State spans several time zones.","disclaimer":"Information only, not legal advice; it does not replace an attorney. Not a consumer report under the FCRA. Not affiliated with or endorsed by EPA or any U.S. government agency. The official EPA and State records, and the permit itself, are authoritative.","licence":{"nom":"U.S. Government work, public domain (17 U.S.C. 105; EPA Standard Open Data License)","url":"https://edg.epa.gov/EPA_Data_License.html","source":"U.S. Environmental Protection Agency, ICIS-NPDES national data set (ECHO data downloads)","attribution":"Source: U.S. EPA, ICIS-NPDES national data set (ECHO). Not affiliated with or endorsed by EPA."}}}}},"400":{"description":"Invalid input. Nothing is charged."},"402":{"description":"Payment Required (x402 version 2). The payment requirements are in the PAYMENT-REQUIRED response header, as base64-encoded JSON: x402Version, resource, accepts[] (scheme \"exact\", network, amount in atomic units of USDC, asset, payTo) and the Bazaar extension with the input and output schemas. Sign the payment and retry the same request with the PAYMENT-SIGNATURE header. A 402 is never charged.","headers":{"PAYMENT-REQUIRED":{"description":"Base64-encoded JSON x402 payment requirements.","schema":{"type":"string"}}}},"503":{"description":"The official source is unreachable. Nothing is charged; retry later."}},"description":"Use this when you need the renewal deadline of a US water discharge permit: for 1 to 10 NPDES permit numbers, the expiration date on file with EPA, the last day to send the renewal application (180 days before expiration, and the safe date one day earlier), whether that date binds (EPA-issued permit) or the State's own rule governs, days left, and the published status once the term has ended. Individual permits only. No facility names, no addresses.","tags":["united-states","npdes","clean-water-act","permit","expiration"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.01"},"protocols":[{"x402":{}}]},"security":[]}},"/health":{"get":{"summary":"Sante","operationId":"sante_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/v1/exemple":{"get":{"summary":"Exemple Gratuit","operationId":"exemple_gratuit_v1_exemple_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}},"security":[]}},"/llms.txt":{"get":{"summary":"Llms","operationId":"llms_llms_txt_get","responses":{"200":{"description":"Successful Response","content":{"text/plain":{"schema":{"type":"string"}}}}},"security":[]}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}},"servers":[{"url":"https://npdes.amacunia.fr"}],"x-free-samples":[{"sample":"/v1/exemple","route":"GET /v1/npdes-permit"},{"sample":"mcp:npdes_permit_example","route":"GET /v1/npdes-permit"}]}