---
title: "Check a measured value against every cited limit held for it"
method: GET
path: "/check"
---

# Check a measured value against every cited limit held for it

`GET /check`

## Request

- Base URL: `https://passage-data.com/api/v1`
- URL: `https://passage-data.com/api/v1/check`
- Auth: one of:
  - none
  - HTTP bearer
  - API key in header `x-api-key`

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.

## Query parameters

- `parameter` string, required
- `value` string, required
- `unit` string, required
- `place` string
- `medium` 'water_discharge' | 'surface_water' | 'groundwater' | 'ambient_air' | 'air_emission' | 'sediment' | 'leachate'
- `statistic` string
- `max_rows` integer
- `offset` integer

## Response `200`

Rows with verdicts, or a `refused` block (rows.none_held, parameter.unknown, parameter.ambiguous, place.not_held, unit.refused, unit.unrecognised)

- Check
  - `query` object
  - `searched` object
  - `value` object
    - `value` string
    - `unit` string
    - `unit_key` string
    - `family` string, nullable
  - `counts` object
    - `over` integer
    - `under` integer
    - `within` integer
    - `not_comparable` integer
  - `not_comparable_by` object
  - `says` string
  - `reads_as` string
  - `total` integer
  - `offset` integer
  - `returned` integer
  - `next_offset` integer, nullable
  - `rows` Verdict[]
    - `parameter` string
    - `parameter_key` string
    - `value` string
    - `value_num` number, nullable
    - `range` unknown
    - `unit` string, nullable
    - `statistic` string, nullable
    - `direction` string, nullable
    - `kind` string
    - `medium` string
    - `place` string[]
    - `conditions` string[]
    - `cite` Cite
      - `instrument` string
      - `title` string
      - `issuer` string, nullable
      - `edition` string, nullable
      - `section` string, nullable
      - `page` union
        - integer
        - string
      - `quote` string, nullable
      - `source_url` string, nullable
      - `source_sha256` string, nullable
      - `source_status` object: 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.
        - `checked` string
        - `status` 'unchanged' | 'changed' | 'not verified'
        - `changed_on` string
        - `says` string
      - `note` string: What the register prints beside the value (e.g. a later or earlier value and its date).
      - `table` string
      - `column` string: The register column the value sits in (e.g. mcl, mclg).
    - `verdict` 'over' | 'under' | 'within' | 'not_comparable'
    - `why` object
      - `code` string
      - `says` string
    - `compared` object
      - `value` string
      - `unit` string
      - `value_in_row_unit` string
      - `exact` boolean
      - `limit` string
      - `limit_unit` string, nullable
      - `direction` string
  - `refused` object

## Other responses

- `400`: parameter.missing, value.missing, value.malformed, value.ambiguous, value.negative, value.out_of_range, unit.missing

---

[API](https://skmtc.dev/passage-data/apis/passage-data-cited-environmental-limits.md) · [All operations](https://skmtc.dev/passage-data/apis/passage-data-cited-environmental-limits/llms.txt) · [OpenAPI document](https://skmtc.dev/passage-data/apis/passage-data-cited-environmental-limits/revisions/ba066708bf53?raw)
