class Ipapi::Client

Defined in:

ipapi.cr

Constant Summary

API_URL = "https://ipapi.co/"

Constructors

Instance Method Summary

Constructor Detail

def self.new(api_key : String | Nil = nil) #

[View source]

Instance Method Detail

def locate(ip_address : String) : Location | Nil #

Location of a specific IP


[View source]
def locate : Location | Nil #

Location of client’s IP


[View source]