censys (version 0.1.0)

view_document: Retrieve data that Censys has about a specific host, website, or certificate.

Description

The view endpoint fetches the structured data we have about a specific host, website, or certificate once you know the host's IP address, website's domain, or certificate's SHA-256 fingerprint.

Usage

view_document(index, id)

Arguments

index
The search index the document is in. Must be one of either ipv4, websites, or certificates.
id
The ID of the document you are requesting. In the ipv4 index, this is IP address (e.g., 192.168.1.1), domain name in the websites index (e.g., google.com) and SHA-256 fingerprint in the certificates index (e.g., 9d3b51a6b80daf76e074730f19dc01e643ca0c3127d8f48be64cf3302f6622cc).

Value

list of information about the endpoint

Details

You must have both CENSYS_API_ID and CENSYS_API_SECRET present in the R environment for the functions in this package to work. It is highly suggested that you place those in ~/.Renviron at least for interactive work.

Examples

Run this code
## Not run: 
# view_document("google.com")
# ## End(Not run)

Run the code above in your browser using DataCamp Workspace