Skip to content

Latest commit

 

History

History
48 lines (29 loc) · 1.47 KB

usage-v1.rst

File metadata and controls

48 lines (29 loc) · 1.47 KB

Usage v1

The Censys Search API provides functionality for interacting with Censys resources such as Data, and for viewing Account information such as query quota.

There is one API options that this library provides access to:

More details about each option can be found in the Censys API documentation. A list of index fields can be found in the Censys API definitions page.

Note

Please note that the Censys Search Certificates v1 API is being deprecated. Please use the :ref:`CensysCerts (v2) index <usage-v2:Usage v2>` for this functionality.

data

Below we show an example using the :attr:`CensysData <censys.search.v1.CensysData>` index.

from censys.search import CensysData

c = CensysData()

# View a specific result from a specific series
result = c.view_result("ipv4_2018", "20200818")
print(result)

account

Below we show an example using the :attr:`CensysHosts <censys.search.v2.CensysHosts>` index.

from censys.search import CensysHosts

c = CensysHosts()

# Gets account data
account = c.account()
print(account)

# Gets account quota
quota = c.quota()
print(quota)