Answer the question
In order to leave comments, you need to log in
How to work with api shodan'a?
Why is this request returning a 401 error?
And is it possible to work with shodan with simple get requests or do I need to install def. library?
WebClient client = new WebClient();
string html = client.DownloadString("https://api.shodan.io/shodan/host/count?key=МОЙ_КЛЮЧ&query=port:22&facets=org,os");
Answer the question
In order to leave comments, you need to log in
Hello.
401 Unauthorized - Authentication is required to access the requested resource.
Maybe, in addition to the key, some other authentication data is needed to work with the Shodan API? Try checking the field that contains the authentication conditions (like WWW-Authenticate), or read about them in the documentation.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question