Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
censys-python — An easy-to-use and lightweight API wrapper for Censys APIs. | Kitploit
Tools/GitHubGitHub/censys/censys-python
OSINT (Open Source Intelligence)ReconnaissanceInformation GatheringUtilities & FrameworksAPI Security
GitHubcensys/censys-python

censys-python

An easy-to-use and lightweight API wrapper for Censys APIs.

View Repository
468988 months agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
Website

Censys Python Library

PyPI Python Version Read the Docs (version) GitHub Discussions PRs Welcome License

[!WARNING] DEPRECATION NOTICE: The Censys Search v1 and v2 APIs will be deprecated soon. Please migrate to the new Censys Platform.

  • 📖 New API Documentation: https://docs.censys.com/reference/get-started#/
  • 📦 New Python SDK: Install with pip install censys-platform - https://pypi.org/project/censys-platform/
  • 🖥️ New CLI Tool (cencli): https://docs.censys.com/docs/platform-cli
    • ⚠️ If you plan to use the new CLI, you will need to uninstall this package's CLI first as both use the censys command name

The Censys ASM APIs in this library are NOT deprecated and will continue to be supported.

An easy-to-use and lightweight API wrapper for Censys APIs (censys.io). Python 3.8+ is currently supported. This library has been tested on Python 3.8 and 3.x (Currently version 3.10).

Features

  • Search Censys data
  • Bulk Certificate lookups
  • Download Bulk Data
  • Manage assets, events, and seeds in Censys ASM
  • Command-line interface

Getting Started

The library can be installed using pip.

root@kitploit:~
pip install censys

To upgraded using pip.

root@kitploit:~
pip install --upgrade censys

Alternatively, you can install the library using poetry.

root@kitploit:~
git clone https://github.com/censys/censys-python.git
cd censys-python/
poetry install

Optionally, you can enable tab completion for the CLI by adding this line to your ~/.bashrc, ~/.zshrc, or equivalent.

Please note that autocomplete is supported for field names in the search command.

root@kitploit:~
eval "$(register-python-argcomplete censys)"

To configure your search credentials run censys config or set both CENSYS_API_ID and CENSYS_API_SECRET environment variables.

root@kitploit:~
$ censys config

Censys API ID: XXX
Censys API Secret: XXX
Do you want color output? [y/n]: y

Successfully authenticated for [email protected]

If you have a Censys ASM account, you can configure your ASM credentials by running censys asm config or set both CENSYS_ASM_API_KEY environment variables.

root@kitploit:~
$ censys asm config

Censys ASM API Key: XXX
Do you want color output? [y/n]: y

Successfully authenticated

Examples

The examples located in the examples/ directory are a great place to start. You can also find more examples in the usage documentation.

Documentation

Read the Docs

Resources

  • Source
  • Issue Tracker
  • Changelog
  • Documentation
  • Discussions
  • Censys Homepage
  • Censys Search

Contributing

All contributions (no matter how small) are always welcome. See Contributing to Censys Python

Development

This project uses poetry for dependency management. Please ensure you have installed the latest version.

root@kitploit:~
git clone [email protected]:censys/censys-python.git
cd censys-python/
poetry install

Testing

root@kitploit:~
# Run tests
poetry run pytest
# With coverage report
poetry run pytest --cov-report html

License

This software is licensed under Apache License, Version 2.0

  • Copyright (C) 2024 Censys, Inc.
Download Tool