Passage Data Dwc API

The Dwc API from Passage Data — 2 operation(s) for dwc.

GitHub OpenAPI

Operations 2

POST /dwc/map Map a species file's columns to Darwin Core terms #
POST /dwc/archive Build a Darwin Core archive from a species file or a list of names #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/passage-data-com:passage-data-com-dwc-api"
All apis
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.

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

passage-data-com-dwc-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Passage Data — cited environmental limits Dwc 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: Dwc
paths:
  /dwc/map:
    post:
      operationId: map_to_darwin_core
      summary: Map a species file's columns to Darwin Core terms
      description: 'For each column of an occurrence or checklist file: the Darwin Core term, the rule that decided it (header_exact, header_token, header_packed, header_grid) and the alias that matched, or a coded `refused` block saying why it is unmapped. Also names the terms GBIF requires of an occurrence or checklist dataset that no column carries. The header rules of our file-to-archive converter; values are not checked here, and each mapped column names the check its values must still pass.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - columns
              additionalProperties: false
              properties:
                columns:
                  type: array
                  items:
                    type: string
                  minItems: 1
                  maxItems: 500
                  description: The file's header names, in order, exactly as written.
                sample_rows:
                  type: array
                  maxItems: 400
                  items:
                    type:
                    - array
                    - object
                  description: Optional data rows, each an array aligned with columns or an object keyed by header. A column blank in every row is skipped as the converter skips it; a column of distinct codes is named an identifier.
            example:
              columns:
              - nom_latin
              - nom_vernac
              - effectif
              - date
              - x
              - y
              - code_postal
      responses:
        '200':
          description: One entry per column, the GBIF-required terms held and missing, and any ties to settle
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DwcMap'
        '400':
          description: columns.missing, columns.malformed, columns.too_many, sample_rows.malformed, sample_rows.too_large, body.malformed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
        '413':
          description: body.too_large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
      tags:
      - Dwc
  /dwc/archive:
    post:
      operationId: build_dwc_archive
      summary: Build a Darwin Core archive from a species file or a list of names
      description: 'A file this tool reads, sent or fetched from the address given, is read as one dropped on our website: what the read finds (column headings, the shape of its rows, the terms they became, refusal codes) is kept so the reader learns, never the file or its values. Names and contacts are dropped or replaced by a code, and protected species'' locations are made coarser. A species occurrence or checklist file (CSV, TSV, Excel, a zipped shapefile, ...) given as `file_url` (a public https address the door fetches) or `content_base64`, or a list of scientific names (`species`, a checklist), becomes a Darwin Core archive for GBIF: occurrence.txt or taxon.txt, meta.xml and eml.xml, built by the converter behind map_to_darwin_core, which maps every column and checks every value. The zip comes back whole in `archive.base64`, with each thing the converter would not guess coded in `could_not_read` (the same lines ship inside the archive as passage-data-exceptions.csv and .json). GBIF indexes an archive only with a title, an abstract, a licence and a creator and a contact (given name, surname, organisation, email): give them in `metadata`; nothing is filled in. `chapman_category` (1-4, the data holder''s own Chapman 2020 category) coarsens the coordinates of species a conservation register lists. `columns` names the column for a term where your user decided; the values are still checked. With `columns_confirmed_by_user: true` (your user confirmed every entry) each confirmed column''s words and term, never a value, are also read as a label to teach the converter, said in `learned`. A large file takes up to a minute.'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                file_url:
                  type: string
                  description: A public https address of the file (at most 10 MB). Not with content_base64 or species.
                content_base64:
                  type: string
                  description: The file's bytes as base64 (at most 10 MB decoded). Not with file_url or species.
                filename:
                  type: string
                  maxLength: 200
                  description: The file's name with its extension (survey.xlsx, sites.zip); taken from file_url when omitted.
                species:
                  type: array
                  minItems: 1
                  maxItems: 5000
                  items:
                    type: string
                  description: 'Instead of a file: scientific names, one an entry, for a checklist archive.'
                core:
                  type: string
                  enum:
                  - occurrence
                  - checklist
                  description: occurrence (the default for a file) or checklist (the default for species).
                metadata:
                  type: object
                  additionalProperties: false
                  properties:
                    title:
                      type: string
                    abstract:
                      type: string
                    license:
                      type: string
                      enum:
                      - CC0-1.0
                      - CC-BY-4.0
                      - CC-BY-NC-4.0
                    creator:
                      $ref: '#/components/schemas/Party'
                    contact:
                      $ref: '#/components/schemas/Party'
                chapman_category:
                  type: integer
                  minimum: 1
                  maximum: 4
                  description: 'Your sensitivity category under Chapman 2020: listed species'' coordinates generalised to its grid, said in dataGeneralizations.'
                columns:
                  type: object
                  additionalProperties:
                    type: string
                  description: '{Darwin Core term: column} where your user decided. A choice, not an order: the values are still checked.'
                columns_confirmed_by_user:
                  type: boolean
                  description: 'true only when your user confirmed every entry of `columns`: their words and terms are then kept to teach the converter.'
            example:
              file_url: https://static.data.gouv.fr/resources/inventaire-faune-flaure/20160718-175427/Inventaire_Faune_Flore.csv
              metadata:
                title: Inventaire de la faune et de la flore le long du fuseau du Grand Paris Express
                abstract: '...'
                license: CC-BY-4.0
                creator:
                  given: '...'
                  sur: '...'
                  organization: '...'
                  email: '...'
                contact:
                  given: '...'
                  sur: '...'
                  organization: '...'
                  email: '...'
      responses:
        '200':
          description: The archive (base64) and its receipt, what could not be read, notices
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DwcArchive'
        '400':
          description: source.missing, source.ambiguous, file.ambiguous, file.malformed, file.url_refused, filename.malformed, species.malformed, species.too_many, species.not_occurrences, core.malformed, chapman_category.malformed, metadata.malformed, license.unrecognised, columns.malformed, columns.term_unknown, body.malformed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
        '402':
          description: 'archive.priced: past the free conversion allowance (about 50,000 records)'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
        '413':
          description: file.too_large, body.too_large
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
        '422':
          description: 'archive.not_built: the converter''s own reason (no species name reached the archive, ...); file.unreachable: the file_url did not answer with the file'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
        '429':
          description: 'engine.busy: the converter''s per-caller budget'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
        '503':
          description: 'engine.unreachable, engine.timeout: the converter did not answer'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Refused'
      tags:
      - Dwc
