---
title: "GET /location/ip"
method: GET
path: "/location/ip"
tags: ["location"]
---

# GET /location/ip

`GET /location/ip`

Retrieves the country of the IP address.

## Query parameters

- `ip` string, required — IPv4 or IPv6 address to retrieve the country of.

## Response `200`

OK

- object
  - `country` string, required — Country of the IP address

## Other responses

- `400` — Invalid IP address format.
- `500` — Unexpected error while fetching IP location.

---

[API](https://skmtc.dev/phantombuster/apis/phantombuster-api-v2.md) · [All operations](https://skmtc.dev/phantombuster/apis/phantombuster-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/phantombuster/phantombuster-api-v2/revisions/acf0049d7c7f/schema)
