fourzerotwo-si Bathing Water API

Bathing Water Quality: Every designated bathing water in England — beaches, lakes and river swimming sites — with its latest classification (excellent to poor), today's pollution-risk forecast and the date of the latest sample.

Operations 3

GET /v1/bathing-water/near Bathing Water Quality: Bathing waters near a point #
GET /v1/bathing-water/site Bathing Water Quality: Bathing water by id #

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/fourzerotwo-si:fourzerotwo-si-bathing-water-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

fourzerotwo-si-bathing-water-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Fourzerotwo Si Bathing Water API
  version: 1.1.0
  contact:
    url: https://fourzerotwo.si
  description: 'Operations tagged bathing-water across 2 of this provider''s published API definitions: openapi.json, fourzerotwo-si-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://fourzerotwo.si
tags:
- name: bathing-water
  description: 'Bathing Water Quality: Every designated bathing water in England — beaches, lakes and river swimming sites — with its latest classification (excellent to poor), today''s pollution-risk forecast and the date of the latest sample.'
paths:
  /v1/bathing-water/near:
    get:
      operationId: bathing_water__near
      summary: 'Bathing Water Quality: Bathing waters near a point'
      description: 'Designated bathing waters within a radius (default 25 km) of a UK postcode or point, nearest first, with classification and pollution risk. Price: $0.002 USDC per call via x402. Free within the daily allowance with a free key.'
      tags:
      - bathing-water
      externalDocs:
        url: https://fourzerotwo.si/apis/bathing-water/near
      parameters:
      - name: postcode
        in: query
        required: false
        description: UK postcode (or give lat and lng)
        schema:
          type: string
          maxLength: 8
        example: BH2 5AA
      - name: lat
        in: query
        required: false
        description: Latitude
        schema:
          type: string
          maxLength: 12
      - name: lng
        in: query
        required: false
        description: Longitude
        schema:
          type: string
          maxLength: 12
      - name: radius_km
        in: query
        required: false
        description: Radius in km (default 25, max 100)
        schema:
          type: integer
        example: 15
      - name: limit
        in: query
        required: false
        description: Max results (default 10)
        schema:
          type: integer
        example: 5
      responses:
        '200':
          description: The data (paid, or free tier).
          content:
            application/json: {}
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
      security:
      - {}
      - freeKey: []
      x-price-usd: '0.002000'
      x-free-tier: free
      x-mcp-tool: bathing-water__near
    servers:
    - url: https://fourzerotwo.si
  /v1/bathing-water/site:
    get:
      operationId: bathing_water__site
      summary: 'Bathing Water Quality: Bathing water by id'
      description: 'One bathing water: classification and year, pollution-risk forecast, latest sample date, water company and profile link. Price: $0.001 USDC per call via x402. Free within the daily allowance with a free key.'
      tags:
      - bathing-water
      externalDocs:
        url: https://fourzerotwo.si/apis/bathing-water/site
      parameters:
      - name: id
        in: query
        required: true
        description: Bathing water id
        schema:
          type: string
          maxLength: 16
        example: ukc2102-03600
      responses:
        '200':
          description: The data (paid, or free tier).
          content:
            application/json: {}
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
      security:
      - {}
      - freeKey: []
      x-price-usd: '0.001000'
      x-free-tier: free
      x-mcp-tool: bathing-water__site
    servers:
    - url: https://fourzerotwo.si
  /v1/bathing-water/search:
    get:
      operationId: bathing_water__search
      summary: 'Bathing Water Quality: Search bathing waters'
      description: 'Find bathing waters by name or district, and/or by classification (e.g. every "poor" site). Price: $0.001 USDC per call via x402. Free within the daily allowance with a free key.'
      tags:
      - bathing-water
      externalDocs:
        url: https://fourzerotwo.si/apis/bathing-water/search
      parameters:
      - name: name
        in: query
        required: false
        description: Site or district name
        schema:
          type: string
          maxLength: 60
        example: Cornwall
      - name: classification
        in: query
        required: false
        description: excellent | good | sufficient | poor | closed
        schema:
          type: string
          maxLength: 12
      responses:
        '200':
          description: The data (paid, or free tier).
          content:
            application/json: {}
        '402':
          $ref: '#/components/responses/PaymentRequired'
        '400':
          $ref: '#/components/responses/Error'
        '404':
          $ref: '#/components/responses/Error'
        '502':
          $ref: '#/components/responses/Error'
      security:
      - {}
      - freeKey: []
      x-price-usd: '0.001000'
      x-free-tier: free
      x-mcp-tool: bathing-water__search
    servers:
    - url: https://fourzerotwo.si
components:
  responses:
    PaymentRequired:
      description: x402 payment required. The body (also base64 in the PAYMENT-REQUIRED header) lists accepted payments.
      headers:
        PAYMENT-REQUIRED:
          schema:
            type: string
          description: Base64 JSON x402 v2 PaymentRequired
      content:
        application/json:
          schema:
            type: object
            properties:
              x402Version:
                type: integer
              error:
                type: string
              accepts:
                type: array
                items:
                  type: object
    Error:
      description: 400 = invalid input, 404 = not found at the source, 502 = the source failed. Never charged.
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
              charged:
                type: boolean
  securitySchemes:
    freeKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: Optional free key (fzt_…) for the free tier.
x-refined-from:
- openapi.json
- fourzerotwo-si-openapi.json