Digipin

Overview

A small JSON endpoint for current weather, multi-day forecasts, and optional hourly, alerts, AQI, and astronomy.

Endpoint
https://digipin.ca/api/weather

Parameters:
lat, lon (e.g. 18.2279, -63.0557) or country, place
unitsmetric (default) or imperial
ttl — cache seconds (default 600)
days — 1..10 (default 1)
hourly, alerts, aqi, astrotrue|false

Usage

Current conditions (coordinates)
curl "https://digipin.ca/api/weather?lat=18.2279&lon=-63.0557&units=metric"
5-day forecast
curl "https://digipin.ca/api/weather?lat=18.2279&lon=-63.0557&units=metric&days=5"
Hourly + alerts + AQI (today)
curl "https://digipin.ca/api/weather?lat=18.2279&lon=-63.0557&units=metric&hourly=true&alerts=true&aqi=true"
By name + astronomy
curl "https://digipin.ca/api/weather?country=ai&place=North%20Side&units=imperial&astro=true"

Responses include location, current, and forecast (with optional hourly, alerts, astro when enabled).

Contact

Questions? Email contact@digipin.ca

Copied to clipboard.