components:
  schemas:
    Refused:
      type: object
      properties:
        refused:
          type: object
          properties:
            code:
              type: string
            says:
              type: string
    DwcMap:
      type: object
      properties:
        rules:
          type: object
        scope:
          type: string
        columns:
          type: array
          items:
            $ref: '#/components/schemas/DwcColumn'
        summary:
          type: object
        questions:
          type: array
          items:
            type: object
        required:
          type: object
          properties:
            occurrence:
              type: object
            checklist:
              type: object
        refused:
          type: object
    Party:
      type: object
      additionalProperties: false
      description: GBIF needs given, sur, organization and email.
      properties:
        given:
          type: string
        sur:
          type: string
        organization:
          type: string
        email:
          type: string
        position:
          type: string
        country:
          type: string
        url:
          type: string
    DwcColumn:
      type: object
      properties:
        header:
          type: string
        status:
          type: string
          enum:
          - mapped
          - refused
          - empty
          - unmapped
        term:
          type:
          - string
          - 'null'
        terms:
          type: array
          items:
            type: string
        rule:
          type: string
          enum:
          - header_exact
          - header_token
          - header_packed
          - header_grid
        evidence:
          type: object
          properties:
            alias:
              type: string
            alias_rank:
              type:
              - integer
              - 'null'
            alias_origin:
              type:
              - string
              - 'null'
              enum:
              - standard
              - ours
              - learned
              - wikidata
              - null
            table:
              type: string
            also_nominated:
              type: array
              items:
                type: string
        values_check:
          type: object
          properties:
            check:
              type: string
            run_here:
              type: boolean
            says:
              type: string
        named:
          type: string
        refused:
          type: object
          properties:
            code:
              type: string
            says:
              type: string
    DwcArchive:
      type: object
      properties:
        archive:
          type: object
          properties:
            filename:
              type: string
            bytes:
              type: integer
            sha256:
              type: string
            core:
              type: string
            records:
              type: integer
            rows_in:
              type: integer
            rows_lost:
              type: integer
            rows_refused:
              type: integer
            terms:
              type: array
              items:
                type: string
            extensions:
              type: array
              items:
                type: string
            members:
              type: array
              items:
                type: object
                properties:
                  name:
                    type: string
                  bytes:
                    type: integer
            publishable:
              type: object
              properties:
                ok:
                  type: boolean
                missing:
                  type: array
                  items:
                    type: string
                says:
                  type: string
            generalised:
              type:
              - object
              - 'null'
            inline:
              type: boolean
            base64:
              type: string
        could_not_read:
          type: object
          properties:
            n:
              type:
              - integer
              - 'null'
            vocabulary:
              type: string
            items:
              type: array
              items:
                type: object
                properties:
                  code:
                    type: string
                  scope:
                    type: string
                  about:
                    type: string
                  n_rows:
                    type:
                    - integer
                    - string
                    - 'null'
                  status:
                    type: string
                  what_it_means:
                    type: string
                  what_we_saw:
                    type: string
        notices:
          type: array
          items:
            type: string
        says:
          type: string
        kept:
          type: string
        engine:
          type: object
          properties:
            upload_id:
              type: string
            seconds:
              type: number
        refused:
          type: object
  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.