---
updatedAt: 2025-03-12T13:09:29.000Z
agentTools:
  projectIndex: https://docs.censys.com/llms.txt
---

# Export Search Results

Censys makes it easy to query the entire Internet for very specific data. While you cannot export the results of a query directly from the Legacy Search UI, you can use the [CLI Tool](https://github.com/censys/censys-python) to export results.

For example, after you install the CLI Tool, run a command like this to print the first 50 hosts matching your query to the screen:

```
from censys.search import CensysHosts

h = CensysHosts()

query = h.search ("services.service_name: HTTP", per_page=50, pages=1)
print(query.view_all())
```

You can find the full documentation for the [CLI module here](https://censys-python.readthedocs.io/en/stable/usage-cli.html).