Kanton Zürich Collector state API

Current MIV collector state.

GitHub OpenAPI

Operations 1

0 of 1 operations are conformant: apis.io called them with no credentials and the responses matched this contract; 1 more answered but could not be checked against a schema. Checked 2026-11-12. how this works · status file

GET /public-service/readCollectorState/{collectorid} Read collector state observed #

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/zh-ch:zh-ch-collector-state-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. See our Privacy Policy and Terms.

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

OpenAPI Specification

zh-ch-collector-state-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Zh Ch Collector state API
  version: 1.1.4
  contact:
    name: Baudirektion Kanton Zürich, Tiefbauamt
    email: kurt.amstad@bd.zh.ch
  license:
    name: No public licensed
  description: 'Operations tagged Collector state across 2 of this provider''s published API definitions: vdp-zh-ch-openapi.json, zh-ch-traffic-counts-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://vdp.zh.ch/pws
tags:
- name: Collector state
  description: Current MIV collector state.
paths:
  /public-service/readCollectorState/{collectorid}:
    get:
      tags:
      - Collector state
      description: Reads the current collector state for collectorId.
      operationId: readCollectorState
      parameters:
      - name: collectorid
        in: path
        description: "Collector ID.\n\n A list of all collectors can be found <a href=\"https://maps.zh.ch/?topic=TBAVMSZH&offlayers=bezirkslabels\" target=\"_blank\">here</a> (prefix with M compared to the IDs from the link, e.g. use M0197 instead of 0197)."
        required: true
        schema:
          type: string
        example: M0197
      responses:
        '200':
          description: Successful operation
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/CollectorState'
        '504':
          description: Token for authentication could not be received
          content:
            application/json: {}
        '404':
          description: No state found for given id
          content:
            application/json: {}
      summary: Read collector state
      x-summary-source: derived
    servers:
    - url: https://vdp.zh.ch/pws
components:
  schemas:
    CollectorState:
      type: object
      properties:
        uID:
          $ref: '#/components/schemas/UniqueID'
        statusTime:
          type: number
          description: The name of the collector.
          format: double
        status:
          type: string
          description: The status of the collector.
          example: ACTIVE
          enum:
          - OK
          - FAILURE
          - OFFLINE
          - INACTIVE
          - IMPORTED
        uid:
          $ref: '#/components/schemas/UniqueID'
      description: Collector state.
    UniqueID:
      required:
      - id
      type: object
      properties:
        id:
          pattern: ^[^#/]+$
          type: string
        sub:
          $ref: '#/components/schemas/UniqueID'
x-refined-from:
- vdp-zh-ch-openapi.json
- zh-ch-traffic-counts-openapi.yml