---
title: "Get public IP address of the server"
method: GET
path: "/platform/public-ip"
tags: ["Platform"]
---

# Get public IP address of the server

`GET /platform/public-ip`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/platform/public-ip`
- Auth: HTTP bearer

## Response `200`

Successfully retrieved public IP address

- PublicIpInfo: Information about a public IP address lookup
  - `error` string, nullable: Error message if IP lookup failed
  - `ip` string, nullable: The public IP address, if successfully retrieved
  - `source` string, nullable: The source service that provided the IP

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions

## Changes

- **2026-09-19** `d926c3701fed`: 1 info
  - added the media type `application/json` for the response with the status `200`
- **2026-04-25** `774be20905f2`: 3 info
  - the endpoint scheme security `bearer_auth` was added to the API
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/platform/public-ip/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
