zapi.
APIsPricingDocsMCP
APIsPricingDocsMCPSign in
zapi.
APIsPricingDocsMCP
APIsPricingDocsMCPSign in
On this page
  • Playground
  • Code examples
  • Full reference
  • Related APIs
Web Tools/Weather Forecast
Logo Weather Forecast

Weather Forecast

Retrieve current weather conditions and forecast for a geographic location.

Endpoints
1
Requests
7
Updated
3 months ago
For LLMs
llms.txt
Endpoint health9 hours ago
  • forecastpassing, 1.4s
1/1 passingdaily 01:00 WIB

Playground

1 endpoint
GET/v1/web-tools:weather/forecast5m cache3 paramschecking key…
Parameters
latnumberrequired

Latitude (-90..90)

lonnumberrequired

Longitude (-180..180)

daysnumber

Forecast days (1-7). Default 3

·
Response
EXAMPLE
{
  "ok": true,
  "daily": {
    "time": [
      "2026-05-27",
      "2026-05-28",
      "2026-05-29"
    ],
    "precipitation_sum": [
      0,
      0,
      0.7
    ],
    "temperature_2m_max": [
      32.2,
      32.7,
      33.1
    ],
    "temperature_2m_min": [
      24.1,
      22.9,
      23.9
    ]
  },
  "current": {
    "time": "2026-05-27T20:45",
    "interval": 900,
    "weather_code": 0,
    "temperature_2m": 27.6,
    "wind_speed_10m": 4.9,
    "relative_humidity_2m": 82
  },
  "latitude": -6.221441,
  "timezone": "Asia/Jakarta",
  "elevation": 12,
  "longitude": 106.856186,
  "daily_units": {
    "time": "iso8601",
    "precipitation_sum": "mm",
    "temperature_2m_max": "°C",
    "temperature_2m_min": "°C"
  },
  "current_units": {
    "time": "iso8601",
    "interval": "seconds",
    "weather_code": "wmo code",
    "temperature_2m": "°C",
    "wind_speed_10m": "km/h",
    "relative_humidity_2m": "%"
  },
  "generationtime_ms": 0.1575946807861328,
  "utc_offset_seconds": 25200,
  "timezone_abbreviation": "GMT+7"
}

Code examples

Weather Forecast
zpi-sdkrecommended
// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";

const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });

const data = await client.run("web-tools:weather", "forecast", {
  "lat": -6.2088,
  "lon": 106.8456,
  "days": 3
});
console.log(data);
Full SDK reference →
request.sh
curl -X GET "https://api.zpi.web.id/v1/web-tools:weather/forecast?lat=-6.2088&lon=106.8456&days=3" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Full reference

1 endpoint · plain text
GETWeather Forecast/v1/web-tools:weather/forecastGet current and forecast weather data for a location.

Parameters

latnumberrequired
Latitude (-90..90)
lonnumberrequired
Longitude (-180..180)
daysnumberoptional
Forecast days (1-7). Default 3

Request

curl -X GET "https://api.zpi.web.id/v1/web-tools:weather/forecast?lat=-6.2088&lon=106.8456&days=3" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"

Example response

{
  "ok": true,
  "daily": {
    "time": [
      "2026-05-27",
      "2026-05-28",
      "2026-05-29"
    ],
    "precipitation_sum": [
      0,
      0,
      0.7
    ],
    "temperature_2m_max": [
      32.2,
      32.7,
      33.1
    ],
    "temperature_2m_min": [
      24.1,
      22.9,
      23.9
    ]
  },
  "current": {
    "time": "2026-05-27T20:45",
    "interval": 900,
    "weather_code": 0,
    "temperature_2m": 27.6,
    "wind_speed_10m": 4.9,
    "relative_humidity_2m": 82
  },
  "latitude": -6.221441,
  "timezone": "Asia/Jakarta",
  "elevation": 12,
  "longitude": 106.856186,
  "daily_units": {
    "time": "iso8601",
    "precipitation_sum": "mm",
    "temperature_2m_max": "°C",
    "temperature_2m_min": "°C"
  },
  "current_units": {
    "time": "iso8601",
    "interval": "seconds",
    "weather_code": "wmo code",
    "temperature_2m": "°C",
    "wind_speed_10m": "km/h",
    "relative_humidity_2m": "%"
  },
  "generationtime_ms": 0.1575946807861328,
  "utc_offset_seconds": 25200,
  "timezone_abbreviation": "GMT+7"
}

Related APIs

More in web-tools

Jina Reader

web-tools/jina-reader

Convert any webpage ke clean Markdown via Jina Reader — ideal untuk AI/LLM ingestion. Strip nav, ads, scripts; keep title + content.

116 calls·5m cache

Translate

web-tools/translate

Translate text between languages.

109 calls·5m cache

Cek Email Leak

web-tools/cek-email-leak

Cek apakah email kamu pernah bocor dalam data breach — daftar sumber kebocoran, tanggal, data yang bocor, dan jumlah yang terdampak.

26 calls·1h cache

Domain Availability

web-tools/rdap

Check domain registration availability via RDAP protocol.

29 calls·5m cache

BuiltWith Analyzer

web-tools/builtwith

Tech stack detector — framework, CMS, analytics, CDN, dan lainnya.

14 calls·1h cache

Wayback Machine

web-tools/wayback

Lookup archived snapshot dari Internet Archive Wayback Machine — find historical version of any URL by date.

4 calls·5m cache
Browse APIsPricingDocsMCP serverGet an API key
zapi.One key, one response shape.
TermsPrivacyCookiesAUPRefunds© 2026