# ip2geocode: IP to Geocode

> ip2geocode (IP to Geocode) is a 1001fx API function in the group Geo: POST https://api.1001fx.com/geo/ip2geocode, 1 credit per call. It works as a ready-made module in Make and n8n or as a plain HTTP call.

**Deprecated:** this function will be removed in a future release.

Looks up a provided IP and returns geo informations.

- Group: Geo
- Endpoint: `POST https://api.1001fx.com/geo/ip2geocode`
- Authentication: header `X-API-KEY: YOURSECRETAPIKEY`
- Content type: application/json
- Credits: 1 credit per call
- Ready-made in: Make and n8n
- Docs: https://1001fx.com/functions/ip2geocode

## Parameters

- `ip` (string, required) – IP: IP to look up.

## Example: IP to Geocode

```bash
curl -X POST 'https://api.1001fx.com/geo/ip2geocode' \
  -H 'X-API-KEY: YOURSECRETAPIKEY' \
  -H 'Content-Type: application/json' \
  -d '{"ip":"142.250.184.227"}'
```

Answer (HTTP 200):

```json
{
  "result": {
    "ip": "142.250.184.227",
    "latitude": 37.751,
    "longitude": -97.822,
    "country": "United States",
    "countryCode": "US"
  }
}
```
