internetdata-web 1.7.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -30,7 +30,7 @@ It runs in Chrome and Edge 109, Firefox 115 ESR and Safari 16.4 or newer. TypeSc
30
30
 
31
31
  ## Usage
32
32
 
33
- **No API key needed to start.** Unlimited, the free plan, answers Tor, relay, bot, anycast, carrier, satellite and the five service flags (SSH, SMTP, web, DNS resolver and BitTorrent), reverse DNS, country-level `location`, `asn`, the company's name and domain and the abuse email, with no daily or monthly cap, with a key or without one. In a page the address calling is the visitor's, so `myIp` tells you about the visitor:
33
+ **No API key needed to try it.** Without one a lookup answers the basics: Tor, relay and anycast, reverse DNS, country-level `location` and `asn`. The address's company and its abuse contact are not among them: they are in a free key's full answers or a paid plan's, and `result.company` and `result.abuse` read empty without one. A free key answers more: every field on its organization's first lookups each UTC day, then the basics. Lookups without a key are limited for each source address, and once they are used up for the UTC day a call fails with `quota_exceeded`. In a page the address calling is the visitor's, so `myIp` tells you about the visitor:
34
34
 
35
35
  ```js
36
36
  import { InternetData } from 'internetdata-web';
@@ -43,12 +43,12 @@ console.log(me.location.country); // where this visitor is
43
43
  const result = await client.lookup('146.70.116.130');
44
44
  console.log(result.isTor); // false
45
45
  console.log(result.location.country); // the ISO 3166 country code
46
- console.log(result.company.name); // who the address belongs to
46
+ console.log(result.asn.name); // the network announcing it
47
47
  ```
48
48
 
49
49
  ### With an API key
50
50
 
