# HALOWERK Baltic Land – Latvia Soil pH (0–5 cm)

> HALOWERK Baltic Land – Latvia Soil pH (0–5 cm) is a paid API for AI agents from baltikum.halowerk.com, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-15).

Returns mean SoilGrids pH (H₂O) for the 0–5 cm topsoil layer at a given WGS84 coordinate within Latvia.

## Facts

- Endpoint: POST https://baltikum.halowerk.com/v1/lv-soil-ph
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/halowerk-baltic-land-latvia-soil-ph-0-5-cm-ecff8967
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZZUikXIeC_b2cd22k0KVr

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability halowerk-baltic-land-latvia-soil-ph-0-5-cm-ecff8967 -d '<json body>'
```

Example prompt: What's the topsoil pH (0–5 cm, H₂O) at latitude 56.946 and longitude 24.105 in Latvia? I need the SoilGrids mean value for that point.

## When to prefer this

Choose this endpoint when you need point-level topsoil pH data specifically for locations within Latvia, backed by SoilGrids, and where boundary pre-validation is important to avoid wasted calls. Prefer it over generic global soil APIs when the target location is in Latvia and you want low-cost per-query pricing with automatic coordinate rejection for out-of-bounds points.

## Known failure modes

- Coordinate outside Latvia boundary — request rejected before payment, with a boundary validation error
- Coordinate within European bounding box but outside Latvia polygon — returns a rejection, not a soil value
- Latitude or longitude outside the declared European coverage range (34–72.5°N, -31.5–40.5°E) — schema validation error
- Network or upstream SoilGrids data unavailability — service error response
- Malformed or missing coordinate fields — input validation error

## How this service works

Mean SoilGrids pH in H2O for the 0-5 cm layer. The coordinate is validated against the Natural Earth boundary for Latvia; results outside it are rejected before payment.

## Output

A numeric mean SoilGrids pH value (H₂O scale) for the 0–5 cm topsoil layer at the queried coordinate. Coordinates that fall outside Latvia's Natural Earth boundary are rejected before any payment is charged.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "latitude": {
   "type": "number",
   "maximum": 72.5,
   "minimum": 34,
   "description": "WGS84 latitude inside the published European coverage."
  },
  "longitude": {
   "type": "number",
   "maximum": 40.5,
   "minimum": -31.5,
   "description": "WGS84 longitude inside the published European coverage."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/halowerk-baltic-land-latvia-soil-ph-0-5-cm-ecff8967/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from baltikum.halowerk.com](https://www.zero.xyz/host/baltikum.halowerk.com/llms.txt)
