Passage Data Check API
The Check API from Passage Data — 1 operation(s) for check.
The Check API from Passage Data — 1 operation(s) for check.
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-check-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 Check 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: Check
paths:
/check:
get:
operationId: check_value
summary: Check a measured value against every cited limit held for it
description: 'Every row find_limits would return, each with a verdict: over (above a ceiling or a band''s top), under (below a floor or a band''s bottom), within, or not_comparable with a `why` (parameter.named_differently, parameter.member_of_sum for a limit on a sum the asked substance is one member of, printed_reference, condition.dependent for a number that holds only at a stated hardness, pH or temperature, value.not_a_number, value.range_of_levels, direction.not_printed, unit.family_mismatch, unit.not_convertible, unit.unrecognised, unit.refused, unit.not_printed). Units convert exactly, in decimal, within a family (µg/L to mg/L) by the engine''s registry; no limit is summed or inferred. Rows come over first, then under, within, not_comparable; `counts` and `not_comparable_by` cover every row, not only the page.'
parameters:
- name: parameter
in: query
required: true
schema:
type: string
description: 'The substance or measure as a regulation names it (copper, ammonia, pH) or its CAS number (7440-50-8). A row held under a longer name holding these words is not compared: ask by that name.'
- name: value
in: query
required: true
schema:
type: string
description: 'The measured value, one decimal number: 0.15, 0,15, 1.5e-3. A result below detection (<0.005), a comma that reads two ways (1,500), an amount below zero and a number past 1e±30 are refused.'
- name: unit
in: query
required: true
schema:
type: string
description: 'The value''s unit: mg/L, µg/L (or ug/L), ng/L, mg/kg, µg/m³, pH ...'
- name: place
in: query
schema:
type: string
description: 'ISO 3166 code: US, US-OH, CA, CA-QC, DE, FR, IT, EU. A place also searches every place above it.'
- name: medium
in: query
schema:
type: string
enum:
- water_discharge
- surface_water
- groundwater
- ambient_air
- air_emission
- sediment
- leachate
- name: statistic
in: query
schema:
type: string
description: daily_max, monthly_avg, instant, composite, ...
- name: max_rows
in: query
schema:
type: integer
minimum: 1
maximum: 200
default: 50
- name: offset
in: query
schema:
type: integer
minimum: 0
default: 0
responses:
'200':
description: Rows with verdicts, or a `refused` block (rows.none_held, parameter.unknown, parameter.ambiguous, place.not_held, unit.refused, unit.unrecognised)
content:
application/json:
schema:
$ref: '#/components/schemas/Check'
'400':
description: parameter.missing, value.missing, value.malformed, value.ambiguous, value.negative, value.out_of_range, unit.missing
content:
application/json:
schema:
$ref: '#/components/schemas/Refused'
tags:
- Check
post:
operationId: check_values
summary: Check a table of measured values against the cited limits held for one place…
description: 'A lab table of up to 200 rows (parameter, value, unit), each answered by check_value itself: its verdicts (over, under, within, not_comparable with a `why`), `counts` and `says`, or its own coded refusal (an unknown parameter, a value below detection such as <0.005, an ambiguous unit). Each held limit is sent once, in `limits`, and each verdict names it by index (`limit`): joined, they are check_value''s row with its `cite`; `compared` keeps the value in the row''s unit and whether that conversion is exact. `searched.parameters` says how each parameter was matched. `summary` counts the rows over a limit, under a floor (and over none), within every limit compared, with limits none of which compares, and refused by code. `max_rows` pages each row''s verdicts (over first); check_value with `offset` gives the rest. Use it instead of one call a row: the door allows 30 calls in 10 seconds.'
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- place
- rows
additionalProperties: false
properties:
place:
type: string
description: 'ISO 3166 code: US, US-OH, CA, CA-QC, DE, FR, IT, EU. One place for the whole table; it also searches every place above it.'
medium:
type: string
enum:
- water_discharge
- surface_water
- groundwater
- drinking_water
- soil
- ambient_air
- air_emission
- sediment
- leachate
statistic:
type: string
description: daily_max, monthly_avg, instant, composite, ...
max_rows:
type: integer
minimum: 1
maximum: 200
default: 50
description: Verdicts returned for each row; its counts cover all.
rows:
type: array
minItems: 1
maxItems: 200
description: The table's rows, in order; the answer keeps the order.
items:
type: object
required:
- parameter
- value
- unit
additionalProperties: false
properties:
parameter:
type: string
description: The substance or measure as a regulation names it (copper, ammonia, pH) or its CAS number.
value:
type:
- number
- string
description: The measured value as the table prints it (0.15, "0,15"). A result below detection ("<0.005") is refused for that row, never compared.
unit:
type: string
description: mg/L, µg/L (or ug/L), ng/L, mg/kg, µg/m³, pH ...
example:
place: CA-QC
medium: water_discharge
rows:
- parameter: copper
value: 0.15
unit: mg/L
- parameter: zinc
value: 0,4
unit: mg/L
- parameter: lead
value: 120
unit: µg/L
responses:
'200':
description: One result a row, in the rows' order, beside the limits they name and a summary; or the call refused once (place.not_held)
content:
application/json:
schema:
$ref: '#/components/schemas/CheckValues'
'400':
description: place.missing, rows.missing, rows.malformed, rows.too_many (over 200), body.malformed
content:
application/json:
schema:
$ref: '#/components/schemas/Refused'
'413':
description: body.too_large
content:
application/json:
schema:
$ref: '#/components/schemas/Refused'
tags:
- Check
components:
schemas:
Check:
type: object
properties:
query:
type: object
searched:
type: object
value:
type: object
properties:
value:
type: string
unit:
type: string
unit_key:
type: string
family:
type:
- string
- 'null'
counts:
type: object
properties:
over:
type: integer
under:
type: integer
within:
type: integer
not_comparable:
type: integer
not_comparable_by:
type: object
additionalProperties:
type: integer
says:
type: string
reads_as:
type: string
total:
type: integer
offset:
type: integer
returned:
type: integer
next_offset:
type:
- integer
- 'null'
rows:
type: array
items:
$ref: '#/components/schemas/Verdict'
refused:
type: object
Refused:
type: object
properties:
refused:
type: object
properties:
code:
type: string
says:
type: string
Verdict:
allOf:
- $ref: '#/components/schemas/Row'
- type: object
properties:
verdict:
type: string
enum:
- over
- under
- within
- not_comparable
why:
type: object
properties:
code:
type: string
says:
type: string
compared:
type: object
properties:
value:
type: string
unit:
type: string
value_in_row_unit:
type: string
exact:
type: boolean
limit:
type: string
limit_unit:
type:
- string
- 'null'
direction:
type: string
Cite:
type: object
properties:
instrument:
type: string
title:
type: string
issuer:
type:
- string
- 'null'
edition:
type:
- string
- 'null'
section:
type:
- string
- 'null'
page:
type:
- integer
- string
- 'null'
quote:
type:
- string
- 'null'
source_url:
type:
- string
- 'null'
source_sha256:
type:
- string
- 'null'
source_status:
type: object
description: 'What the daily edition watch last saw at the source: status unchanged, changed (with changed_on and says: the rows are as read from the edition named, not yet re-read) or not verified; checked is the day.'
properties:
checked:
type: string
status:
type: string
enum:
- unchanged
- changed
- not verified
changed_on:
type: string
says:
type: string
note:
type: string
description: What the register prints beside the value (e.g. a later or earlier value and its date).
table:
type: string
column:
type: string
description: The register column the value sits in (e.g. mcl, mclg).
CheckValues:
type: object
properties:
query:
type: object
searched:
type: object
properties:
places:
type: array
items:
type: string
parameters:
type: object
description: 'Each parameter as typed: how it was matched (parameter_keys, names_matched, match).'
summary:
type: object
properties:
rows:
type: integer
over:
type: integer
under:
type: integer
within:
type: integer
not_comparable:
type: integer
refused:
type: integer
refused_by:
type: object
additionalProperties:
type: integer
says:
type: string
reads_as:
type: string
packed_as:
type: string
sources_searched:
type: array
items:
type: object
description: 'When a row is rows.none_held: the instruments searched for this place and medium, once.'
limits:
type: array
items:
$ref: '#/components/schemas/Row'
results:
type: array
items:
type: object
properties:
index:
type: integer
outcome:
type: string
enum:
- over
- under
- within
- not_comparable
- refused
query:
type: object
value:
type: object
counts:
type: object
not_comparable_by:
type: object
says:
type: string
total:
type: integer
returned:
type: integer
next_offset:
type:
- integer
- 'null'
verdicts:
type: array
items:
type: object
properties:
limit:
type: integer
verdict:
type: string
enum:
- over
- under
- within
- not_comparable
why:
type: object
compared:
type: object
properties:
value_in_row_unit:
type: string
exact:
type: boolean
refused:
type: object
refused:
type: object
Row:
type: object
properties:
parameter:
type: string
parameter_key:
type: string
value:
type: string
value_num:
type:
- number
- 'null'
range:
type:
- array
- 'null'
unit:
type:
- string
- 'null'
statistic:
type:
- string
- 'null'
direction:
type:
- string
- 'null'
kind:
type: string
medium:
type: string
place:
type: array
items:
type: string
conditions:
type: array
items:
type: string
cite:
$ref: '#/components/schemas/Cite'
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.