class Ipapi::Client
- Ipapi::Client
- Reference
- Object
Defined in:
ipapi.crConstructors
Instance Method Summary
-
#asn(ip_address : String | Nil = nil) : String
Retrive autonomous system number of a specific IP address.
-
#city(ip_address : String | Nil = nil) : String
Retrive city name of a specific IP address.
-
#continent_code(ip_address : String | Nil = nil) : String
Retrive country code (2 letter, ISO 3166-1 alpha-2) of a specific IP address.
-
#country(ip_address : String | Nil = nil) : String
Retrive country code (2 letter, ISO 3166-1 alpha-2) of a specific IP address.
-
#country_area(ip_address : String | Nil = nil) : String
Retrive area of the country (in sq km) of a specific IP address.
-
#country_calling_code(ip_address : String | Nil = nil) : String
Retrive country calling code (dial in code, comma separated) of a specific IP address.
-
#country_capital(ip_address : String | Nil = nil) : String
Retrive capital of the country of a specific IP address.
-
#country_code(ip_address : String | Nil = nil) : String
Retrive country code (2 letter, ISO 3166-1 alpha-2) of a specific IP address.
-
#country_code_iso3(ip_address : String | Nil = nil) : String
Retrive country code (3 letter, ISO 3166-1 alpha-3) of a specific IP address.
-
#country_name(ip_address : String | Nil = nil) : String
Retrive short country name of a specific IP address.
-
#country_population(ip_address : String | Nil = nil) : String
Retrive population of the country of a specific IP address.
-
#country_tld(ip_address : String | Nil = nil) : String
Retrive country specific TLD (top-level domain) of a specific IP address.
-
#currency(ip_address : String | Nil = nil) : String
Retrive currency code (ISO 4217) of a specific IP address.
-
#currency_name(ip_address : String | Nil = nil) : String
Retrive currency name of a specific IP address.
-
#in_eu(ip_address : String | Nil = nil) : String
Retrive whether IP address belongs to a country that is a member of the European Union (EU) of a specific IP address.
-
#ip(ip_address : String | Nil = nil) : String
Retrive public (external) IP address (same as URL
#ip
) of a specific IP address. -
#languages(ip_address : String | Nil = nil) : String
Retrive languages spoken (comma separated 2 or 3 letter ISO 639 code with optional hyphen separated country suffix) of a specific IP address.
-
#latitude(ip_address : String | Nil = nil) : String
Retrive latitude of a specific IP address.
-
#latlong(ip_address : String | Nil = nil) : String
Retrive comma separated latitude and longitude of a specific IP address.
-
#locate(ip_address : String | Nil = nil) : Location | Nil
Retrive the location of a specific IP address.
-
#longitude(ip_address : String | Nil = nil) : String
Retrive longitude of a specific IP address.
-
#org(ip_address : String | Nil = nil) : String
Retrive organization name of a specific IP address.
-
#postal(ip_address : String | Nil = nil) : String
Retrive postal code / zip code of a specific IP address.
-
#region(ip_address : String | Nil = nil) : String
Retrive region name (administrative division) of a specific IP address.
-
#region_code(ip_address : String | Nil = nil) : String
Retrive region code of a specific IP address.
-
#timezone(ip_address : String | Nil = nil) : String
Retrive timezone (IANA format i.e.
-
#utc_offset(ip_address : String | Nil = nil) : String
Retrive UTC offset (with daylight saving time) as
+HHMM
or-HHMM
(HH
is hours,MM
is minutes) of a specific IP address.
Constructor Detail
Instance Method Detail
Retrive autonomous system number of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive city name of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive country code (2 letter, ISO 3166-1 alpha-2) of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive country code (2 letter, ISO 3166-1 alpha-2) of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive area of the country (in sq km) of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive country calling code (dial in code, comma separated) of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive capital of the country of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive country code (2 letter, ISO 3166-1 alpha-2) of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive country code (3 letter, ISO 3166-1 alpha-3) of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive short country name of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive population of the country of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive country specific TLD (top-level domain) of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive currency code (ISO 4217) of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive currency name of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive whether IP address belongs to a country that is a member of the European Union (EU) of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive public (external) IP address (same as URL #ip
) of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive languages spoken (comma separated 2 or 3 letter ISO 639 code with optional hyphen separated country suffix) of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive latitude of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive comma separated latitude and longitude of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive the location of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive longitude of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive organization name of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive postal code / zip code of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive region name (administrative division) of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive region code of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive timezone (IANA format i.e. “Area/Location”) of a specific IP address.
If ip_address
is nil
, use the client's IP.
Retrive UTC offset (with daylight saving time) as +HHMM
or -HHMM
(HH
is hours, MM
is minutes) of a specific IP address.
If ip_address
is nil
, use the client's IP.