How Can I Export Search Results?
This article applies to our legacy scanner, which provides data to our legacy Search product. Censys Search 2.0 is in beta and can be found at search.censys.io.
Censys makes it easy to query the entire Internet for very specific data. While there is no way to export the results of a query directly from the Search web app, we have a CLI Tool that makes exporting results just as easy as querying for them.
Documentation for the CLI module is located here: censys-python docs
For example, after you've installed the CLI Tool, running this query:
censys "ip: [ 184.108.40.206 TO 220.127.116.11 ]" \
--query_type ipv4 --fields ip protocols --output json
will write the first 100 results to a JSON file.
You can also utilize the
--fields [space-separated list of fields you're interested in] --append false to specify the fields to be returned in your results JSON.