Tilth
Tilth offers free, daily UK fertiliser price data for nine grades, exposing latest price estimates, historical estimate series, forecast error (divergence) time‑series, curated weekly/monthly price series, market‑wide overview aggregates, product‑specific narrative facts, and rebased comparisons against the official DEFRA index.
Latency
2541ms p95
Uptime
100.0% 30d
Playground
Verified
live
Endpoints
/api/v1/fertiliser
`GET /api/v1/fertiliser` — latest estimate per product with track record. Mounted by [`crate::gb`].
/api/v1/fertiliser/divergence
`GET /api/v1/fertiliser/divergence`: per-day forward-error time series for one or all grades. Shows how far the daily estimate was from the next weekly market print.
/api/v1/fertiliser/estimates/history
`GET /api/v1/fertiliser/estimates/history?product=X` — recent estimate history for one product (the "nowcast line"), newest-first, capped at 400 rows (covers 13+ months at daily cadence; was 70, sized for the old weekly-only cadence). Mounted by [`crate::gb`].
/api/v1/fertiliser/narrative
`GET /api/v1/fertiliser/narrative?product=AN_UK` - ranked market facts for the product's SEO narrative and authoritative display range. Both are COMPUTED here (`fertiliser_facts`); the marketplace only renders them. Empty `facts` and a null `display_range` are returned for an unknown/data-less product.
/api/v1/fertiliser/official-index-comparison
`GET /api/v1/fertiliser/official-index-comparison?product=AN_UK`: rebased overlay of the daily forecast vs the official DEFRA index. Consistency + lead-time only; no accuracy percentage (spec R1). Mounted by [`crate::gb`].
/api/v1/fertiliser/overview
`GET /api/v1/fertiliser/overview` - the market-wide weekly aggregate for the hub page (how many grades rose, the biggest mover). Aggregate market claim, computed here.
/api/v1/fertiliser/series
`GET /api/v1/fertiliser/series?product=AN_UK&cadence=weekly` — that product's curated AHDB price series (date + price + cadence), newest-first, capped at 70 prints (≈16 months of weekly — enough for a 1-year window plus a 1-year-ago comparison). `cadence` defaults to `weekly`; only `weekly` and `monthly` are accepted (any other value is a 400). Mounted by [`crate::gb`].
7 endpoints auto-detected
curl -X GET \ "https://www.tilth.uk/data/api/v1/fertiliser"
www.tilth.uk · HTTPS only