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

Description Usage Arguments Details Value Examples

View source: R/view.r

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

1
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).

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.

Value

list of information about the endpoint

Examples

1
2
3
4
## Not run: 
view_document("google.com")

## End(Not run)

censys documentation built on May 2, 2019, 10:45 a.m.