# MeteoSwiss Station Measurements API (`loudtzu/meteoswiss-station-measurements`) Actor

Current-day MeteoSwiss automatic weather station measurements: temperature, precipitation, humidity, wind, sunshine and pressure per station timestamp (hourly or 10-minute). Attribution included. Missing values stay null.

- **URL**: https://apify.com/loudtzu/meteoswiss-station-measurements.md
- **Developed by:** [LOUDTZU TZULOUD](https://apify.com/loudtzu) (community)
- **Categories:** Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.90 / 1,000 data results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## 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

## MeteoSwiss Station Measurements

Private beta. Official public endpoints only; no signup, external API key, proxy or browser. No personal data.

### What it returns

One record per station timestamp: station code/name, coordinates, temperature °C, precipitation mm, humidity %, wind speed/gust km/h, wind direction degrees, sunshine minutes, pressure hPa and attribution. Null means missing, never zero-filled. Hourly measurements describe the source hourly aggregates; 10-minute measurements use the corresponding source parameters. Source timestamps are UTC. This is measurement data, not forecasts or warnings.

### Input and limits

`stations`: 1–5 three-letter codes, default `["ABO"]` (Adelboden). `resolution`: `h` hourly (default), or `t` ten-minute. `maxItems`: 1–50,000, default 100. Each station's current-day `_now.csv` only; no historical, recent-year or full-network pull. Results are newest-first per station; input station order controls which station fills the result cap. This can stop before later stations. Station name and coordinates come from STAC metadata.

Example: `{"stations":["ABO"],"resolution":"h","maxItems":100}`.

### Licence and live terms

Attribution: **Source: MeteoSwiss**. CC BY 4.0. CSV columns are renamed/typed without changing underlying values. Independent; no endorsement implied.
https://opendatadocs.meteoswiss.ch/general/terms-of-use
https://opendatadocs.meteoswiss.ch/a-data-groundbased/a1-automatic-weather-stations
https://www.geo.admin.ch/en/general-terms-of-use-fsdi

Checked live 2026-11-05 (America/Halifax): commercial sharing and processing permitted with source attribution. Documentation expressly supports automatic per-station files through the public STAC API. FSDI requires fair use (general REST limit 40 requests/minute); Actor uses at most ten sequential metadata/file requests per run with a five-station maximum; two-second spacing between stations. No high-frequency repeated downloads. No warnings are republished.

### Rivals (checked 2026-11-05)

Live Store query `meteoswiss`: **2 hits**; all returned matches are included below, including unrelated search matches. Prices are USD per event/result as listed; tier plan names are Apify customer plans. A missing start event is shown as “none listed”, not inferred from other charges. Ancillary events are labelled by their event keys; they are not equivalent data-result prices.

| Rival | Plan | Result / other event prices | Start fee | Coverage |
|---|---|---|---|---|
| [opendata-souce2026/swiss-weather-forecast-meteoswiss](https://apify.com/opendata-souce2026/swiss-weather-forecast-meteoswiss) | FREE | `apify-default-dataset-item` $0.001 | `apify-actor-start` $0.00005 | Adjacent, not same data: weather forecasts |
| [opendata-souce2026/swiss-weather-forecast-meteoswiss](https://apify.com/opendata-souce2026/swiss-weather-forecast-meteoswiss) | BRONZE | `apify-default-dataset-item` $0.001 | `apify-actor-start` $0.00005 | Adjacent, not same data: weather forecasts |
| [opendata-souce2026/swiss-weather-forecast-meteoswiss](https://apify.com/opendata-souce2026/swiss-weather-forecast-meteoswiss) | SILVER | `apify-default-dataset-item` $0.001 | `apify-actor-start` $0.00005 | Adjacent, not same data: weather forecasts |
| [opendata-souce2026/swiss-weather-forecast-meteoswiss](https://apify.com/opendata-souce2026/swiss-weather-forecast-meteoswiss) | GOLD | `apify-default-dataset-item` $0.001 | `apify-actor-start` $0.00005 | Adjacent, not same data: weather forecasts |
| [opendata-souce2026/swiss-weather-forecast-meteoswiss](https://apify.com/opendata-souce2026/swiss-weather-forecast-meteoswiss) | PLATINUM | `apify-default-dataset-item` $0.001 | `apify-actor-start` $0.00005 | Adjacent, not same data: weather forecasts |
| [opendata-souce2026/swiss-weather-forecast-meteoswiss](https://apify.com/opendata-souce2026/swiss-weather-forecast-meteoswiss) | DIAMOND | `apify-default-dataset-item` $0.001 | `apify-actor-start` $0.00005 | Adjacent, not same data: weather forecasts |
| [opendata-souce2026/swiss-pollen-data-meteoswiss](https://apify.com/opendata-souce2026/swiss-pollen-data-meteoswiss) | FREE | `apify-default-dataset-item` $0.001 | `apify-actor-start` $0.00005 | Adjacent, not same data: measured pollen |
| [opendata-souce2026/swiss-pollen-data-meteoswiss](https://apify.com/opendata-souce2026/swiss-pollen-data-meteoswiss) | BRONZE | `apify-default-dataset-item` $0.001 | `apify-actor-start` $0.00005 | Adjacent, not same data: measured pollen |
| [opendata-souce2026/swiss-pollen-data-meteoswiss](https://apify.com/opendata-souce2026/swiss-pollen-data-meteoswiss) | SILVER | `apify-default-dataset-item` $0.001 | `apify-actor-start` $0.00005 | Adjacent, not same data: measured pollen |
| [opendata-souce2026/swiss-pollen-data-meteoswiss](https://apify.com/opendata-souce2026/swiss-pollen-data-meteoswiss) | GOLD | `apify-default-dataset-item` $0.001 | `apify-actor-start` $0.00005 | Adjacent, not same data: measured pollen |
| [opendata-souce2026/swiss-pollen-data-meteoswiss](https://apify.com/opendata-souce2026/swiss-pollen-data-meteoswiss) | PLATINUM | `apify-default-dataset-item` $0.001 | `apify-actor-start` $0.00005 | Adjacent, not same data: measured pollen |
| [opendata-souce2026/swiss-pollen-data-meteoswiss](https://apify.com/opendata-souce2026/swiss-pollen-data-meteoswiss) | DIAMOND | `apify-default-dataset-item` $0.001 | `apify-actor-start` $0.00005 | Adjacent, not same data: measured pollen |

### Pricing

**$0.0009 per result, no start fee** (pay-per-event `data-result`). Unique successfully pushed records only. The SDK enforces maxTotalChargeUsd; a cap-stop warning and SUMMARY record are written if it truncates a run.

### Tests and implementation

`python3 -m pytest -q`. Tests cover limits, invalid inputs, UTC timestamps, numeric nulls, clean allowlists, station asset host validation, dataset-specific query parameters, bounded windows, deduplication and charge-cap stopping. Shared adapter core/runtime with Dataset Forge's sibling weather/power Actor; no repeated bulk polling. Original 0.1 cloud smoke: maxItems 50, 256 MB, maxTotalChargeUsd 0.2. Version 0.2 uses the updated maxItems limits and $0.0009/result pricing.

### One-item margin gate

Price $0.0009/result, zero start fee. Gross multiple is `(charged data-result events × $0.0009) / settled run usageTotalUsd`, without deducting the Apify commission, matching QA's gross calculation. A one-item run must cost at most **$0.00024** to meet 3.75×. Builder validation records are retained separately; this is not a claim of independent QA approval.

The maxItems limit is an output cap, not a promise of 50,000 available records: station current-day files remain bounded. No historical or full-network pull was added.

# Actor input Schema

## `maxItems` (type: `integer`):

Maximum unique results emitted. No full pulls.

## `stations` (type: `array`):

1–5 three-letter SwissMetNet station codes; default ABO (Adelboden).

## `resolution` (type: `string`):

h is hourly; t is 10-minute. Current-day files only.

## Actor input object example

```json
{
  "maxItems": 100,
  "stations": [
    "ABO"
  ],
  "resolution": "h"
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `summary` (type: `string`):

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("loudtzu/meteoswiss-station-measurements").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("loudtzu/meteoswiss-station-measurements").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 '{}' |
apify call loudtzu/meteoswiss-station-measurements --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,loudtzu/meteoswiss-station-measurements"
        }
    }
}
```

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/JraenBDOkdfkeCH3u/builds/2Ln8zSLRkFFjCScD1/openapi.json
