Repository navigation
Describe InternetData's keyless answer as the basics - #2000
Open
UmanShahzad wants to merge 2 commits into
Open
UmanShahzad wants to merge 2 commits into
UmanShahzad wants to merge 2 commits into
Conversation
Without a key a lookup answers the basics: country-level location, time zone, currency, the ASN's number, name, domain, prefix and country, the hostname and the Tor, relay, anycast and bogon flags. The ASN type, the company, the abuse contact and city-level location need a paid key. A used-up quota is a 429 without Retry-After and a burst is a 429 with it. The adapter text still described the earlier answer, so the description, instructions, prerequisites, key help, verify hints and the lookup_ip and get_my_ip tool text now say that. Tools, paths and headers are unchanged. Follows HelpCode-ai#1875 and HelpCode-ai#1911.
A lookup without a key has no quota of its own, so the instructions no longer say the basics come within one. The 429 text is unchanged: a used-up quota belongs to a key's organization, and a burst carries Retry-After.
8 of 14 tasks
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follows #1911. Without a key InternetData answers the basics, so the adapter's text now lists
asn.type,companyand theabusecontact under the paid key too, and tells a burst429(withRetry-After) from a used-up quota (without). I work on InternetData.Changes
intl/internetdata.json: thedescription,instructions,prerequisites,verifyHintsandinternetdata_lookup_iptextType
Testing
curl https://api.internetdata.io/8.8.8.8returns onlyasn(withouttype),hostname,ip,is_anycast,is_bogon,is_relay,is_tor,location,relayandtorwithout a keyChecklist
npm test): CI runs themRelated Issues
Relates to #1875 and #1911.