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 f1c7511
Browse filesBrowse the repository at this point in the historyBrowse files
Read cap_reached on a paid answer past its overage cap
Re-pins the spec to 2026.11.17. A key on a paid plan past its
organization's overage cap is now answered with Unlimited's fields and
cap_reached true, never a 429, and every other answer to a paid key
carries cap_reached false. The address, AS and domain results expose
it beside trial_expired, and one that is not a boolean is a retried
server_error. The README says so, and that a 429 without Retry-After
now comes from something in front of the API, never the API itself.
Copy file name to clipboardExpand all lines: README.md
+3-2Lines changed: 3 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -199,7 +199,7 @@ result = client.lookup("146.70.116.130", timeout=2)
199
199
200
200
**Changed in 2.2.0:** a timeout of 0 or less, NaN or a string used to be accepted, and failed every call.
201
201
202
-
Note that `rate_limited` and `quota_exceeded` both arrive as HTTP 429 and are not the same thing. A rate limit carries `Retry-After`, and retrying after it works: Unlimited's per-minute limit is one. A spent quota needs your allowance raised or the window to roll over. The library retries rate limits for you, but not a spent quota, and nothing else you sent either.
202
+
Note that `rate_limited` and `quota_exceeded` both arrive as HTTP 429 and are not the same thing. A rate limit carries `Retry-After`, and retrying after it works: Unlimited's per-minute limit is one. One without it is `quota_exceeded`. The library retries rate limits for you, but not `quota_exceeded`, and nothing else you sent either. 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 `cap_reached` instead.
203
203
204
204
### Database downloads
205
205
@@ -352,13 +352,14 @@ Each redirect URI must be https on a public host name, or http on a loopback add
352
352
353
353
### Fields your plan does not include
354
354
355
-
Unlimited leaves out the VPN, proxy, hosting and CDN flags, the detail behind every flag but Tor's and relay's, the city and region, the Whois records and the hosted domains; a free-plan key's answer carries `trial_expired`, true once its daily trial is spent. Those are `None` when your key does not include them, which means "not in your plan" rather than "checked, and no", inside `location`, `asn`, `company` and `abuse` too.
355
+
Unlimited leaves out the VPN, proxy, hosting and CDN flags, the detail behind every flag but Tor's and relay's, the city and region, the Whois records and the hosted domains; a free-plan key's answer carries `trial_expired`, true once its daily trial is spent. A paid key's carries `cap_reached`, true once its organization's overage cap is reached, when the answer has Unlimited's fields and isn't billed. Those are `None` when your key does not include them, which means "not in your plan" rather than "checked, and no", inside `location`, `asn`, `company` and `abuse` too.
356
356
357
357
```python
358
358
result.flagged("is_hosting") # False rather than None on a plan without it
359
359
result.is_hosting isNone# True on Unlimited: not in your plan
360
360
result.location.city isNone# True on Unlimited
361
361
result.trial_expired isTrue# a free-plan key's daily trial is spent
362
+
result.cap_reached isTrue# a paid key is past its overage cap
0 commit comments