Weather (Current)

Return current weather conditions for coordinates.

UtilitiesweatherCost: 2 pt
Endpoint
/api/v1/weather?lat=0&lon=0
curl (bash)
curl -H "x-api-key: $APINEST_API_KEY" "/api/v1/weather?lat=0&lon=0"
Windows PowerShell
iwr -Uri "/api/v1/weather?lat=0&lon=0" -Headers @{ "x-api-key" = $env:APINEST_API_KEY } | Select-Object -Expand Content
Node.js example
const res = await fetch("/api/v1/weather?lat=0&lon=0", {
  headers: { "x-api-key": process.env.APINEST_API_KEY! }
})
console.log(await res.json())

Include your API Key via the "x-api-key" header.

Parameters
Query parameters accepted by this endpoint
NameTypeRequiredDefaultDescription
latnumberYes-Latitude
lonnumberYes-Longitude
Status
v1Online