locate_ip | R Documentation |
locate_ip(
ip = NULL,
fields = c("status,message,country,city"),
lang = "en",
...,
tidy = TRUE
)
ip |
String. Either an IPv4 address, IPv6 address or a domain name. If NULL, will use the current IP address. |
fields |
String. Response fields to pass on to the API. |
lang |
String. Response language. An ISO 639 code supported by the API. Defaults to English. |
... |
Query parameters to pass on to the API. |
tidy |
Logical. TRUE to return a tibble. FALSE to return a string. |
For API documentation and terms of service, see ip-api.com.
A string or a tibble.
locate_ip("132.203.167.188")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.