Open Archives Related API

Related contextual data such as historical weather and census information

GitHub OpenAPI

Operations 2

GET /related/weather.json Historical weather measurements for a date and location #
GET /related/census.json Dutch census data for a place and year #

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/openarchieven-nl:openarchieven-nl-related-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

openarchieven-nl-related-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Open Archives Related API
  version: '1.1'
  description: The Open Archives API provides access to the genealogical dataset of Dutch, Belgian and French archives and associations. It allows searching and retrieving genealogical records, statistical data on archives, source types, event types, family names, first names, professions, as well as related historical data such as weather measurements and Dutch census data. **API calls are throttled per IP address to 4 requests per second**, contact Open Archives to increase this value.
  contact:
    name: Coret Genealogie
    email: api@openarch.nl
  x-rateLimit:
    requestsPerSecond: 4
    scope: ip
servers:
- url: https://api.openarchieven.nl/1.1
  description: Open Archives API server
tags:
- name: Related
  description: Related contextual data such as historical weather and census information
paths:
  /related/weather.json:
    get:
      tags:
      - Related
      operationId: getHistoricalWeather
      summary: Historical weather measurements for a date and location
      description: 'Returns historical weather measurements from the nearest Dutch weather station for the specified date and coordinates. Data sources are the Royal Netherlands Meteorological Institute (KNMI): measurements 1701–1905 and 1901–2014. Note: this endpoint exposes several types of historical datasets, so measurement types and units can vary between records.'
      parameters:
      - name: date
        in: query
        required: true
        description: Date in `YYYY-MM-DD` format.
        schema:
          type: string
          format: date
        example: '1748-12-06'
      - name: longitude
        in: query
        required: true
        description: Longitude used to find the nearest weather station (e.g. 52.1).
        schema:
          type: number
          format: float
        example: 52.1
      - name: latitude
        in: query
        required: true
        description: Latitude used to find the nearest weather station (e.g. 4.3).
        schema:
          type: number
          format: float
        example: 4.3
      - name: lang
        in: query
        required: false
        description: Language code for data labels.
        schema:
          type: string
          enum:
          - nl
          - en
          default: nl
        example: en
      - name: callback
        in: query
        required: false
        description: JavaScript function name for JSONP callback.
        schema:
          type: string
      responses:
        '200':
          description: 'Array of weather measurement objects. Each object represents one measurement set from the nearest station. Fields have a `value` and optionally a `decoded` or `label` sub-field.

            '
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/WeatherMeasurement'
              example:
              - WW:
                  value: GEHBET
                  decoded: geheel betrokken
                T:
                  value: 88.8888888889
                P:
                  value: '29111'
                rijnland: 1
                DD:
                  value: WTN
                YYYYMMDD:
                  value: '17481206'
                STN_LOC:
                  longitude: 52.38
                  latitude: 4.73
                M:
                  value: '1'
                FH:
                  value: '20'
                STN:
                  value: '42'
                STN_URL:
                  value: http://www.knmi.nl/klimatologie/metadata/042_zwanenburg.html
                  label: URL meer informatie over weerstation
                STN_PLACE:
                  value: Zwanenburg
                  label: Plaats
        '400':
          description: Invalid or missing parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalidLang:
                  value:
                    error_code: 4
                    error_description: Invalid lang
                invalidDateSyntax:
                  value:
                    error_code: 29
                    error_description: Invalid date (syntax)
                missingDate:
                  value:
                    error_code: 30
                    error_description: Missing date
                invalidLongitudeSyntax:
                  value:
                    error_code: 31
                    error_description: Invalid longitude (syntax)
                missingLongitude:
                  value:
                    error_code: 32
                    error_description: Missing longitude
                invalidLatitudeSyntax:
                  value:
                    error_code: 33
                    error_description: Invalid latitude (syntax)
                missingLatitude:
                  value:
                    error_code: 34
                    error_description: Missing latitude
        '429':
          description: Too Many Requests — rate limit of 4 requests per second per IP exceeded.
  /related/census.json:
    get:
      tags:
      - Related
      operationId: getCensusData
      summary: Dutch census data for a place and year
      description: 'Retrieves census data for a Dutch place or municipality for the census year nearest to the specified year. Available census years: 1795, 1830, 1840, 1849, 1859, 1869, 1879, 1889, 1899. Data sources: Volkstellingen.nl (DANS) and Gemeentegeschiedenis.nl. Either `place` or `gg_uri` must be provided.'
      parameters:
      - name: year
        in: query
        required: true
        description: 'A year between 1770 and 1980 (inclusive). The nearest available census year will be selected automatically.

          '
        schema:
          type: integer
          minimum: 1770
          maximum: 1980
        example: 1840
      - name: place
        in: query
        required: false
        description: 'Name of the place (case-insensitive). If both `place` and `gg_uri` are provided, only `gg_uri` is used. Either `place` or `gg_uri` is required.

          '
        schema:
          type: string
        example: leiden
      - name: province
        in: query
        required: false
        description: 'Name of the province (case-sensitive) to narrow down place searches. Note: province names are stored as they were at census time, e.g. `Holland`, `Bataafsch Braband`, `Vriesland`.

          '
        schema:
          type: string
        example: Zuid-Holland
      - name: gg_uri
        in: query
        required: false
        description: 'Gemeentegeschiedenis URI (case-sensitive) for the municipality, e.g. `http://www.gemeentegeschiedenis.nl/gemeentenaam/Leiden`. Either `place` or `gg_uri` is required. Approximately 85% of places have been mapped to a Gemeentegeschiedenis URI.

          '
        schema:
          type: string
          format: uri
        example: http://www.gemeentegeschiedenis.nl/gemeentenaam/Leiden
      - name: richness
        in: query
        required: false
        description: 'Level of detail in the response. 1=basic information and population number only, 2=like 1 plus all available census data, 3=like 2 plus aggregated data per province.

          '
        schema:
          type: integer
          default: 1
          enum:
          - 1
          - 2
          - 3
        example: 3
      - name: callback
        in: query
        required: false
        description: JavaScript function name for JSONP callback.
        schema:
          type: string
      responses:
        '200':
          description: 'Census data for up to 10 places plus optional provincial totals. Column fieldnames are prefixed with their original column number to preserve the original ordering.

            '
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CensusResponse'
              example:
                census:
                - population: 37464
                  gg_uri: http://www.gemeentegeschiedenis.nl/gemeentenaam/Leiden
                  name: Leiden
                  province: Zuid-Holland
                  year: 1840
                  table:
                    02 huizen: 6300
                    03 huisgezinnen: 7859
                    04 ongehuwde mannen: 11085
                    05 gehuwde mannen: 5943
                    06 weduwnaars: 578
                    07 mannen: 17606
                    08 ongehuwde vrouwen: 11943
                    09 gehuwde vrouwen: 6034
                    10 weduwen: 1881
                    11 vrouwen: 19858
                    12 inwoners: 37464
                totals:
                  Noord-Braband: 378437
                  Gelderland: 345762
                  Zuid-Holland: 526020
                  Noord-Holland: 443334
        '400':
          description: Invalid or missing parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                invalidYear:
                  value:
                    error_code: 35
                    error_description: Invalid year (>=1770 and =<1980)
                missingYear:
                  value:
                    error_code: 36
                    error_description: Missing required year
                missingPlaceOrUri:
                  value:
                    error_code: 37
                    error_description: Missing required place or gg_uri
                invalidGgUri:
                  value:
                    error_code: 38
                    error_description: Invalid gg_uri (should start with http://www.gemeentegeschiedenis.nl/gemeentenaam/)
        '429':
          description: Too Many Requests — rate limit of 4 requests per second per IP exceeded.
components:
  schemas:
    CensusResponse:
      type: object
      description: Census data for matched places plus optional provincial totals.
      properties:
        census:
          type: array
          description: Up to 10 census records for matching places.
          items:
            type: object
            properties:
              population:
                type: integer
                description: Total population count.
              gg_uri:
                type: string
                format: uri
                description: Gemeentegeschiedenis URI for the municipality.
              name:
                type: string
                description: Place name.
              province:
                type: string
                description: Province name as recorded in the census.
              year:
                type: integer
                description: Actual census year used.
              table:
                type: object
                description: 'Key-value pairs of census data columns. Column keys are prefixed with their original column number (e.g. "02 huizen").

                  '
                additionalProperties:
                  type: integer
        totals:
          type: object
          description: 'Aggregated population totals per province. Only present when `richness=3`.

            '
          additionalProperties:
            type: integer
    WeatherMeasurement:
      type: object
      description: 'One set of historical weather measurements from a Dutch KNMI station. The available fields and units vary by dataset (1701–1905 vs 1901–2014).

        '
      properties:
        YYYYMMDD:
          type: object
          properties:
            value:
              type: string
              description: Date in YYYYMMDD format.
        STN:
          type: object
          properties:
            value:
              type: string
              description: Weather station number.
        STN_PLACE:
          type: object
          properties:
            value:
              type: string
              description: Name of the weather station location.
            label:
              type: string
        STN_URL:
          type: object
          properties:
            value:
              type: string
              format: uri
              description: URL with more information about the weather station.
            label:
              type: string
        STN_LOC:
          type: object
          properties:
            longitude:
              type: number
            latitude:
              type: number
        M:
          type: object
          properties:
            value:
              type: string
              description: Measurement index within the day.
        WW:
          type: object
          properties:
            value:
              type: string
              description: Weather code.
            decoded:
              type: string
              description: Human-readable weather description.
        T:
          type: object
          properties:
            value:
              type: number
              description: Temperature measurement.
        P:
          type: object
          properties:
            value:
              type: string
              description: Air pressure measurement.
        DD:
          type: object
          properties:
            value:
              type: string
              description: Wind direction code.
        FH:
          type: object
          properties:
            value:
              type: string
              description: Wind speed measurement.
        rijnland:
          type: integer
          description: Rijnland indicator flag.
    ErrorResponse:
      type: object
      description: Standard error response returned by all endpoints.
      properties:
        error_code:
          type: integer
          description: Numeric error code identifying the error type.
          examples:
          - 4
        error_description:
          type: string
          description: Human-readable description of the error.
          examples:
          - Invalid lang
      required:
      - error_code
      - error_description