Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API 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.
openapi: 3.2.0
info:
title: Passage Data — cited environmental limits Fetch 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: Fetch
paths:
/fetch:
get:
operationId: fetch
summary: One document search returned, as text with the url to cite
description: 'limits//: every cited row for that parameter there (at most 60 in the text; `metadata.total` and the JSON pages the text names carry every one). species/[/]: what each species register says, and each register searched that is silent. place/: instruments and parameters held. source/: one instrument''s edition and source. permit/: one US NPDES permit''s limits by outfall.'
parameters:
- name: id
in: query
required: true
schema:
type: string
description: 'An id from /search: limits/CA-QC/copper, species/Myotis lucifugus/CA-ON, place/US-OH, source/ca_mdmer, permit/PA0228061.'
responses:
'200':
description: The document; when no row is held, a document of what was searched with a `refused` block (rows.none_held, designations.none_held)
content:
application/json:
schema:
$ref: '#/components/schemas/Document'
'400':
description: id.missing, id.malformed
content:
application/json:
schema:
$ref: '#/components/schemas/Refused'
'404':
description: document.not_held, permit.not_held
content:
application/json:
schema:
$ref: '#/components/schemas/Refused'
tags:
- Fetch
components:
schemas:
Document:
type: object
required:
- id
- title
- text
- url
properties:
id:
type: string
title:
type: string
text:
type: string
url:
type: string
metadata:
type: object
description: 'type, place, parameter or species, total rows, and `json`: the same rows as JSON'
refused:
type: object
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.