A
A
Anton20012021-06-26 22:46:57
API
Anton2001, 2021-06-26 22:46:57

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

1 answer(s)
A
Anton Baryshev, 2021-06-27
@AVollane

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 question

Ask a Question

731 491 924 answers to any question