51
- Where the key stays private (see above), a paid plan answers every field: `is_vpn`, `is_hosting`, `is_cdn` and the four proxy flags as well, city-level location, the whois records, `user_agent` (whether a user agent you send is borne out by the address: see below) and the detail behind each flag. Its quotas differ only in how many lookups they include, and a free account tries every field. Create a key in the [console](https://app.internetdata.io), then pass it in:
51
+ Where the key stays private (see above), a paid plan answers every field: `is_vpn`, `is_hosting`, `is_cdn`, `is_bot`, `is_carrier`, `is_satellite`, the four proxy flags and the five service flags as well, city-level location, the whois records, `user_agent` (whether a user agent you send is borne out by the address: see below) and the detail behind each flag. Its quotas differ only in how many lookups they include. A free key answers every field on its organization's first lookups each UTC day, then the basics, with `trialExpired` true. Create a key in the [console](https://app.internetdata.io), then pass it in:
52
52
 
53
53
  ```js
54
54
  const client = new InternetData({ apiKey: 'your-api-key' });
@@ -74,7 +74,7 @@ console.log(domain.isRegistered); // true
74
74
  console.log(domain.dns?.mx); // on a paid plan
75
75
  ```
76
76
 
77
- Unlimited answers an AS's registration, and whether a domain is registered and which record types it has. A paid plan adds the AS's whois record, prefixes, rank, Tier 1 flag, upstreams, peers, downstreams and hosted domains, and the domain's records, IP ranges, whether it is disposable, the network behind each of its addresses, the other domains on its first IPv4 address, what its home page says and links to, and the domains whose home pages redirect or link to it. Neither lookup is cached or batched, and `lookup` refuses an AS or a domain before sending it.
77
+ The basics answer an AS's registration, and whether a domain is registered and which record types it has. A paid plan or a free key's full answers add the AS's whois record, prefixes, rank, Tier 1 flag, upstreams, peers, downstreams and hosted domains, and the domain's records, IP ranges, whether it is disposable, the network behind each of its addresses, the other domains on its first IPv4 address, what its home page says and links to, and the domains whose home pages redirect or link to it. Neither lookup is cached or batched, and `lookup` refuses an AS or a domain before sending it.
78
78
 
79
79
  ### Your own address
80
80
 
@@ -87,7 +87,7 @@ It is never cached, since which address the browser is calling from is the quest
87
87
 
88
88
  ### A visitor's user agent
89
89
 
90
- Pass the `User-Agent` of the client you are deciding on, and on a paid plan or the trial the answer's `userAgent` names the agent it claims to be and whether this address bears that out: `verified` when the agent's operator vouches for the address, `spoofed` when it does not, `unverifiable` for a bot nothing can confirm, `not_bot` for a browser, an app or a script. Check for the values you know: one the API adds later comes back as the string it served.
90
+ Pass the `User-Agent` of the client you are deciding on, and on a paid plan or a free key's full answers the answer's `userAgent` names the agent it claims to be and whether this address bears that out: `verified` when the agent's operator vouches for the address, `spoofed` when it does not, `unverifiable` for a bot nothing can confirm, `not_bot` for a browser, an app or a script. Check for the values you know: one the API adds later comes back as the string it served.
91
91
 
92
92
  ```js
93
93
  const result = await client.lookup('66.249.66.1', {
@@ -114,7 +114,7 @@ console.log(ent.usage.requests); // 580
114
114
  console.log(ent.usage.window_end); // when the allowance resets
115
115
  ```
116
116
 
117
- Usage counts against the anniversary of your subscription on a paid plan, not the calendar month and not the billing period; it is the same number a lookup is gated on. `hard_limit` is null on an uncapped plan, which is not the same as zero. It needs a key, so it belongs where a key does.
117
+ Usage counts against the anniversary of your subscription on a paid plan, not the calendar month and not the billing period, and against the UTC day on the free plan; it is the same number a lookup is gated on. `hard_limit` is null on an uncapped plan, which is not the same as zero. It needs a key, so it belongs where a key does.
118
118
 
119
119
  ### Batch lookup
120
120
 
@@ -161,7 +161,7 @@ const client = new InternetData({ cache: { max: 50_000, ttlMs: 6 * 60 * 60 * 100
161
161
  const clientNoCache = new InternetData({ cache: false });
162
162
  ```
163
163
 
164
- An answer with `trialExpired` or `capReached` true is cached for a minute at most, in memory and in a `store`, so a renewed trial or a raised cap reaches you within a minute.
164
+ An answer with `trialExpired` or `capReached` true is cached for a minute at most, in memory and in a `store`, so the next UTC day's full answers or a raised cap reach you within a minute.
165
165
 
166
166
  ### Keeping answers across a reload
167
167
 
@@ -243,7 +243,7 @@ try {
243
243
 
244
244
  `kind` is one of `bad_request`, `unauthorized`, `forbidden`, `rate_limited`, `quota_exceeded`, `server_error` or `network`.
245
245
 
246
- Note that `rate_limited` and `quota_exceeded` both arrive as HTTP 429 and are not the same thing. A rate limit is when the API faces extreme traffic bursts and so retrying later works; but a 429 without `Retry-After` is `quota_exceeded`, which the library never retries. The API itself always sends `Retry-After` with a 429, so that one comes from something in between, such as a proxy; a paid key past its overage cap gets `capReached` instead.
246
+ Note that `rate_limited` and `quota_exceeded` both arrive as HTTP 429 and are not the same thing. A rate limit is when the API faces extreme traffic bursts and so retrying later works; but a 429 without `Retry-After` is `quota_exceeded`, which the library never retries: without a key, the source address's lookups are used up for the UTC day, and its message points to a free key, which answers more. A paid key past its overage cap gets `capReached` instead.
247
247
 
248
248
  A request the browser never got an answer to is a retryable `network` error carrying what the browser said: offline, blocked by an extension, or refused by the page's Content-Security-Policy.
249
249
 
@@ -283,12 +283,15 @@ The library is ES2022 and needs only what a browser has, `fetch` and, for PKCE,
283
283
 
284
284
  ### Absent is not false
285
285
 
286
- Unlimited leaves out `isVpn`, `isHosting`, `isCdn` and the four proxy flags, the detail behind them, `bot` (whose bot it is, behind `isBot`), and the paid members inside `location`, `asn`, `company` and `abuse`, such as `location.city`; a free-plan key's answer carries `trialExpired`, true once its trial is spent. A paid key's carries `capReached`, true once its organization's overage cap is reached, when the answer has Unlimited's fields and isn't billed. A field your key does not include is `undefined`, which means "not in your plan" rather than "checked, and no".
286
+ The basics leave out `isVpn`, `isHosting`, `isCdn`, `isBot`, `isCarrier`, `isSatellite`, the four proxy flags and the five service flags (`isSsh`, `isSmtp`, `isWeb`, `isDnsResolver` and `isBittorrent`), the detail behind them, `bot` (whose bot it is, behind `isBot`), `company` and `abuse`, and the paid members inside `location` and `asn`, such as `location.city`; a free key's answer carries `trialExpired`, true once its organization's full answers for the UTC day are used, when the answer has the basics. A paid key's carries `capReached`, true once its organization's overage cap is reached, when the answer has the basics and isn't billed. A field your key does not include is `undefined`, which means "not in your plan" rather than "checked, and no". The exceptions, until the next major release: `isCarrier`, `isSatellite` and the five service flags are typed `boolean`, so in the basics they read `false`, and `company` and `abuse` are typed as objects, so there they read empty, `{ name: '', domain: '' }` and `{ email: '' }`. `result.raw` shows they were not served.
287
287
 
288
288
  ```js
289
289
  result.isVpn ?? false // when you only want the flag
290
- result.isVpn === undefined // on Unlimited: not in your plan
291
- result.trialExpired === true // a free-plan key's trial is spent
290
+ result.isVpn === undefined // in the basics: not in your plan
291
+ result.isBot === undefined // likewise
292
+ result.isSsh === false // in the basics: read as false, though 'is_ssh' is not in result.raw
293
+ result.company.name === '' // in the basics: read as empty, though 'company' is not in result.raw
294
+ result.trialExpired === true // a free key's full answers for the UTC day are used
292
295
  result.capReached === true // a paid key is past its overage cap
293
296
  ```
294
297
 
package/dist/client.d.ts CHANGED
@@ -21,9 +21,9 @@ export interface CacheOptions {
21
21
  }
22
22
  export interface Options {
23
23
  /**
24
- * Your API key. Without one a lookup is on Unlimited, the free plan, with no
25
- * daily or monthly cap, and no `Authorization` header is sent at all. A
26
- * batch needs a key on a paid plan.
24
+ * Your API key. Without one a lookup answers the basics and no `Authorization` header
25
+ * is sent at all; a free key answers every field on its organization's first lookups
26
+ * each UTC day, then the basics. A batch needs a key on a paid plan.
27
27
  * A key in a web page is readable by anyone who opens the page.
28
28
  */
29
29
  apiKey?: string;
@@ -58,7 +58,7 @@ export interface CallOptions {
58
58
  export interface LookupOptions extends CallOptions {
59
59
  /**
60
60
  * The `User-Agent` of the client that came from this address. With every field, on a paid
61
- * plan or the trial, the answer's `userAgent` then names the agent it claims to be and whether
61
+ * plan or a free key's full answers, the answer's `userAgent` then names the agent it claims to be and whether
62
62
  * this address bears that out. The empty string sends none, and a longer one than the API's
63
63
  * 1024 characters is sent whole for the API to cut.
64
64
  */
@@ -170,7 +170,7 @@ export declare class InternetData {
170
170
  *
171
171
  * Usage counts against the ALLOWANCE WINDOW - on a paid plan the
172
172
  * anniversary of the subscription, not the calendar month and not the
173
- * billing period, and on the free plan the UTC month - and it is the same
173
+ * billing period, and on the free plan the UTC day - and it is the same
174
174
  * number a lookup is gated on. It can lag by a few seconds, because
175
175
  * requests are counted in memory and flushed in aggregate.
176
176
  *
package/dist/client.js CHANGED
@@ -226,7 +226,7 @@ export class InternetData {
226
226
  *
227
227
  * Usage counts against the ALLOWANCE WINDOW - on a paid plan the
228
228
  * anniversary of the subscription, not the calendar month and not the
229
- * billing period, and on the free plan the UTC month - and it is the same
229
+ * billing period, and on the free plan the UTC day - and it is the same
230
230
  * number a lookup is gated on. It can lag by a few seconds, because
231
231
  * requests are counted in memory and flushed in aggregate.
232
232
  *
@@ -453,8 +453,8 @@ function apexOf(baseUrl) {
453
453
  }
454
454
  /**
455
455
  * A cache size or TTL refused where it is set, `null` reading as unset. lru-cache
456
- * reads a zero or NaN TTL as none, which would keep every answer for good, a spent
457
- * trial's included, and a zero size as no bound; anything else not whole it throws
456
+ * reads a zero or NaN TTL as none, which would keep every answer for good, one
457
+ * marked `trialExpired` included, and a zero size as no bound; anything else not whole it throws
458
458
  * a bare TypeError for.
459
459
  */
460
460
  function checkCacheOption(name, value) {
@@ -63,9 +63,9 @@ export declare const oauthRevoke: <ThrowOnError extends boolean = false>(options
63
63
  * IP lookup
64
64
  *
65
65
  * Answers what every database says about one IPv4 or IPv6 address. Which fields come back is
66
- * decided by the presented key; with no key, on Unlimited, the free plan, the answer carries the fields in
67
- * the address table's unlimited column. The path also takes `AS15169` or a domain, as internetdata.io's
68
- * pages do, and then answers as `GET /asn/{asn}` or `GET /domain/{domain}` would.
66
+ * decided by the presented key; with no key, on the free plan, the answer carries the fields in the
67
+ * address table's free column. The path also takes `AS15169` or a domain, as internetdata.io's pages do,
68
+ * and then answers as `GET /asn/{asn}` or `GET /domain/{domain}` would.
69
69
  *
70
70
  */
71
71
  export declare const lookupIp: <ThrowOnError extends boolean = false>(options: Options<LookupIpData, ThrowOnError>) => RequestResult<LookupIpResponses, LookupIpErrors, ThrowOnError>;
@@ -106,8 +106,8 @@ export declare const lookupDomain: <ThrowOnError extends boolean = false>(option
106
106
  * Up to 1000 addresses, AS numbers and domains in one call, each answered exactly as its own
107
107
  * lookup would be and each counted as one lookup. Answers and failures are keyed by the string you sent, in
108
108
  * the order you sent them; duplicates collapse. Needs a paid plan: a batch of one item is answered as the
109
- * lookup it is on any plan. An overage cap reached part way through answers the remaining items with
110
- * Unlimited's fields and `cap_reached` `true`, in `results`.
109
+ * lookup it is on any plan, and charged as that lookup is. An overage cap reached part way through answers
110
+ * the remaining items with the basics and `cap_reached` `true`, in `results`.
111
111
  *
112
112
  */
113
113
  export declare const lookupBatch: <ThrowOnError extends boolean = false>(options: Options<LookupBatchData, ThrowOnError>) => RequestResult<LookupBatchResponses, LookupBatchErrors, ThrowOnError>;
@@ -67,9 +67,9 @@ export const oauthRevoke = (options) => (options.client ?? client).post({
67
67
  * IP lookup
68
68
  *
69
69
  * Answers what every database says about one IPv4 or IPv6 address. Which fields come back is
70
- * decided by the presented key; with no key, on Unlimited, the free plan, the answer carries the fields in
71
- * the address table's unlimited column. The path also takes `AS15169` or a domain, as internetdata.io's
72
- * pages do, and then answers as `GET /asn/{asn}` or `GET /domain/{domain}` would.
70
+ * decided by the presented key; with no key, on the free plan, the answer carries the fields in the
71
+ * address table's free column. The path also takes `AS15169` or a domain, as internetdata.io's pages do,
72
+ * and then answers as `GET /asn/{asn}` or `GET /domain/{domain}` would.
73
73
  *
74
74
  */
75
75
  export const lookupIp = (options) => (options.client ?? client).get({
@@ -194,8 +194,8 @@ export const lookupDomain = (options) => (options.client ?? client).get({
194
194
  * Up to 1000 addresses, AS numbers and domains in one call, each answered exactly as its own
195
195
  * lookup would be and each counted as one lookup. Answers and failures are keyed by the string you sent, in
196
196
  * the order you sent them; duplicates collapse. Needs a paid plan: a batch of one item is answered as the
197
- * lookup it is on any plan. An overage cap reached part way through answers the remaining items with
198
- * Unlimited's fields and `cap_reached` `true`, in `results`.
197
+ * lookup it is on any plan, and charged as that lookup is. An overage cap reached part way through answers
198
+ * the remaining items with the basics and `cap_reached` `true`, in `results`.
199
199
  *
200
200
  */
201
201
  export const lookupBatch = (options) => (options.client ?? client).post({
@@ -128,7 +128,7 @@ export type LookupResponse = {
128
128
  */
129
129
  is_bogon: boolean;
130
130
  /**
131
- * In VPN IP: a VPN service's server. On a paid plan or the trial.
131
+ * In VPN IP: a VPN service's server. On a paid plan or a free key's full answers.
132
132
  */
133
133
  is_vpn?: boolean;
134
134
  /**
@@ -140,67 +140,67 @@ export type LookupResponse = {
140
140
  */
141
141
  is_relay: boolean;
142
142
  /**
143
- * In Residential Proxy IP's 90-day window: a residential proxy exit. On a paid plan or the trial.
143
+ * In Residential Proxy IP's 90-day window: a residential proxy exit. On a paid plan or a free key's full answers.
144
144
  */
145
145
  is_resproxy?: boolean;
146
146
  /**
147
- * In Datacenter Proxy IP's 90-day window. On a paid plan or the trial.
147
+ * In Datacenter Proxy IP's 90-day window. On a paid plan or a free key's full answers.
148
148
  */
149
149
  is_dcproxy?: boolean;
150
150
  /**
151
- * In Mobile Proxy IP's 90-day window. On a paid plan or the trial.
151
+ * In Mobile Proxy IP's 90-day window. On a paid plan or a free key's full answers.
152
152
  */
153
153
  is_mobproxy?: boolean;
154
154
  /**
155
- * In Public Proxy IP: a public proxy listens here, or its traffic left from here. On a paid plan or the trial.
155
+ * In Public Proxy IP: a public proxy listens here, or its traffic left from here. On a paid plan or a free key's full answers.
156
156
  */
157
157
  is_pubproxy?: boolean;
158
158
  /**
159
- * In Hosting IP: a hosting or cloud network. On a paid plan or the trial.
159
+ * In Hosting IP: a hosting or cloud network. On a paid plan or a free key's full answers.
160
160
  */
161
161
  is_hosting?: boolean;
162
162
  /**
163
- * In CDN IP: a content delivery network. On a paid plan or the trial.
163
+ * In CDN IP: a content delivery network. On a paid plan or a free key's full answers.
164
164
  */
165
165
  is_cdn?: boolean;
166
166
  /**
167
- * In Bot IP: an automated client's address, such as a search engine's or an AI company's crawler, an uptime monitor, an internet scanner or a webhook sender. `bot` says whose, what it does and whether its operator vouches for the address.
167
+ * In Bot IP: an automated client's address, such as a search engine's or an AI company's crawler, an uptime monitor, an internet scanner or a webhook sender. `bot` says whose, what it does and whether its operator vouches for the address. On a paid plan or a free key's full answers.
168
168
  */
169
- is_bot: boolean;
169
+ is_bot?: boolean;
170
170
  /**
171
171
  * In Anycast IP: announced from many places at once.
172
172
  */
173
173
  is_anycast: boolean;
174
174
  /**
175
- * In Carrier IP: a mobile carrier's address space.
175
+ * In Carrier IP: a mobile carrier's address space. On a paid plan or a free key's full answers.
176
176
  */
177
- is_carrier: boolean;
177
+ is_carrier?: boolean;
178
178
  /**
179
- * In Satellite IP: a satellite operator's address space.
179
+ * In Satellite IP: a satellite operator's address space. On a paid plan or a free key's full answers.
180
180
  */
181
- is_satellite: boolean;
181
+ is_satellite?: boolean;
182
182
  /**
183
- * In SSH IP: an SSH server answered here.
183
+ * In SSH IP: an SSH server answered here. On a paid plan or a free key's full answers.
184
184
  */
185
- is_ssh: boolean;
185
+ is_ssh?: boolean;
186
186
  /**
187
- * In SMTP IP: a mail server answered here.
187
+ * In SMTP IP: a mail server answered here. On a paid plan or a free key's full answers.
188
188
  */
189
- is_smtp: boolean;
189
+ is_smtp?: boolean;
190
190
  /**
191
- * In Web IP: a web server answered here on port 80 or 443.
191
+ * In Web IP: a web server answered here on port 80 or 443. On a paid plan or a free key's full answers.
192
192
  */
193
- is_web: boolean;
193
+ is_web?: boolean;
194
194
  /**
195
- * In DNS Resolver IP: an open DNS resolver answered here.
195
+ * In DNS Resolver IP: an open DNS resolver answered here. On a paid plan or a free key's full answers.
196
196
  */
197
- is_dns_resolver: boolean;
197
+ is_dns_resolver?: boolean;
198
198
  /**
199
- * In BitTorrent IP: a BitTorrent client was seen here in the last 90 days.
199
+ * In BitTorrent IP: a BitTorrent client was seen here in the last 90 days. On a paid plan or a free key's full answers.
200
200
  */
201
- is_bittorrent: boolean;
201
+ is_bittorrent?: boolean;
202
202
  /**
203
- * VPN IP's row, `{}` when `is_vpn` is false. On a paid plan or the trial.
203
+ * VPN IP's row, `{}` when `is_vpn` is false. On a paid plan or a free key's full answers.
204
204
  */
205
205
  vpn?: ClassDetail;
206
206
  /**
@@ -212,69 +212,69 @@ export type LookupResponse = {
212
212
  */
213
213
  relay: ClassDetail;
214
214
  /**
215
- * `{}` when `is_resproxy` is false. On a paid plan or the trial.
215
+ * `{}` when `is_resproxy` is false. On a paid plan or a free key's full answers.
216
216
  */
217
217
  resproxy?: ProxyDetail;
218
218
  /**
219
- * `{}` when `is_dcproxy` is false. On a paid plan or the trial.
219
+ * `{}` when `is_dcproxy` is false. On a paid plan or a free key's full answers.
220
220
  */
221
221
  dcproxy?: ProxyDetail;
222
222
  /**
223
- * `{}` when `is_mobproxy` is false. On a paid plan or the trial.
223
+ * `{}` when `is_mobproxy` is false. On a paid plan or a free key's full answers.
224
224
  */
225
225
  mobproxy?: ProxyDetail;
226
226
  /**
227
- * `{}` when `is_pubproxy` is false. On a paid plan or the trial.
227
+ * `{}` when `is_pubproxy` is false. On a paid plan or a free key's full answers.
228
228
  */
229
229
  pubproxy?: PubproxyDetail;
230
230
  /**
231
- * `{}` when `is_hosting` is false. On a paid plan or the trial.
231
+ * `{}` when `is_hosting` is false. On a paid plan or a free key's full answers.
232
232
  */
233
233
  hosting?: ClassDetail;
234
234
  /**
235
- * `{}` when `is_cdn` is false. On a paid plan or the trial.
235
+ * `{}` when `is_cdn` is false. On a paid plan or a free key's full answers.
236
236
  */
237
237
  cdn?: ClassDetail;
238
238
  /**
239
- * `{}` when `is_bot` is false. On a paid plan or the trial.
239
+ * `{}` when `is_bot` is false. On a paid plan or a free key's full answers.
240
240
  */
241
241
  bot?: BotDetail;
242
242
  /**
243
- * `{}` when `is_carrier` is false. On a paid plan or the trial.
243
+ * `{}` when `is_carrier` is false. On a paid plan or a free key's full answers.
244
244
  */
245
245
  carrier?: CarrierDetail;
246
246
  /**
247
- * `{}` when `is_satellite` is false. On a paid plan or the trial.
247
+ * `{}` when `is_satellite` is false. On a paid plan or a free key's full answers.
248
248
  */
249
249
  satellite?: SatelliteDetail;
250
250
  /**
251
- * `{}` when `is_ssh` is false. On a paid plan or the trial.
251
+ * `{}` when `is_ssh` is false. On a paid plan or a free key's full answers.
252
252
  */
253
253
  ssh?: SshDetail;
254
254
  /**
255
- * `{}` when `is_smtp` is false. On a paid plan or the trial.
255
+ * `{}` when `is_smtp` is false. On a paid plan or a free key's full answers.
256
256
  */
257
257
  smtp?: SmtpDetail;
258
258
  /**
259
- * A row per port that answered, lowest first; `[]` when `is_web` is false. On a paid plan or the trial.
259
+ * A row per port that answered, lowest first; `[]` when `is_web` is false. On a paid plan or a free key's full answers.
260
260
  */
261
261
  web?: Array<WebDetail>;
262
262
  /**
263
- * `{}` when `is_dns_resolver` is false. On a paid plan or the trial.
263
+ * `{}` when `is_dns_resolver` is false. On a paid plan or a free key's full answers.
264
264
  */
265
265
  dns_resolver?: DnsResolverDetail;
266
266
  /**
267
- * `{}` when `is_bittorrent` is false. On a paid plan or the trial.
267
+ * `{}` when `is_bittorrent` is false. On a paid plan or a free key's full answers.
268
268
  */
269
269
  bittorrent?: BitTorrentDetail;
270
270
  location: Location;
271
271
  asn: Asn;
272
- company: Company;
272
+ company?: Company;
273
273
  /**
274
274
  * The name the address's reverse DNS (PTR) record points to in IP RDNS, empty when it has none.
275
275
  */
276
276
  hostname: string;
277
- abuse: AbuseContact;
277
+ abuse?: AbuseContact;
278
278
  whois?: Whois;
279
279
  rwhois?: Rwhois;
280
280
  hosted_domains?: HostedDomains;
@@ -283,11 +283,11 @@ export type LookupResponse = {
283
283
  */
284
284
  user_agent?: UserAgentVerdict;
285
285
  /**
286
- * On every answer to a key on the free plan, and on no other: `false` while its organization's trial of every field lasts, `true` once the answer has Unlimited's fields.
286
+ * On every answer to a key on the free plan, and on no other: `false` while its organization's lookups of the UTC day answer every field, `true` once those are used up and the answer has the basics.
287
287
  */
288
288
  trial_expired?: boolean;
289
289
  /**
290
- * On every answer to a key on a paid plan, and on no other: `false` while the answer has every field, `true` once its organization's overage cap is reached and the answer has Unlimited's. Lookups answered past the cap are not billed; raising or removing the cap in Billing turns it `false` again.
290
+ * On every answer to a key on a paid plan, and on no other: `false` while the answer has every field, `true` once its organization's overage cap is reached and the answer has the basics. Lookups answered past the cap are not billed; raising or removing the cap in Billing turns it `false` again.
291
291
  */
292
292
  cap_reached?: boolean;
293
293
  };
@@ -331,7 +331,10 @@ export type ProxyDetail = {
331
331
  */
332
332
  hits?: number;
333
333
  /**
334
- * On what share of the window's days, in percent.
334
+ * The highest share of the window's days, in percent, on which any one proxy pool saw
335
+ * it: an address several pools share reads its busiest pool's share, not the days they
336
+ * saw it on together.
337
+ *
335
338
  */
336
339
  hits_days_pct?: number;
337
340
  /**
@@ -696,43 +699,43 @@ export type Location = {
696
699
  */
697
700
  flag_unicode: string;
698
701
  /**
699
- * Region (state or province). On a paid plan or the trial.
702
+ * Region (state or province). On a paid plan or a free key's full answers.
700
703
  */
701
704
  region?: string;
702
705
  /**
703
- * ISO 3166-2 region code. On a paid plan or the trial.
706
+ * ISO 3166-2 region code. On a paid plan or a free key's full answers.
704
707
  */
705
708
  region_code?: string;
706
709
  /**
707
- * City. On a paid plan or the trial.
710
+ * City. On a paid plan or a free key's full answers.
708
711
  */
709
712
  city?: string;
710
713
  /**
711
- * Postal code. On a paid plan or the trial.
714
+ * Postal code. On a paid plan or a free key's full answers.
712
715
  */
713
716
  postal_code?: string;
714
717
  /**
715
- * Latitude of the city. On a paid plan or the trial.
718
+ * Latitude of the city. On a paid plan or a free key's full answers.
716
719
  */
717
720
  latitude?: number;
718
721
  /**
719
- * Longitude of the city. On a paid plan or the trial.
722
+ * Longitude of the city. On a paid plan or a free key's full answers.
720
723
  */
721
724
  longitude?: number;
722
725
  /**
723
- * Radius in km holding the true location with 67% confidence. On a paid plan or the trial.
726
+ * Radius in km holding the true location with 67% confidence. On a paid plan or a free key's full answers.
724
727
  */
725
728
  accuracy_radius?: number;
726
729
  /**
727
- * GeoNames ID of the city. On a paid plan or the trial.
730
+ * GeoNames ID of the city. On a paid plan or a free key's full answers.
728
731
  */
729
732
  geoname_id?: string;
730
733
  /**
731
- * US TV market (DMA) code. On a paid plan or the trial.
734
+ * US TV market (DMA) code. On a paid plan or a free key's full answers.
732
735
  */
733
736
  dma_code?: string;
734
737
  /**
735
- * The day the range's location last changed. On a paid plan or the trial.
738
+ * The day the range's location last changed. On a paid plan or a free key's full answers.
736
739
  */
737
740
  last_changed?: string;
738
741
  };
@@ -753,9 +756,9 @@ export type Asn = {
753
756
  */
754
757
  domain: string;
755
758
  /**
756
- * The kind of network it runs.
759
+ * The kind of network it runs. On a paid plan or a free key's full answers.
757
760
  */
758
- type: string;
761
+ type?: string;
759
762
  /**
760
763
  * The announced prefix covering the address.
761
764
  */
@@ -774,7 +777,7 @@ export type Asn = {
774
777
  */
775
778
  export type Company = {
776
779
  /**
777
- * Who uses the address.
780
+ * Who uses the address. On a paid plan or a free key's full answers.
778
781
  */
779
782
  name: string;
780
783
  /**
@@ -782,11 +785,11 @@ export type Company = {
782
785
  */
783
786
  domain: string;
784
787
  /**
785
- * What kind of organization: hosting, isp, business, education, government. On a paid plan or the trial.
788
+ * What kind of organization: hosting, isp, business, education, government. On a paid plan or a free key's full answers.
786
789
  */
787
790
  type?: string;
788
791
  /**
789
- * ISO 3166 country code. On a paid plan or the trial.
792
+ * ISO 3166 country code. On a paid plan or a free key's full answers.
790
793
  */
791
794
  country?: string;
792
795
  };
@@ -795,40 +798,40 @@ export type Company = {
795
798
  */
796
799
  export type AbuseContact = {
797
800
  /**
798
- * Where to report abuse from the address.
801
+ * Where to report abuse from the address. On a paid plan or a free key's full answers.
799
802
  */
800
803
  email: string;
801
804
  /**
802
- * The contact. On a paid plan or the trial.
805
+ * The contact. On a paid plan or a free key's full answers.
803
806
  */
804
807
  name?: string;
805
808
  /**
806
- * Its phone number. On a paid plan or the trial.
809
+ * Its phone number. On a paid plan or a free key's full answers.
807
810
  */
808
811
  phone?: string;
809
812
  /**
810
- * Its postal address. On a paid plan or the trial.
813
+ * Its postal address. On a paid plan or a free key's full answers.
811
814
  */
812
815
  address?: string;
813
816
  /**
814
- * ISO 3166 country code. On a paid plan or the trial.
817
+ * ISO 3166 country code. On a paid plan or a free key's full answers.
815
818
  */
816
819
  country?: string;
817
820
  /**
818
- * The registry block it was derived from. On a paid plan or the trial.
821
+ * The registry block it was derived from. On a paid plan or a free key's full answers.
819
822
  */
820
823
  network?: string;
821
824
  /**
822
- * ARIN reports the contact answered its yearly validation. On a paid plan or the trial.
825
+ * ARIN reports the contact answered its yearly validation. On a paid plan or a free key's full answers.
823
826
  */
824
827
  validated?: boolean;
825
828
  /**
826
- * Since when it has not. On a paid plan or the trial.
829
+ * Since when it has not. On a paid plan or a free key's full answers.
827
830
  */
828
831
  unvalidated_since?: string;
829
832
  };
830
833
  /**
831
- * IP Whois's most specific record covering the address. On a paid plan or the trial.
834
+ * IP Whois's most specific record covering the address. On a paid plan or a free key's full answers.
832
835
  */
833
836
  export type Whois = {
834
837
  /**
@@ -869,7 +872,7 @@ export type Whois = {
869
872
  asn: number;
870
873
  };
871
874
  /**
872
- * IP RWHOIS's most specific network covering the address. On a paid plan or the trial.
875
+ * IP RWHOIS's most specific network covering the address. On a paid plan or a free key's full answers.
873
876
  */
874
877
  export type Rwhois = {
875
878
  /**
@@ -898,7 +901,7 @@ export type Rwhois = {
898
901
  abuse_email: string;
899
902
  };
900
903
  /**
901
- * From IP Hosted Domains: how many registered domains resolve to the address, and the 10 most popular. Its database lists up to 1,000 an address. On a paid plan or the trial.
904
+ * From IP Hosted Domains: how many registered domains resolve to the address, and the 10 most popular. Its database lists up to 1,000 an address. On a paid plan or a free key's full answers.
902
905
  */
903
906
  export type HostedDomains = {
904
907
  /**
@@ -911,7 +914,7 @@ export type HostedDomains = {
911
914
  domains?: Array<string>;
912
915
  };
913
916
  /**
914
- * From ASN Hosted Domains: how many registered domains the AS hosts, and the 10 most popular. Its database lists up to 1,000 an AS. On a paid plan or the trial.
917
+ * From ASN Hosted Domains: how many registered domains the AS hosts, and the 10 most popular. Its database lists up to 1,000 an AS. On a paid plan or a free key's full answers.
915
918
  */
916
919
  export type AsnHostedDomains = {
917
920
  /**
@@ -952,82 +955,82 @@ export type AsnLookupResponse = {
952
955
  */
953
956
  domain: string;
954
957
  /**
955
- * The kind of network it runs. On a paid plan or the trial.
958
+ * The kind of network it runs. On a paid plan or a free key's full answers.
956
959
  */
957
960
  type?: string;
958
961
  /**
959
- * IPv4 addresses it announces. On a paid plan or the trial.
962
+ * IPv4 addresses it announces. On a paid plan or a free key's full answers.
960
963
  */
961
964
  num_ips?: number;
962
965
  /**
963
- * IPv4 prefixes it announces. On a paid plan or the trial.
966
+ * IPv4 prefixes it announces. On a paid plan or a free key's full answers.
964
967
  */
965
968
  num_prefixes4?: number;
966
969
  /**
967
- * IPv6 prefixes it announces. On a paid plan or the trial.
970
+ * IPv6 prefixes it announces. On a paid plan or a free key's full answers.
968
971
  */
969
972
  num_prefixes6?: number;
970
973
  /**
971
- * Its announcements RPKI calls valid. On a paid plan or the trial.
974
+ * Its announcements RPKI calls valid. On a paid plan or a free key's full answers.
972
975
  */
973
976
  rpki_valid?: number;
974
977
  /**
975
- * Invalid. On a paid plan or the trial.
978
+ * Invalid. On a paid plan or a free key's full answers.
976
979
  */
977
980
  rpki_invalid?: number;
978
981
  /**
979
- * With no RPKI record. On a paid plan or the trial.
982
+ * With no RPKI record. On a paid plan or a free key's full answers.
980
983
  */
981
984
  rpki_not_found?: number;
982
985
  /**
983
- * Its ASN Whois record, every column, empty where the registry states nothing. On a paid plan or the trial.
986
+ * Its ASN Whois record, every column, empty where the registry states nothing. On a paid plan or a free key's full answers.
984
987
  */
985
988
  whois?: {
986
989
  [key: string]: string;
987
990
  };
988
991
  /**
989
- * What it announces, IPv4 then IPv6, up to 20000 a family. On a paid plan or the trial.
992
+ * What it announces, IPv4 then IPv6, up to 20000 a family. On a paid plan or a free key's full answers.
990
993
  */
991
994
  prefixes?: Array<AsnPrefix>;
992
995
  /**
993
- * Its rank in ASN Extended, by customer cone, 1 the largest; `0` for an AS seen in no AS path. On a paid plan or the trial.
996
+ * Its rank in ASN Extended, by customer cone, 1 the largest; `0` for an AS seen in no AS path. On a paid plan or a free key's full answers.
994
997
  */
995
998
  rank?: number;
996
999
  /**
997
- * Whether it is one of the transit-free networks at the top of the hierarchy, which get transit from no one and peer with each other. On a paid plan or the trial.
1000
+ * Whether it is one of the transit-free networks at the top of the hierarchy, which get transit from no one and peer with each other. On a paid plan or a free key's full answers.
998
1001
  */
999
1002
  tier1?: boolean;
1000
1003
  /**
1001
- * How many AS numbers it gets transit from. On a paid plan or the trial.
1004
+ * How many AS numbers it gets transit from. On a paid plan or a free key's full answers.
1002
1005
  */
1003
1006
  num_upstreams?: number;
1004
1007
  /**
1005
- * Those AS numbers, ascending, up to 20000. On a paid plan or the trial.
1008
+ * Those AS numbers, ascending, up to 20000. On a paid plan or a free key's full answers.
1006
1009
  */
1007
1010
  upstreams?: Array<number>;
1008
1011
  /**
1009
- * How many AS numbers it exchanges its own and its customers' routes with. On a paid plan or the trial.
1012
+ * How many AS numbers it exchanges its own and its customers' routes with. On a paid plan or a free key's full answers.
1010
1013
  */
1011
1014
  num_peers?: number;
1012
1015
  /**
1013
- * Those AS numbers, ascending, up to 20000. On a paid plan or the trial.
1016
+ * Those AS numbers, ascending, up to 20000. On a paid plan or a free key's full answers.
1014
1017
  */
1015
1018
  peers?: Array<number>;
1016
1019
  /**
1017
- * How many AS numbers it provides transit to. On a paid plan or the trial.
1020
+ * How many AS numbers it provides transit to. On a paid plan or a free key's full answers.
1018
1021
  */
1019
1022
  num_downstreams?: number;
1020
1023
  /**
1021
- * Those AS numbers, ascending, up to 20000. On a paid plan or the trial.
1024
+ * Those AS numbers, ascending, up to 20000. On a paid plan or a free key's full answers.
1022
1025
  */
1023
1026
  downstreams?: Array<number>;
1024
1027
  hosted_domains?: AsnHostedDomains;
1025
1028
  /**
1026
- * On every answer to a key on the free plan, and on no other: `false` while its organization's trial of every field lasts, `true` once the answer has Unlimited's fields.
1029
+ * On every answer to a key on the free plan, and on no other: `false` while its organization's lookups of the UTC day answer every field, `true` once those are used up and the answer has the basics.
1027
1030
  */
1028
1031
  trial_expired?: boolean;
1029
1032
  /**
1030
- * On every answer to a key on a paid plan, and on no other: `false` while the answer has every field, `true` once its organization's overage cap is reached and the answer has Unlimited's. Lookups answered past the cap are not billed; raising or removing the cap in Billing turns it `false` again.
1033
+ * On every answer to a key on a paid plan, and on no other: `false` while the answer has every field, `true` once its organization's overage cap is reached and the answer has the basics. Lookups answered past the cap are not billed; raising or removing the cap in Billing turns it `false` again.
1031
1034
  */
1032
1035
  cap_reached?: boolean;
1033
1036
  };
@@ -1074,7 +1077,7 @@ export type DomainLookupResponse = {
1074
1077
  */
1075
1078
  is_registered: boolean;
1076
1079
  /**
1077
- * In Disposable Domain. On a paid plan or the trial.
1080
+ * In Disposable Domain. On a paid plan or a free key's full answers.
1078
1081
  */
1079
1082
  is_disposable?: boolean;
1080
1083
  /**
@@ -1099,24 +1102,24 @@ export type DomainLookupResponse = {
1099
1102
  has_cname: boolean;
1100
1103
  dns?: DomainDns;
1101
1104
  /**
1102
- * The network announcing each address in `dns.a` and then `dns.aaaa`, from IP ASN; `[]` where it resolves to none. On a paid plan or the trial.
1105
+ * The network announcing each address in `dns.a` and then `dns.aaaa`, from IP ASN; `[]` where it resolves to none. On a paid plan or a free key's full answers.
1103
1106
  */
1104
1107
  hosting?: Array<DomainHost>;
1105
1108
  cohosted_domains?: CohostedDomains;
1106
1109
  ip_ranges?: DomainIpRanges;
1107
1110
  /**
1108
- * `{}` when `is_disposable` is false. On a paid plan or the trial.
1111
+ * `{}` when `is_disposable` is false. On a paid plan or a free key's full answers.
1109
1112
  */
1110
1113
  disposable?: DisposableDetail;
1111
1114
  web?: DomainWeb;
1112
1115
  redirects?: DomainRedirects;
1113
1116
  backlinks?: DomainBacklinks;
1114
1117
  /**
1115
- * On every answer to a key on the free plan, and on no other: `false` while its organization's trial of every field lasts, `true` once the answer has Unlimited's fields.
1118
+ * On every answer to a key on the free plan, and on no other: `false` while its organization's lookups of the UTC day answer every field, `true` once those are used up and the answer has the basics.
1116
1119
  */
1117
1120
  trial_expired?: boolean;
1118
1121
  /**
1119
- * On every answer to a key on a paid plan, and on no other: `false` while the answer has every field, `true` once its organization's overage cap is reached and the answer has Unlimited's. Lookups answered past the cap are not billed; raising or removing the cap in Billing turns it `false` again.
1122
+ * On every answer to a key on a paid plan, and on no other: `false` while the answer has every field, `true` once its organization's overage cap is reached and the answer has the basics. Lookups answered past the cap are not billed; raising or removing the cap in Billing turns it `false` again.
1120
1123
  */
1121
1124
  cap_reached?: boolean;
1122
1125
  };
@@ -1134,7 +1137,7 @@ export type DomainHost = {
1134
1137
  asn: Asn;
1135
1138
  };
1136
1139
  /**
1137
- * From IP Hosted Domains: the other registered domains on the domain's first IPv4 address, how many and the 10 most popular. On a paid plan or the trial.
1140
+ * From IP Hosted Domains: the other registered domains on the domain's first IPv4 address, how many and the 10 most popular. On a paid plan or a free key's full answers.
1138
1141
  */
1139
1142
  export type CohostedDomains = {
1140
1143
  /**
@@ -1151,7 +1154,7 @@ export type CohostedDomains = {
1151
1154
  domains: Array<string>;
1152
1155
  };
1153
1156
  /**
1154
- * What our crawl last read of the domain's own home page, every member empty where it holds none. On a paid plan or the trial.
1157
+ * What our crawl last read of the domain's own home page, every member empty where it holds none. On a paid plan or a free key's full answers.
1155
1158
  */
1156
1159
  export type DomainWeb = {
1157
1160
  /**
@@ -1186,7 +1189,7 @@ export type DomainWebLinks = {
1186
1189
  hosts: Array<string>;
1187
1190
  };
1188
1191
  /**
1189
- * The registered domains whose home page redirects to this one, how many and the 10 most popular. On a paid plan or the trial.
1192
+ * The registered domains whose home page redirects to this one, how many and the 10 most popular. On a paid plan or a free key's full answers.
1190
1193
  */
1191
1194
  export type DomainRedirects = {
1192
1195
  /**
@@ -1199,7 +1202,7 @@ export type DomainRedirects = {
1199
1202
  domains: Array<string>;
1200
1203
  };
1201
1204
  /**
1202
- * The registered domains whose home page links to this one, how many and the 10 most popular. On a paid plan or the trial.
1205
+ * The registered domains whose home page links to this one, how many and the 10 most popular. On a paid plan or a free key's full answers.
1203
1206
  */
1204
1207
  export type DomainBacklinks = {
1205
1208
  /**
@@ -1212,7 +1215,7 @@ export type DomainBacklinks = {
1212
1215
  domains: Array<string>;
1213
1216
  };
1214
1217
  /**
1215
- * Its records in Domain DNS, up to 100 a type. On a paid plan or the trial.
1218
+ * Its records in Domain DNS, up to 100 a type. On a paid plan or a free key's full answers.
1216
1219
  */
1217
1220
  export type DomainDns = {
1218
1221
  a: Array<DnsAddressRecord>;
@@ -1266,7 +1269,7 @@ export type DnsCnameRecord = {
1266
1269
  last_seen: string;
1267
1270
  };
1268
1271
  /**
1269
- * The organization's IP ranges, from Domain IP Ranges. On a paid plan or the trial.
1272
+ * The organization's IP ranges, from Domain IP Ranges. On a paid plan or a free key's full answers.
1270
1273
  */
1271
1274
  export type DomainIpRanges = {
1272
1275
  /**
@@ -1406,14 +1409,14 @@ export type EntitlementPlan = {
1406
1409
  /**
1407
1410
  * The plan the organization is on, as an identifier that is never
1408
1411
  * renamed or reused: `free` for the free plan, or a paid plan's key.
1409
- * Compare against it and show `name`. On `free`, usage counts its
1410
- * trial, the lookups answered with every field. The Data plan is a key
1411
- * per quota, `data_1` to `data_7`, each named Data.
1412
+ * Compare against it and show `name`. On `free`, usage counts the UTC
1413
+ * day's lookups answered with every field. The Data plan is a key
1414
+ * per quota (`data_1`, `data_2` and on), each named Data.
1412
1415
  *
1413
1416
  */
1414
1417
  key: string;
1415
1418
  /**
1416
- * The plan's name, as the site and console show it: `Unlimited` for
1419
+ * The plan's name, as the site and console show it: `Free` for
1417
1420
  * the free plan. Show this rather than a name built from `key`: a
1418
1421
  * plan's name can change, and its key never does.
1419
1422
  *
@@ -1442,7 +1445,7 @@ export type EntitlementUsage = {
1442
1445
  quota: number;
1443
1446
  /**
1444
1447
  * Where full answers stop: past it, a paid key is answered with
1445
- * Unlimited's fields and `cap_reached: true`, uncharged, until the
1448
+ * the basics and `cap_reached: true`, uncharged, until the
1446
1449
  * window ends or the cap is raised. `null` means never, which is the
1447
1450
  * normal state of an uncapped paid plan and is not the same as zero.
1448
1451
  * Above the quota and below this, requests are served and billed as
@@ -1451,14 +1454,14 @@ export type EntitlementUsage = {
1451
1454
  */
1452
1455
  hard_limit: number | null;
1453
1456
  /**
1454
- * When the current allowance period began. On the free plan, when
1455
- * its trial began, or now before a first lookup starts it.
1457
+ * When the current allowance period began. On the free plan, the
1458
+ * start of the UTC day.
1456
1459
  *
1457
1460
  */
1458
1461
  window_start: string;
1459
1462
  /**
1460
- * When the allowance next resets. On the free plan, when its trial
1461
- * ends, which it does once.
1463
+ * When the allowance next resets. On the free plan, the start of the
1464
+ * next UTC day.
1462
1465
  *
1463
1466
  */
1464
1467
  window_end: string;
@@ -1537,7 +1540,7 @@ export type LookupIpData = {
1537
1540
  };
1538
1541
  query?: {
1539
1542
  /**
1540
- * The `User-Agent` header of the request you are deciding on. With every field, on a paid plan or the trial, the answer then carries `user_agent`, the agent it names and whether this address bears that out. Never kept, and nothing sent with a lookup feeds our data.
1543
+ * The `User-Agent` header of the request you are deciding on. With every field, on a paid plan or a free key's full answers, the answer then carries `user_agent`, the agent it names and whether this address bears that out. Never kept, and nothing sent with a lookup feeds our data.
1541
1544
  */
1542
1545
  user_agent?: string;
1543
1546
  };
@@ -1559,9 +1562,10 @@ export type LookupIpErrors = {
1559
1562
  */
1560
1563
  403: LookupError;
1561
1564
  /**
1562
- * A rate limit, always with `Retry-After`: this API protecting itself, or a burst of Unlimited
1563
- * lookups. A paid plan's overage cap is never a `429` by itself: it answers `200` with
1564
- * Unlimited's fields and `cap_reached` `true`, and a burst past it pays Unlimited's rate limit.
1565
+ * A rate limit with `Retry-After`: this API protecting itself, or a burst of free lookups. Without
1566
+ * it, a lookup with no key past its address's daily allowance, which a free API key answers past.
1567
+ * A paid plan's overage cap is never a `429` by itself: it answers `200` with the basics and
1568
+ * `cap_reached` `true`, and a burst past it pays the free plan's rate limit.
1565
1569
  *
1566
1570
  */
1567
1571
  429: LookupError;
@@ -1583,7 +1587,7 @@ export type LookupMyIpData = {
1583
1587
  path?: never;
1584
1588
  query?: {
1585
1589
  /**
1586
- * The `User-Agent` header of the request you are deciding on. With every field, on a paid plan or the trial, the answer then carries `user_agent`, the agent it names and whether this address bears that out. Never kept, and nothing sent with a lookup feeds our data.
1590
+ * The `User-Agent` header of the request you are deciding on. With every field, on a paid plan or a free key's full answers, the answer then carries `user_agent`, the agent it names and whether this address bears that out. Never kept, and nothing sent with a lookup feeds our data.
1587
1591
  */
1588
1592
  user_agent?: string;
1589
1593
  };
@@ -1601,9 +1605,10 @@ export type LookupMyIpErrors = {
1601
1605
  */
1602
1606
  403: LookupError;
1603
1607
  /**
1604
- * A rate limit, always with `Retry-After`: this API protecting itself, or a burst of Unlimited
1605
- * lookups. A paid plan's overage cap is never a `429` by itself: it answers `200` with
1606
- * Unlimited's fields and `cap_reached` `true`, and a burst past it pays Unlimited's rate limit.
1608
+ * A rate limit with `Retry-After`: this API protecting itself, or a burst of free lookups. Without
1609
+ * it, a lookup with no key past its address's daily allowance, which a free API key answers past.
1610
+ * A paid plan's overage cap is never a `429` by itself: it answers `200` with the basics and
1611
+ * `cap_reached` `true`, and a burst past it pays the free plan's rate limit.
1607
1612
  *
1608
1613
  */
1609
1614
  429: LookupError;
@@ -1647,9 +1652,10 @@ export type LookupAsnErrors = {
1647
1652
  */
1648
1653
  403: LookupError;
1649
1654
  /**
1650
- * A rate limit, always with `Retry-After`: this API protecting itself, or a burst of Unlimited
1651
- * lookups. A paid plan's overage cap is never a `429` by itself: it answers `200` with
1652
- * Unlimited's fields and `cap_reached` `true`, and a burst past it pays Unlimited's rate limit.
1655
+ * A rate limit with `Retry-After`: this API protecting itself, or a burst of free lookups. Without
1656
+ * it, a lookup with no key past its address's daily allowance, which a free API key answers past.
1657
+ * A paid plan's overage cap is never a `429` by itself: it answers `200` with the basics and
1658
+ * `cap_reached` `true`, and a burst past it pays the free plan's rate limit.
1653
1659
  *
1654
1660
  */
1655
1661
  429: LookupError;
@@ -1693,9 +1699,10 @@ export type LookupDomainErrors = {
1693
1699
  */
1694
1700
  403: LookupError;
1695
1701
  /**
1696
- * A rate limit, always with `Retry-After`: this API protecting itself, or a burst of Unlimited
1697
- * lookups. A paid plan's overage cap is never a `429` by itself: it answers `200` with
1698
- * Unlimited's fields and `cap_reached` `true`, and a burst past it pays Unlimited's rate limit.
1702
+ * A rate limit with `Retry-After`: this API protecting itself, or a burst of free lookups. Without
1703
+ * it, a lookup with no key past its address's daily allowance, which a free API key answers past.
1704
+ * A paid plan's overage cap is never a `429` by itself: it answers `200` with the basics and
1705
+ * `cap_reached` `true`, and a burst past it pays the free plan's rate limit.
1699
1706
  *
1700
1707
  */
1701
1708
  429: LookupError;
@@ -1742,7 +1749,9 @@ export type LookupBatchErrors = {
1742
1749
  */
1743
1750
  413: LookupError;
1744
1751
  /**
1745
- * A rate limit; retry after `Retry-After`.
1752
+ * A rate limit refused the whole call; retry after `Retry-After`. Without it, a batch of one item
1753
+ * with no key is past its address's daily allowance, which a free API key answers past.
1754
+ *
1746
1755
  */
1747
1756
  429: LookupError;
1748
1757
  };
@@ -1783,7 +1792,12 @@ export type MyEntitlementErrors = {
1783
1792
  export type MyEntitlementError = MyEntitlementErrors[keyof MyEntitlementErrors];
1784
1793
  export type MyEntitlementResponses = {
1785
1794
  /**
1786
- * The key's entitlements and consumption.
1795
+ * The key's entitlements and consumption. On the free plan, Free,
1796
+ * usage is the UTC day's lookups answered with every field, against
1797
+ * its daily limit, and no hard limit, since nothing stops a lookup past
1798
+ * it: the basics have no cap. The daily limit is on the pricing
1799
+ * page, never fixed here.
1800
+ *
1787
1801
  */
1788
1802
  200: Entitlement;
1789
1803
  };
package/dist/shapes.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- export declare const LOOKUP_MEMBERS: readonly ["ip", "is_bogon", "is_tor", "is_relay", "is_bot", "is_anycast", "is_carrier", "is_satellite", "is_ssh", "is_smtp", "is_web", "is_dns_resolver", "is_bittorrent", "tor", "relay", "location", "asn", "company", "hostname", "abuse"];
1
+ export declare const LOOKUP_MEMBERS: readonly ["ip", "is_bogon", "is_tor", "is_relay", "is_anycast", "tor", "relay", "location", "asn", "hostname"];
2
2
  export declare const WEB_DETAIL_MEMBERS: readonly ["port", "tls_ok", "session_ok", "status_code", "server", "location", "title", "cert_subject_cn", "cert_subject_o", "cert_issuer_dn", "cert_browser_trusted", "tls_version", "first_seen", "last_seen"];
3
3
  export declare const LOCATION_MEMBERS: readonly ["continent", "continent_name", "country", "country_name", "timezone", "currency_code", "currency_name", "currency_symbol", "flag_emoji", "flag_unicode"];
4
- export declare const ASN_MEMBERS: readonly ["asn", "name", "domain", "type", "prefix", "country", "rpki_status"];
4
+ export declare const ASN_MEMBERS: readonly ["asn", "name", "domain", "prefix", "country", "rpki_status"];
5
5
  export declare const COMPANY_MEMBERS: readonly ["name", "domain"];
6
6
  export declare const USER_AGENT_VERDICT_MEMBERS: readonly ["agent", "kind", "verdict"];
7
7
  export declare const ABUSE_CONTACT_MEMBERS: readonly ["email"];
@@ -30,6 +30,10 @@ export declare const ENTITLEMENT_MEMBERS: readonly ["org_id", "apikey", "plan",
30
30
  export declare const ENTITLEMENT_APIKEY_MEMBERS: readonly ["id", "allowed_cidrs"];
31
31
  export declare const ENTITLEMENT_PLAN_MEMBERS: readonly ["key", "name", "tier"];
32
32
  export declare const ENTITLEMENT_USAGE_MEMBERS: readonly ["requests", "quota", "window_start", "window_end"];
33
+ export declare const PAID_FLAGS: readonly ["is_bot", "is_carrier", "is_satellite", "is_ssh", "is_smtp", "is_web", "is_dns_resolver", "is_bittorrent"];
34
+ export declare const PAID_OBJECTS: readonly ["company", "abuse"];
35
+ export declare const LOOKUP_NOT_NULL: readonly ["is_bot", "is_carrier", "is_satellite", "is_ssh", "is_smtp", "is_web", "is_dns_resolver", "is_bittorrent", "company", "abuse"];
36
+ export declare const ASN_NOT_NULL: readonly ["type"];
33
37
  type Kind = 'string' | 'integer' | 'number' | 'boolean' | 'object' | 'array' | 'date' | 'date-time';
34
38
  export declare const LOOKUP_TYPES: Record<string, Kind>;
35
39
  export declare const CLASS_DETAIL_TYPES: Record<string, Kind>;
package/dist/shapes.js CHANGED
@@ -3,9 +3,7 @@
3
3
  // generated types, so a member the spec adds fails the suite until it is here.
4
4
  import { hasMembers } from './transport.js';
5
5
  export const LOOKUP_MEMBERS = [
6
- 'ip', 'is_bogon', 'is_tor', 'is_relay', 'is_bot', 'is_anycast', 'is_carrier', 'is_satellite', 'is_ssh',
7
- 'is_smtp', 'is_web', 'is_dns_resolver', 'is_bittorrent', 'tor', 'relay', 'location', 'asn', 'company',
8
- 'hostname', 'abuse',
6
+ 'ip', 'is_bogon', 'is_tor', 'is_relay', 'is_anycast', 'tor', 'relay', 'location', 'asn', 'hostname',
9
7
  ];
10
8
  export const WEB_DETAIL_MEMBERS = [
11
9
  'port', 'tls_ok', 'session_ok', 'status_code', 'server', 'location', 'title', 'cert_subject_cn',
@@ -15,7 +13,7 @@ export const LOCATION_MEMBERS = [
15
13
  'continent', 'continent_name', 'country', 'country_name', 'timezone', 'currency_code', 'currency_name',
16
14
  'currency_symbol', 'flag_emoji', 'flag_unicode',
17
15
  ];
18
- export const ASN_MEMBERS = ['asn', 'name', 'domain', 'type', 'prefix', 'country', 'rpki_status'];
16
+ export const ASN_MEMBERS = ['asn', 'name', 'domain', 'prefix', 'country', 'rpki_status'];
19
17
  export const COMPANY_MEMBERS = ['name', 'domain'];
20
18
  export const USER_AGENT_VERDICT_MEMBERS = ['agent', 'kind', 'verdict'];
21
19
  export const ABUSE_CONTACT_MEMBERS = ['email'];
@@ -50,6 +48,14 @@ export const ENTITLEMENT_MEMBERS = ['org_id', 'apikey', 'plan', 'usage'];
50
48
  export const ENTITLEMENT_APIKEY_MEMBERS = ['id', 'allowed_cidrs'];
51
49
  export const ENTITLEMENT_PLAN_MEMBERS = ['key', 'name', 'tier'];
52
50
  export const ENTITLEMENT_USAGE_MEMBERS = ['requests', 'quota', 'window_start', 'window_end'];
51
+ // Members the spec no longer requires, which an answer may omit and may never send as null: the eight
52
+ // flags, and `company` and `abuse`, whose own required members a present one still carries.
53
+ export const PAID_FLAGS = [
54
+ 'is_bot', 'is_carrier', 'is_satellite', 'is_ssh', 'is_smtp', 'is_web', 'is_dns_resolver', 'is_bittorrent',
55
+ ];
56
+ export const PAID_OBJECTS = ['company', 'abuse'];
57
+ export const LOOKUP_NOT_NULL = [...PAID_FLAGS, ...PAID_OBJECTS];
58
+ export const ASN_NOT_NULL = ['type'];
53
59
  const FLAG = 'boolean';
54
60
  export const LOOKUP_TYPES = {
55
61
  ip: 'string', is_bogon: FLAG, is_vpn: FLAG, is_tor: FLAG, is_relay: FLAG, is_resproxy: FLAG, is_dcproxy: FLAG,
@@ -229,10 +235,17 @@ function isDay(year, month, day) {
229
235
  return date.getUTCFullYear() === Number(year) && date.getUTCMonth() === Number(month) - 1
230
236
  && date.getUTCDate() === Number(day);
231
237
  }
232
- function typed(value, required, types) {
238
+ // A member in `notNull` may be absent but never null, as one the spec once required.
239
+ function typed(value, required, types, notNull = []) {
233
240
  return hasMembers(value, required) && Object.entries(types).every(([member, kind]) => {
234
241
  const v = value[member];
235
- return v === undefined || v === null ? !required.includes(member) : isKind(v, kind);
242
+ if (v === undefined) {
243
+ return !required.includes(member);
244
+ }
245
+ if (v === null) {
246
+ return !required.includes(member) && !notNull.includes(member);
247
+ }
248
+ return isKind(v, kind);
236
249
  });
237
250
  }
238
251
  function every(value, valid) {
@@ -261,16 +274,16 @@ const DETAILS = [
261
274
  ];
262
275
  // Required where the lookup itself requires them, and optional otherwise.
263
276
  const SHARED = [
264
- ['location', LOCATION_MEMBERS, LOCATION_TYPES],
265
- ['asn', ASN_MEMBERS, ASN_TYPES],
266
- ['company', COMPANY_MEMBERS, COMPANY_TYPES],
267
- ['abuse', ABUSE_CONTACT_MEMBERS, ABUSE_CONTACT_TYPES],
268
- ['whois', WHOIS_MEMBERS, WHOIS_TYPES],
269
- ['rwhois', RWHOIS_MEMBERS, RWHOIS_TYPES],
270
- ['hosted_domains', HOSTED_DOMAINS_MEMBERS, HOSTED_DOMAINS_TYPES],
277
+ ['location', LOCATION_MEMBERS, LOCATION_TYPES, []],
278
+ ['asn', ASN_MEMBERS, ASN_TYPES, ASN_NOT_NULL],
279
+ ['company', COMPANY_MEMBERS, COMPANY_TYPES, []],
280
+ ['abuse', ABUSE_CONTACT_MEMBERS, ABUSE_CONTACT_TYPES, []],
281
+ ['whois', WHOIS_MEMBERS, WHOIS_TYPES, []],
282
+ ['rwhois', RWHOIS_MEMBERS, RWHOIS_TYPES, []],
283
+ ['hosted_domains', HOSTED_DOMAINS_MEMBERS, HOSTED_DOMAINS_TYPES, []],
271
284
  ];
272
285
  export function isLookup(data) {
273
- return typed(data, LOOKUP_MEMBERS, LOOKUP_TYPES)
286
+ return typed(data, LOOKUP_MEMBERS, LOOKUP_TYPES, LOOKUP_NOT_NULL)
274
287
  && DETAILS.every(([member, types]) => optional(data[member], (detail) => typed(detail, [], types)))
275
288
  && optional(data['pubproxy'], (pubproxy) => lists(pubproxy, 'protocols', isString))
276
289
  && optional(data['bittorrent'], (bittorrent) => lists(bittorrent, 'clients', isString))
@@ -278,7 +291,7 @@ export function isLookup(data) {
278
291
  && optional(data['user_agent'], (verdict) => typed(verdict, USER_AGENT_VERDICT_MEMBERS, USER_AGENT_VERDICT_TYPES))
279
292
  && optional(data['web'], (web) => every(web, (row) => typed(row, WEB_DETAIL_MEMBERS, WEB_DETAIL_TYPES)))
280
293
  && optional(data['hosted_domains'], (hosted) => lists(hosted, 'domains', isString))
281
- && SHARED.every(([member, required, types]) => optional(data[member], (object) => typed(object, required, types)));
294
+ && SHARED.every(([member, required, types, notNull]) => optional(data[member], (object) => typed(object, required, types, notNull)));
282
295
  }
283
296
  export function isAsnLookup(data) {
284
297
  return typed(data, ASN_LOOKUP_MEMBERS, ASN_LOOKUP_TYPES)
@@ -303,7 +316,7 @@ export function isDomainLookup(data) {
303
316
  && optional(data['disposable'], (d) => typed(d, [], DISPOSABLE_DETAIL_TYPES)
304
317
  && lists(d, 'providers', isString))
305
318
  && optional(data['hosting'], (hosting) => every(hosting, (h) => typed(h, DOMAIN_HOST_MEMBERS, DOMAIN_HOST_TYPES)
306
- && typed(h['asn'], ASN_MEMBERS, ASN_TYPES)))
319
+ && typed(h['asn'], ASN_MEMBERS, ASN_TYPES, ASN_NOT_NULL)))
307
320
  && optional(data['cohosted_domains'], (c) => typed(c, COHOSTED_DOMAINS_MEMBERS, COHOSTED_DOMAINS_TYPES)
308
321
  && every(c['domains'], isString))
309
322
  && optional(data['web'], (web) => typed(web, DOMAIN_WEB_MEMBERS, DOMAIN_WEB_TYPES)
package/dist/store.d.ts CHANGED
@@ -33,8 +33,9 @@ export declare class StoreTier {
33
33
  }
34
34
  /**
35
35
  * How long an answer stays cached: the TTL, or at most a minute for one marked
36
- * `trialExpired` or `capReached`, which a new UTC month or a raised cap ends. Still
37
- * cached, so a busy page past its trial does not send every repeat to the API.
36
+ * `trialExpired` or `capReached`, which an upgrade, a raised cap or a paid plan's new
37
+ * window ends. Still cached, so a busy page past its day of full answers does not send every
38
+ * repeat to the API.
38
39
  */
39
40
  export declare function lifeMs(result: Result, ttlMs: number): number;
40
41
  /**
package/dist/store.js CHANGED
@@ -46,8 +46,9 @@ export class StoreTier {
46
46
  }
47
47
  /**
48
48
  * How long an answer stays cached: the TTL, or at most a minute for one marked
49
- * `trialExpired` or `capReached`, which a new UTC month or a raised cap ends. Still
50
- * cached, so a busy page past its trial does not send every repeat to the API.
49
+ * `trialExpired` or `capReached`, which an upgrade, a raised cap or a paid plan's new
50
+ * window ends. Still cached, so a busy page past its day of full answers does not send every
51
+ * repeat to the API.
51
52
  */
52
53
  export function lifeMs(result, ttlMs) {
53
54
  if (result.trialExpired === true || result.capReached === true) {
package/dist/types.d.ts CHANGED
@@ -1,11 +1,19 @@
1
1
  import type { AbuseContact, Asn as WireAsn, AsnHostedDomains, AsnLookupResponse, AsnPrefix, BitTorrentDetail, BotDetail, CarrierDetail, ClassDetail, Company, CohostedDomains, DisposableDetail, DnsAddressRecord, DnsCnameRecord, DnsMxRecord, DnsNsRecord, DnsResolverDetail, DomainBacklinks, DomainDns, DomainHost as WireDomainHost, DomainIpRange, DomainIpRanges, DomainLookupResponse as WireDomainLookupResponse, DomainRedirects, DomainWeb, DomainWebLinks, Entitlement, EntitlementApikey, EntitlementPlan, EntitlementUsage, HostedDomains, Location, LookupResponse as WireLookupResponse, ProxyDetail, PubproxyDetail, Rwhois, SatelliteDetail, SmtpDetail, SshDetail, UserAgentVerdict, WebDetail, Whois } from './generated/types.gen.js';
2
2
  export type { AbuseContact, AsnHostedDomains, AsnLookupResponse, AsnPrefix, BitTorrentDetail, BotDetail, CarrierDetail, ClassDetail, Company, CohostedDomains, DisposableDetail, DnsAddressRecord, DnsCnameRecord, DnsMxRecord, DnsNsRecord, DnsResolverDetail, DomainBacklinks, DomainDns, DomainIpRange, DomainIpRanges, DomainRedirects, DomainWeb, DomainWebLinks, Entitlement, EntitlementApikey, EntitlementPlan, EntitlementUsage, HostedDomains, Location, ProxyDetail, PubproxyDetail, Rwhois, SatelliteDetail, SmtpDetail, SshDetail, UserAgentVerdict, WebDetail, Whois, };
3
- /** The network announcing an address. Every answer carries `country` and `rpki_status`. */
4
- export type Asn = Omit<WireAsn, 'country' | 'rpki_status'> & Partial<Pick<WireAsn, 'country' | 'rpki_status'>>;
5
- /** A lookup's answer as it came off the wire. Every answer carries `is_bot`. */
6
- export type LookupResponse = Omit<WireLookupResponse, 'asn' | 'is_bot'> & {
3
+ type HeldFlag = 'is_carrier' | 'is_satellite' | 'is_ssh' | 'is_smtp' | 'is_web' | 'is_dns_resolver' | 'is_bittorrent';
4
+ /**
5
+ * The network announcing an address. Every answer carries `country` and `rpki_status`. `type` is a paid
6
+ * plan's: a free answer may omit it, though this type still says `string` until the next major.
7
+ */
8
+ export type Asn = Omit<WireAsn, 'country' | 'rpki_status' | 'type'> & Partial<Pick<WireAsn, 'country' | 'rpki_status'>> & Required<Pick<WireAsn, 'type'>>;
9
+ /**
10
+ * A lookup's answer as it came off the wire. `is_bot` is optional here, and the seven flags after it, `company`
11
+ * and `abuse` are typed as they were until the next major although a free answer omits them: read them from
12
+ * `Result`, where an absent flag is `false` and an absent `company` or `abuse` is empty.
13
+ */
14
+ export type LookupResponse = Omit<WireLookupResponse, 'asn' | 'is_bot' | HeldFlag | 'company' | 'abuse'> & {
7
15
  asn: Asn;
8
- } & Partial<Pick<WireLookupResponse, 'is_bot'>>;
16
+ } & Partial<Pick<WireLookupResponse, 'is_bot'>> & Required<Pick<WireLookupResponse, HeldFlag | 'company' | 'abuse'>>;
9
17
  /** An address the domain resolves to, and the network announcing it. */
10
18
  export type DomainHost = Omit<WireDomainHost, 'asn'> & {
11
19
  asn: Asn;
@@ -22,7 +30,7 @@ export type DomainLookupResponse = Omit<WireDomainLookupResponse, 'hosting'> & {
22
30
  * `undefined` is "not in your plan", `false` is "checked, and no". Use
23
31
  * `?? false` when you only care whether the address is flagged. The same holds
24
32
  * inside `location`, `asn`, `company` and `abuse`, whose paid members are
25
- * absent on Unlimited.
33
+ * absent from the basics.
26
34
  *
27
35
  * A detail object that is present but empty (`{}`, and Web IP's `[]`) means the
28
36
  * flag above it is false. A populated one always carries every one of its keys.
@@ -43,11 +51,14 @@ export interface Result {
43
51
  isCdn?: boolean;
44
52
  /**
45
53
  * In Bot IP: an automated client's address, such as a search engine's or an AI
46
- * company's crawler. Every answer carries it, on every plan; `bot` says whose.
47
- * Optional in this type only so a `Result` written out by hand still compiles.
54
+ * company's crawler. On a paid plan or a free key's full answers; absent from the basics. `bot` says whose.
48
55
  */
49
56
  isBot?: boolean;
50
57
  isAnycast: boolean;
58
+ /**
59
+ * In Carrier IP, as the six flags after it are each in their own dataset: on a paid plan or a free key's
60
+ * full answers. The basics omit them, and they read `false` there rather than absent until the next major.
61
+ */
51
62
  isCarrier: boolean;
52
63
  isSatellite: boolean;
53
64
  isSsh: boolean;
@@ -56,14 +67,14 @@ export interface Result {
56
67
  isDnsResolver: boolean;
57
68
  isBittorrent: boolean;
58
69
  /**
59
- * On answers to a key on the free plan only: `false` while its organization's
60
- * trial of every field lasts, `true` once the answer has Unlimited's.
70
+ * On answers to a key on the free plan only: `false` while the organization's
71
+ * full answers for the UTC day last, `true` once they are used and the answer has the basics.
61
72
  */
62
73
  trialExpired?: boolean;
63
74
  /**
64
75
  * On answers to a key on a paid plan only: `false` while the answer has every
65
76
  * field, `true` once the organization's overage cap is reached and the answer
66
- * has Unlimited's. Lookups answered past the cap are not billed.
77
+ * has the basics. Lookups answered past the cap are not billed.
67
78
  */
68
79
  capReached?: boolean;
69
80
  vpn?: ClassDetail;
@@ -87,9 +98,17 @@ export interface Result {
87
98
  bittorrent?: BitTorrentDetail;
88
99
  location: Location;
89
100
  asn: Asn;
101
+ /**
102
+ * Who uses the address: a paid plan's or a free key's full answers'. Typed as present until the next
103
+ * major: the basics omit it and it reads `{ name: '', domain: '' }` there, `raw` showing it was not served.
104
+ */
90
105
  company: Company;
91
106
  /** The name the address's reverse DNS (PTR) record points to, empty when it has none. */
92
107
  hostname: string;
108
+ /**
109
+ * Where to report abuse: a paid plan's or a free key's full answers'. Typed as present until the next
110
+ * major: the basics omit it and it reads `{ email: '' }` there, `raw` showing it was not served.
111
+ */
93
112
  abuse: AbuseContact;
94
113
  whois?: Whois;
95
114
  rwhois?: Rwhois;
package/dist/types.js CHANGED
@@ -30,8 +30,20 @@ const DOMAIN_RESULT_NAMES = {
30
30
  web: 'web', redirects: 'redirects', backlinks: 'backlinks', trial_expired: 'trialExpired',
31
31
  cap_reached: 'capReached',
32
32
  };
33
+ // Typed `boolean` on `Result` until the next major, so an answer without one reads `false`, as every
34
+ // free answer said before 2026-11-26. `raw` still shows what was served.
35
+ const HELD_FLAGS = [
36
+ 'isCarrier', 'isSatellite', 'isSsh', 'isSmtp', 'isWeb', 'isDnsResolver', 'isBittorrent',
37
+ ];
33
38
  export function toResult(body) {
34
- return renamed(body, RESULT_NAMES);
39
+ const result = renamed(body, RESULT_NAMES);
40
+ for (const flag of HELD_FLAGS) {
41
+ result[flag] ??= false;
42
+ }
43
+ // Typed as objects on `Result` until the next major: an answer without one reads each required member empty.
44
+ result.company ??= { name: '', domain: '' };
45
+ result.abuse ??= { email: '' };
46
+ return result;
35
47
  }
36
48
  export function toAsnResult(body) {
37
49
  return renamed(body, ASN_RESULT_NAMES);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "internetdata-web",
3
- "version": "1.7.0",
3
+ "version": "1.9.0",
4
4
  "description": "Official browser client library for the InternetData API. Look up IP addresses, ASNs and domains from a page or a browser extension.",
5
5
  "type": "module",
6
6
  "license": "MIT",