---
title: "forecast front"
method: GET
path: "/forecast/{ip}"
tags: ["front"]
---

# forecast front

`GET /forecast/{ip}`

Retrieve weather forecast for given IP

## Path parameters

- `ip` string, ip, required

## Response `200`

OK response.

- Forecast
  - `location` Location, required — Geographical location
    - `city` string, required — City
    - `lat` number, double, required — Latitude
    - `long` number, double, required — Longitude
    - `state` string, required — State
  - `periods` Period[], required — Weather forecast periods
    - `endTime` string, date-time, required — End time
    - `name` string, required — Period name
    - `startTime` string, date-time, required — Start time
    - `summary` string, required — Summary
    - `temperature` integer, required — Temperature
    - `temperatureUnit` string, required — Temperature unit

## Other responses

- `400` — Bad Request response.

---

[API](https://skmtc.dev/goadesign/apis/weather-forecast-service-api.md) · [All operations](https://skmtc.dev/goadesign/apis/weather-forecast-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/goadesign/weather-forecast-service-api/revisions/759043834b50/schema)
