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
{{ message }}
Repository navigation
Commit c7b6446
Browse filesBrowse the repository at this point in the historyBrowse files
Fix README table of contents, heading level and sample output
The table of contents linked "API" to #create-an-instance, an anchor
that does not exist; "Bulk data" was a level-3 heading although it
belongs to the API section; the "Basic Usage" sample output predated
carrier, is_satellite, is_anycast, languages[].code, threat.is_vpn,
threat.blocklists and threat.scores. The sample is now the model
serialized from the 1.1.1.1 test fixture, and languages[].code is listed
with the other recently added fields.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@@ -151,6 +169,7 @@ The following fields were added to the API responses recently and are mapped by
151
169
-`threat.blocklists[].first_seen` – `Blocklist.getFirstSeen()`: the first day the address was seen on that blocklist, as a `YYYY-MM-DD` (UTC) string, or `null` when the feed does not report it.
152
170
-`threat.blocklists[].last_seen` – `Blocklist.getLastSeen()`: the most recent such day, same format, or `null`.
153
171
-`threat.blocklists[].days_seen` – `Blocklist.getDaysSeen()`: the number of days the address was seen on that blocklist, as an `Integer`, or `null`.
172
+
-`languages[].code` – `Language.code()`: the code of the language (`en` for English), or `null` when the API does not send it.
154
173
155
174
#### Connection reuse and HTTP/2
156
175
An `IpdataService` keeps a persistent HTTPS connection pool for as long as it lives. Create one service per process (or one per API key or endpoint), keep it, and reuse it for every lookup: each new service pays a fresh TLS handshake. Requests to api.ipdata.co are multiplexed over HTTP/2 when the platform negotiates it, and fall back to HTTP/1.1 keep-alive otherwise.
0 commit comments