You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the official Java client library for the [IPinfo.io](https://ipinfo.io) IP address API, allowing you to lookup your own IP address, or get any of the following details for an IP:
7
+
7
8
-[IP geolocation data](https://ipinfo.io/ip-geolocation-api) (city, region, country, postal code, latitude and longitude)
8
9
-[ASN information](https://ipinfo.io/asn-api) (ISP or network operator, associated domain name, and type, such as business, hosting or company)
9
10
-[Company data](https://ipinfo.io/ip-company-api) (the name and domain of the business that uses the IP address)
@@ -13,13 +14,14 @@ Check all the data we have for your IP address [here](https://ipinfo.io/what-is-
13
14
14
15
### Getting Started
15
16
16
-
You'll need an IPinfo API access token, which you can get by singing up for a free account at [https://ipinfo.io/signup](https://ipinfo.io/signup).
17
+
You'll need an IPinfo API access token, which you can get by singing up for a free account at [https://ipinfo.io/signup](https://ipinfo.io/signup).
17
18
18
19
The free plan is limited to 50,000 requests per month, and doesn't include some of the data fields such as IP type and company data. To enable all the data fields and additional request volumes see [https://ipinfo.io/pricing](https://ipinfo.io/pricing)
- ErrorResponseException: A runtime exception accessible through the ExecutionException of a future. This exception signals that something went wrong when mapping the API response to the wrapper. You probably can't recover from this exception.
93
-
94
-
- RateLimitedException An exception signalling that you've been rate limited.
94
+
-`ErrorResponseException`: A runtime exception accessible through the
95
+
`ExecutionException` of a future. This exception signals that something went
96
+
wrong when mapping the API response to the wrapper. You probably can't
97
+
recover from this exception.
98
+
-`RateLimitedException` An exception signalling that you've been rate limited.
95
99
96
100
#### Caching
97
101
98
-
This library provides a very simple caching system accessible in `SimpleCache`. Simple cache is an in memory caching system that resets every time you restart your code.
99
-
100
-
If you prefer a different caching methodology, you may use the `Cache` interface and implement your own caching system around your own infrastructure.
102
+
This library provides a very simple caching system accessible in `SimpleCache`.
103
+
Simple cache is an in memory caching system that resets every time you restart
104
+
your code.
101
105
102
-
The default cache length is 1 day, this can be changed by calling the SimpleCache constructor yourself.
106
+
If you prefer a different caching methodology, you may use the `Cache`
107
+
interface and implement your own caching system around your own infrastructure.
103
108
109
+
The default cache length is 1 day, this can be changed by calling the
This library provides a system to lookup country names through ISO2 country codes.
139
+
This library provides a system to lookup country names through ISO2 country
140
+
codes.
131
141
132
-
By default, this translation exists for English (United States). If you wish to provide a different language mapping, just use the following system in the builder:
142
+
By default, this translation exists for English (United States). If you wish to
143
+
provide a different language mapping, just use the following system in the
- This library is thread safe. Feel free to call the different endpoints from different threads.
194
-
- This library uses square's http client. Please refer to their documentation to get information on more functionality you can use.
195
-
209
+
- This library is thread safe. Feel free to call the different endpoints from
210
+
different threads.
211
+
- This library uses square's http client. Please refer to their documentation
212
+
to get information on more functionality you can use.
196
213
197
214
### Other Libraries
198
215
199
-
There are official [IPinfo client libraries](https://ipinfo.io/developers/libraries) available for many languages including PHP, Python, Go, Java, Ruby, and many popular frameworks such as Django, Rails and Laravel. There are also many third party libraries and integrations available for our API.
216
+
There are official [IPinfo client libraries](https://ipinfo.io/developers/libraries) available for many languages including PHP, Python, Go, Java, Ruby, and many popular frameworks such as Django, Rails and Laravel. There are also many third party libraries and integrations available for our API.
0 commit comments