---
title: "Returns privacy information about the selected IP."
method: GET
path: "/{ip}/privacy"
tags: ["privacy detection"]
---

# Returns privacy information about the selected IP.

`GET /{ip}/privacy`

## Request

- Base URL: `https://ipinfo.io`
- URL: `https://ipinfo.io/{ip}/privacy`
- Auth: one of:
  - HTTP basic
  - HTTP bearer
  - API key in query parameter `token`
- TypeScript: <https://skmtc.dev/ipinfo/apis/ipinfo-io-openapi-specification/docs/:ip/privacy/get.ts> (a function with typed inputs; its response is checked against the schema)

The IP to Privacy Detection or Anonymous IP API provides privacy-related information about a specified IP address.
This includes whether the IP is associated with a VPN, proxy, Tor network, relay service, or a hosting service/data center (indicative of bots).
The response details the privacy status of the IP, indicating any anonymizing services in use and specifies the type of service (e.g., NordVPN, TunnelBear, Mullvad, ProtonVPN, CyberGhost, ExpressVPN, Surfshark etc.).

## Path parameters

- `ip` string, required

## Response `200`

Privacy response.

- PrivacyResponse
  - `vpn` boolean, required
  - `proxy` boolean, required
  - `tor` boolean, required
  - `hosting` boolean, required
  - `relay` boolean, required
  - `service` string, required

## Other responses

- `403`: Unknown token or invalid permission. We return the same error for blocking malicious IP addresses as well.
- `404`: Wrong ip. Please provide a valid IP address.
- `429`: Allocated API rate limit has been reached for the token. The user will be prompted with options to increase their API limit.
- `500`: Internal server error or server unavailable.

---

[API](https://skmtc.dev/ipinfo/apis/ipinfo-io-openapi-specification.md) - [All operations](https://skmtc.dev/ipinfo/apis/ipinfo-io-openapi-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/ipinfo/apis/ipinfo-io-openapi-specification/revisions/c63f11e4f26e?raw)
