# ドイツ水道工事のお知らせ（ハンブルク／ケルン） (`convivial_beanstalk/germany-water-construction-notices-ja`) Actor

ドイツ（ハンブルク／ケルン）の水道・公共インフラ工事のお知らせを、事業者の公式ページから実行時に取得し、日本語ラベルで統一した構造化フィード。ドイツの告知は時間単位の断水表ではなく、日単位の工事期間のお知らせです。

- **URL**: https://apify.com/convivial_beanstalk/germany-water-construction-notices-ja.md
- **Developed by:** [convivial beanstalk](https://apify.com/convivial_beanstalk) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## ドイツ水道工事のお知らせ（ハンブルク／ケルン）

ドイツの水道・公共インフラ工事のお知らせを、**日本語ラベル**で読める構造化フィードです。

これは [Germany Water Utility Construction Notices](https://apify.com/convivial_beanstalk/germany-water-construction-notices) の日本語版です。両版とも実行のたびに公式ページをその場で取得し、同じスキーマに正規化します。違いは表示層だけです。

- `kind`（工事種別）と `status` は日本語ラベルです（例： 水道工事、下水道工事、予定）。
- `city_ja` に都市名の日本語表記（ハンブルク／ケルン）が入り、`city` には原表記（Hamburg／Köln）が残ります。
- `source_name` は日本語の出典名で、元の表記は `source_name_original` に保持します。
- 住所・通り名・`notes`・`raw_text` はドイツ語の原文のままです。推測で訳すことはしません。

ドイツの事業者は告知を自社サイトでバラバラな形式で公表しており、国全体を束ねたフィードはありません。この Actor は対象ソースを1つのスキーマに束ねます。

### このデータの実態 — 最初にお読みください

ドイツの事業者の告知は、日本の計画断水表のような「何時から何時まで止まる」という予定表ではなく、**工事プロジェクトのお知らせ**です。典型的なレコードは「この通りの、この地区で、この種別の工事が、この日からこの日まで」という形で、**日単位**の期間を持ち、数週間から数年に及ぶこともあります。時間単位の断水時刻が必要な場合、このフィードには含まれません（出典自体が公表していないためです）。

### 対象範囲（v0.1）

- **ハンブルク — ハンブルク水道局（Hamburg Wasser）**（`hamburgwasser.de` の工事一覧）。ページに構造化データ（GeoJSON）が埋め込まれているため、公式の座標も付きます。種別は飲料水工事、下水道工事、基盤更新工事など。
- **ケルン — ラインエネルギー／ラインネット（RheinEnergie / RheinNetz）**（`rheinenergie.com` の工事一覧）。サーバー描画の一覧と件ごとの詳細文から取得します。この一覧は**全媒体**（飲料水・電気・ガス・熱供給・供給網）が対象で、`kind` が各件の媒体を示します。出典は座標を公表していないため、座標は付けません（住所からの推定は決してしません）。

対象範囲は、公式ソースの正規化が済み次第、広げていきます。

### 入力

| フィールド | 型 | 既定値 | 説明 |
| --- | --- | --- | --- |
| `city` | string | `all` | `all`、`hamburg`、または `cologne` |
| `onlyUpcoming` | boolean | `true` | 工事期間がすでに終了したお知らせを除く |

### 出力

各アイテムがお知らせ1件です。

- `id` — 安定した識別子
- `city` — `Hamburg` または `Köln`（原表記）、`city_ja` — ハンブルクまたはケルン
- `kind` — 工事種別の日本語ラベル（例： 水道工事＝飲料水工事、下水道工事、供給網工事）。ドイツ語の原文表記は `notes` と `raw_text` に保持
- `facility_name`、`address` — 通りと地区。出典の表記のまま（ドイツ語）
- `period_start`、`period_end` — ISO 8601（Europe/Berlin のオフセット付き、日精度）
- `status` — 予定（公表済みの予定）
- `lat`、`lng` — 公式ソース自体が座標を公表している場合（ハンブルク）のみ
- `confidence` — 1.0 は出典そのまま。期間が月精度の場合や、一覧と詳細本文で期間が食い違う場合は低くなり、その場合は両方の表記を `notes` に併記
- `source_name`、`source_url` — 公式ページの名称（日本語）とURL。元の名称表記は `source_name_original`
- `checked_at` — この実行で出典を取得した日時

実行サマリー（ソースごとの状態）はキーバリューストアの `SUMMARY` に保存されます。

### 注意

- データはすべて対象事業者の公式な公開ページから取得し、アイテムごとに `source_url` で出典を示します。
- 工事期間は計画であり、事業者によって延長・移動・中止されることがあります。急ぎの確認は必ず公式ソースで行ってください。
- 日時は Europe/Berlin の現地日付です。

# Actor input Schema

## `city` (type: `string`):

取得する都市： 全都市、ハンブルクのみ、またはケルンのみ。

## `onlyUpcoming` (type: `boolean`):

工事期間がすでに終了したお知らせを除きます。

## Actor input object example

```json
{
  "city": "all",
  "onlyUpcoming": true
}
```

# Actor output Schema

## `results` (type: `string`):

データセット内の全お知らせ。

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "city": "all",
    "onlyUpcoming": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("convivial_beanstalk/germany-water-construction-notices-ja").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "city": "all",
    "onlyUpcoming": True,
}

# Run the Actor and wait for it to finish
run = client.actor("convivial_beanstalk/germany-water-construction-notices-ja").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "city": "all",
  "onlyUpcoming": true
}' |
apify call convivial_beanstalk/germany-water-construction-notices-ja --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,convivial_beanstalk/germany-water-construction-notices-ja"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/oe0tbENqVNnCqrqzh/builds/3Dons1iSEXv6qXHiI/openapi.json
