---
title: "GeoIP lookup"
method: GET
path: "/api/geoip"
tags: ["geoip"]
---

# GeoIP lookup

`GET /api/geoip`

Server-side proxy for ipapi.co's IP geolocation lookup, used by the Timezone/GeoLocation "Lookup"/"Detect" buttons on settings.php. ipapi.co does not send Access-Control-Allow-Origin, so the browser can't call it directly from FPP's UI (blocked by the Same Origin Policy) - PHP isn't subject to that, so we fetch it here and hand back the same JSON.

## Response `200`

ipapi.co's JSON response, passed through unmodified

- object

## Other responses

- `502` — Lookup failed

---

[API](https://skmtc.net/falconchristmas/apis/fpp-api.md) · [All operations](https://skmtc.net/falconchristmas/apis/fpp-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/falconchristmas/fpp-api/versions/6fa524e15dd4/schema)
