Passage Data Dmr API
The Dmr API from Passage Data — 2 operation(s) for dmr.
The Dmr API from Passage Data — 2 operation(s) for dmr.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/passage-data-com:passage-data-com-dmr-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Passage Data — cited environmental limits Dmr API
version: 1.28.0
summary: Numeric environmental limits and guidelines read from the regulations themselves, every row cited to its source; a species' status under each species register held, cited; a species file's columns mapped to Darwin Core, and the file built into a Darwin Core archive; and a US NPDES permit's monthly report checked against its limits, or computed from the plant's own rows; a published Darwin Core archive's defects, audited; and whether a file's occurrence records publish a listed species at a precision that exposes it.
description: 'Discharge limits and water, groundwater and air quality guidelines from US federal effluent guidelines, the rules of 31 US states and DC, Canadian federal and provincial rules, and German, French, Italian and EU instruments; and the status a species holds under the species registers we hold (US ESA, SARA, COSEWIC, provincial acts, IUCN, CITES, CMS, EU and UK schedules). Every row carries a `cite` block: instrument, edition, section or page, the quoted text, source URL and sha256. An answer with nothing to give is a `refused` block naming what was searched; it is a statement about our sources, not about the law of a place. Also served as an MCP server at https://passage-data.com/mcp, which also lists an account''s own sites (list_sites, create_site, add_document, ask_site): a connector signs in by OAuth 2.1 (metadata at /.well-known/oauth-protected-resource/mcp), or a client sends the account''s key as `Authorization: Bearer pdk_…`; those tools have no HTTP route here. Free while in preview; calls may be rate-limited. Pages are free. Without a key a caller has 100 tool calls a UTC day (then 429 allowance.spent). A free key (an email or Google sign-in, no card: https://passage-data.com/?keys) is sent as Authorization: Bearer pdk_... or x-api-key and carries $10 of calls a month, renewed on the 1st UTC (then 402 credit.spent); GET https://passage-data.com/w/credits/balance with the key shows the month. Paid credit is not open yet.'
servers:
- url: https://passage-data.com/api/v1
security:
- {}
- accountKey: []
- apiKeyHeader: []
tags:
- name: Dmr
paths:
/dmr/check:
post:
operationId: check_dmr
summary: Check a period's DMR values against the permit's own limits
description: 'A US NPDES permit''s Discharge Monitoring Report for one period, checked before it is filed: each value you send (outfall, parameter, statistic, value, unit) is set beside the permit''s own limit for that period, from EPA''s national limits file (ICIS-NPDES), with EPA''s violation rule''s verdict: flagged (EPA records a violation), ok, undecidable (a less-than result against a lower limit: EPA does not flag it, nor does it show compliance), no_data (a NODI code), not_graded (an alert or stayed limit), unreadable. A row we cannot place on one value due is refused by its code (outfall.not_in_permit, parameter.not_limited, statistic.not_limited, unit.not_on_form, period.not_due, row.ambiguous with the candidates), never put on the nearest limit. Every value due this period is in `limits` once with its limit_value_id (the cite into EPA''s file); `not_sent` lists those you did not send, which EPA records as missing (D90) when filed blank. `headline` and `tally` are the forms as filed with exactly the values placed. `netdmr: true` adds the NetDMR "Import DMRs" file as text (not yet validated by NetDMR''s own import check). The values reach our server to be checked and are not kept: only how many were sent, flagged and refused is counted.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- permit
- period_end
- values
additionalProperties: false
properties:
permit:
type: string
description: The NPDES permit number, e.g. PA0228061.
period_end:
type: string
description: 'The reporting period: its month (2026-09) or its last day (2026-09-30). A quarterly form is due on the period ending its quarter.'
values:
type: array
minItems: 1
maxItems: 500
description: The period's values, one a row, as the DMR prints them.
items:
type: object
additionalProperties: false
properties:
outfall:
type: string
description: 'The outfall (permitted feature): 001, 1, 002A ...'
parameter:
type: string
description: 'EPA''s parameter code (get_permit''s parameter_code: 00530, WEP6L) or its name (Solids, total suspended; TSS; ammonia).'
statistic:
type: string
description: EPA's statistical base code (MK, DD, WA, IA ...) or get_permit's words (monthly average, daily maximum, weekly average).
value:
type:
- number
- string
description: 'The number as filed: 12, 0.5, or a censored result as a string: "<0.10".'
qualifier:
type: string
enum:
- <
- <=
- '>'
- '>='
- '='
description: 'Optional: the value''s qualifier, when the value is a bare number.'
unit:
type: string
description: 'The value''s unit, which must be the form''s: mg/L, ug/L, lb/d, MGD, SU, #/100mL ... It separates a concentration from a loading.'
location:
type: string
description: 'Optional: the monitoring location, EPA''s code (1 effluent gross, G raw sewage influent, K percent removal) or its name.'
form:
type: string
description: 'Optional: the DMR form (limit set) when two forms carry the parameter: its designator (A, Q) or name (001 Monthly).'
season:
type: string
description: 'Optional: the limit''s season number when seasonal limits overlap (1, 2).'
nodi:
type: string
description: 'A no-data code in place of a value: C no discharge, B below detection, 9 conditional monitoring ...'
limit_value_id:
type: string
description: 'Optional: the limit''s id from an earlier check_dmr or fill_dmr answer, in place of outfall, parameter, statistic and unit.'
netdmr:
type: boolean
default: false
description: Also return the NetDMR "Import DMRs" file (CSV text) for the values placed.
example:
permit: PA0228061
period_end: 2026-09
values:
- outfall: '001'
parameter: '00530'
statistic: MK
value: 12
unit: mg/L
- outfall: '001'
parameter: pH
statistic: instantaneous maximum
value: 7.4
unit: SU
responses:
'200':
description: Each value beside its limit with EPA's rule's verdict, every value due, the forms' headline and tally
content:
application/json:
schema:
type: object
'400':
description: permit.missing, permit.malformed, period.missing, period.malformed, values.missing, values.malformed, values.too_many, body.malformed
content:
application/json:
schema:
$ref: '#/components/schemas/Refused'
'404':
description: permit.not_held
content:
application/json:
schema:
$ref: '#/components/schemas/Refused'
'413':
description: body.too_large
content:
application/json:
schema:
$ref: '#/components/schemas/Refused'
tags:
- Dmr
/dmr/fill:
post:
operationId: fill_dmr
summary: Compute a period's DMR values from the plant's own monitoring rows
description: 'The numbers a US NPDES permit''s Discharge Monitoring Report asks for in one period, computed from the plant''s own raw results (daily samples, flows): for each value due on the period''s forms (EPA''s national limits file) its statistic as EPA defines it (monthly average, daily maximum, weekly average over EPA''s Sunday-to-Saturday weeks, geometric mean, loadings in lb/d from concentration x flow x 8.34, percent removal), the rows it was computed from, and EPA''s violation rule''s verdict against the limit. A value the rows cannot give is refused with its code (fill.no_column, fill.unit, fill.ambiguous, dmr.nd_rule_missing ...): a number the rows do not hold is never supplied. Send `rows` as JSON (date, parameter, value, unit, point) or `table` as the file''s text (a laboratory''s long export, or a sheet of days with one column per parameter); include the previous month''s last days when a weekly average is due. A result below detection enters an average by `nd_rule` (zero, half, dl, dl_lt), else by the state''s written rule. `netdmr: true` adds the NetDMR "Import DMRs" file as text (not yet validated by NetDMR''s own import check). The rows reach our server to be computed and are not kept: only how many rows were sent and values filled is counted.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- permit
- period_end
additionalProperties: false
properties:
permit:
type: string
description: The NPDES permit number, e.g. PA0228061.
period_end:
type: string
description: 'The reporting period: its month (2026-09) or its last day (2026-09-30).'
rows:
type: array
maxItems: 20000
description: The plant's results, one a row (send rows or table).
items:
type: object
required:
- date
- parameter
- value
additionalProperties: false
properties:
date:
type: string
description: 'The sample''s day: 2026-09-01 or 9/1/2026.'
parameter:
type: string
description: 'As the plant''s log names it: TSS, CBOD5, Ammonia-N, Flow, pH, E. coli, Copper ...'
value:
type:
- number
- string
description: 'The result: 12, or "<0.5" below detection, or "ND" with a detection_limit.'
unit:
type: string
description: 'mg/L, ug/L, MGD, SU, #/100mL ...'
point:
type: string
description: 'Where it was sampled, as the plant names it: Influent, Effluent, Outfall 002 ...'
outfall:
type: string
description: 'Optional: the outfall the sample belongs to, read with the point.'
qualifier:
type: string
description: 'Optional: <, >, or ND.'
detection_limit:
type:
- number
- string
description: 'Optional: the detection or reporting limit of an ND result.'
table:
type:
- string
- array
items:
type: array
description: The plant's file as text (CSV, TSV or semicolons; at most 2000000 characters) or as lines of cells (send rows or table).
nd_rule:
type: string
enum:
- zero
- half
- dl
- dl_lt
description: 'How a result below detection enters an average: as zero, half the limit, the limit (dl), or the limit reported as less-than (dl_lt). Default: the state''s written rule, else none (such a statistic is refused).'
netdmr:
type: boolean
default: false
description: Also return the NetDMR "Import DMRs" file (CSV text) for the values filled.
example:
permit: PA0228061
period_end: 2026-09
nd_rule: half
rows:
- date: '2026-09-01'
parameter: TSS
value: 12
unit: mg/L
point: Effluent
- date: '2026-09-01'
parameter: Flow
value: 0.61
unit: MGD
point: Effluent
responses:
'200':
description: Each value due, computed with the rows it came from and its verdict, or refused with its code
content:
application/json:
schema:
type: object
'400':
description: permit.missing, permit.malformed, period.missing, period.malformed, rows.missing, rows.malformed, rows.too_many, table.malformed, table.too_many, nd_rule.malformed, body.malformed
content:
application/json:
schema:
$ref: '#/components/schemas/Refused'
'404':
description: permit.not_held
content:
application/json:
schema:
$ref: '#/components/schemas/Refused'
'413':
description: table.too_large, body.too_large
content:
application/json:
schema:
$ref: '#/components/schemas/Refused'
tags:
- Dmr
components:
schemas:
Refused:
type: object
properties:
refused:
type: object
properties:
code:
type: string
says:
type: string
securitySchemes:
accountKey:
type: http
scheme: bearer
description: An account key (pdk_...) made at https://passage-data.com/?keys, or an app's OAuth access token (pdo_...).
apiKeyHeader:
type: apiKey
in: header
name: x-api-key
description: The same account key, in its own header.