GreyNoise-Intelligence / api.greynoise.io

Code + documentation for the public GreyNoise API
https://greynoise.io
313 stars 24 forks source link

IP Context v2 API Endpoint Returns "Invalid IP" for 8.8.8.8 #20

Open cmlh opened 3 years ago

cmlh commented 3 years ago

The documentation at Read The Docs has an example for 58.220.219.247 but not 8.8.8.8 for the api_client.ip example.

HTTP Status 400 Bad Request and Invalid IP submitted error message is returned when attempting to use 8.8.8.8 as shown below: $ curl --include -X GET -H key:[INSERT] https://api.greynoise.io/v2/noise/context/8.8.8.8 HTTP/2 400 ... {"error":"Invalid IP submitted"}

Can a list of common IP addresses that result in this error be published and the HTTP Status Code be modified to something more descriptive too?