# Lithuania LHMT Weather Observations (`loudtzu/lithuania-meteo-observations`) Actor

Official hourly weather observations from Lithuanian LHMT stations (api.meteo.lt): temperature, wind, gusts, pressure, humidity, precipitation, snow depth. CC BY-SA, no key, no start fee.

- **URL**: https://apify.com/loudtzu/lithuania-meteo-observations.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

$3.00 / 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

## Lithuania LHMT Weather Observations

Official hourly weather observations from Lithuanian LHMT stations (api.meteo.lt): temperature, wind, gusts, pressure, humidity, precipitation, snow depth. CC BY-SA, no key, no start fee.

### What an AI agent can ask

- "What is the temperature and wind in Vilnius right now?"
- "Did it rain in Klaipėda in the last 24 hours?"
- "Give me the last 6 hours of pressure readings for Kaunas."

Call the Actor with a small JSON input, read the dataset rows, and answer from the fields below. Every row carries its source, licence and attribution, so an agent can cite it.

### Input

- `maxItems` — Maximum number of rows to return and charge (1–50,000, default 100). It is a cap, not a promise that this many rows exist. Default: `100`.
- `stationCodes` — LHMT station codes (lowercase, from https://api.meteo.lt/v1/stations). Examples: "vilniaus-ams" (Vilnius), "kauno-ams" (Kaunas), "klaipedos-ams" (Klaipėda). 1 to 20 codes. Default: `["vilniaus-ams"]`.
- `hoursBack` — Return observations from the last N hours (1–72). One row per station per hour. Default: `6`.

Example input:

```json
{
  "stationCodes": [
    "vilniaus-ams",
    "klaipedos-ams"
  ],
  "hoursBack": 3,
  "maxItems": 10
}
```

Bad input (wrong type, unknown code, out-of-range number) stops the run before any request and charges nothing.

### Output fields

One row per record. Field meanings:

| Field | Meaning |
|---|---|
| `recordId` | Stable unique key for the row (used for de-duplication) |
| `stationCode` | LHMT station code (input selector) |
| `stationName` | Station name as published by LHMT |
| `latitude / longitude` | Station coordinates (WGS84) |
| `observedAt` | Observation hour, ISO 8601 UTC |
| `airTemperatureC` | Air temperature, °C |
| `feelsLikeTemperatureC` | Feels-like temperature, °C |
| `windSpeedMs / windGustMs` | Mean wind and gust, m/s |
| `windDirectionDeg` | Wind direction, degrees from north |
| `cloudCoverPct` | Cloud cover, % |
| `seaLevelPressureHpa` | Sea-level pressure, hPa |
| `relativeHumidityPct` | Relative humidity, % |
| `precipitationMm` | Precipitation in the hour, mm |
| `snowDepthCm` | Snow depth, cm |
| `conditionCode` | LHMT condition code, e.g. "clear", "cloudy", "light-rain" |
| `source`, `attribution`, `licence`, `licenceUrl`, `sourceUrl` | Where the row came from and how to credit it |
| `modifications` | What this Actor changed (renaming, unit labels, filtering) |

Missing source values are `null`, never 0. A `SUMMARY` record in the default key-value store gives `attemptedItems`, `chargedCount`, `chargeCapReached`, `sourceRequests`, `skippedSelectors` (unknown codes) and `upstreamErrors`.

### Source

[LHMT open API](https://api.meteo.lt/) `GET /v1/stations/{code}/observations/{YYYY-MM-DD}` for each selected station and day in the window (at most 4 small requests per station). Measured station observations, not forecasts.

No login, API key, proxy, cookies or personal data. Requests are bounded by the selectors and window above; there is no full-archive pull.

### Licence and terms (checked 2026-11-15)

- [api.meteo.lt terms](https://api.meteo.lt/), live text (Lithuanian): data are provided under **Creative Commons Attribution-ShareAlike 4.0 (CC BY-SA 4.0)** and may be used only for lawful purposes. CC BY-SA 4.0 allows commercial use with attribution and share-alike; every row carries the attribution and licence, and the output dataset stays under CC BY-SA 4.0.
- Rate limits respected: the source allows 180 requests/minute and 20,000/day per IP; this Actor sends at most 80 per run.
- No personal data: stations are official automatic weather stations.

### Pricing

$0.003 per result, **no start fee**, same price on every plan (pay-per-event `data-result`). Only unique delivered rows are charged. If your `maxTotalChargeUsd` limit is reached the run stops, logs a warning and sets `chargeCapReached: true` in SUMMARY.

### Errors and empty results

- Unknown station/law codes are skipped and listed in `skippedSelectors`; other selectors still run.
- Temporary upstream errors (timeouts, 429, 5xx) are retried twice. If every request fails the run fails and nothing is charged.
- If nothing matches the window, the run succeeds with 0 rows, 0 charge and `emptyResult: true`.

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

Every listing returned by the Apify Store searches “meteo.lt” (0 indexed / 0 visible), “Lithuania weather” (0 indexed / 0 visible), “Lithuanian weather” (0 indexed / 0 visible), priced on all six plans from the public Store API. Coverage is each listing's own description; being listed does not mean it serves the same data. No ranking is claimed.

| Rival | Plan | Result/other events | Start fee | Users | Coverage |
|---|---|---|---|---|---|
| none found | – | – | – | – | – |

### Limitations

Data are passed through as published by the source and can be provisional or revised. Not an official warning, legal or safety service.

# Actor input Schema

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

Maximum number of rows to return and charge (1–50,000, default 100). It is a cap, not a promise that this many rows exist.

## `stationCodes` (type: `array`):

LHMT station codes (lowercase, from https://api.meteo.lt/v1/stations). Examples: "vilniaus-ams" (Vilnius), "kauno-ams" (Kaunas), "klaipedos-ams" (Klaipėda). 1 to 20 codes.

## `hoursBack` (type: `integer`):

Return observations from the last N hours (1–72). One row per station per hour.

## Actor input object example

```json
{
  "maxItems": 100,
  "stationCodes": [
    "vilniaus-ams"
  ],
  "hoursBack": 6
}
```

# 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/lithuania-meteo-observations").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/lithuania-meteo-observations").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/lithuania-meteo-observations --silent --output-dataset

```

## MCP server setup

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

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/52qwUN1IHol4CGeo3/builds/C7SXxZG4cRxqnorZx/openapi.json
