Skip to content
Browse all functions

IP to Geocode

geo/ip2geocode

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.

This function is deprecated and will be removed in a future release.

1 credit per callHTTP APIn8nMake

Looks up a provided IP and returns geo informations.

Try it in the 1001fx app

Run ip2geocode in your browser with your API key – fill the form, click Run and get the answer or the file.

ip2geocode in the 1001fx app: the form with example values
IP to Geocode in the 1001fx app

Endpoint

POSThttps://api.1001fx.com/geo/ip2geocode
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
application/json

Parameters

  • ipstringrequired

    IP to look up.

    Example:
    142.250.184.227

Examples

IP to Geocode

Returns google informations

Input

Expects a json body
{
  "ip": "142.250.184.227"
}

Output · HTTP 200

Response
{
  "result": {
    "ip": "142.250.184.227",
    "latitude": 37.751,
    "longitude": -97.822,
    "country": "United States",
    "countryCode": "US"
  }
}
Show curl command
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"}'

Try ip2geocode now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.018.04.2023created
Ask 1001fx