Overview
Censys is an internet-wide scanning platform that lets you search for any internet-connected host, device, or certificate using its REST API. Researchers and security teams use it to discover exposed services, map attack surfaces, and track certificate issuance. It indexes billions of records and refreshes data frequently.
Beginner Tip
Use the /v2/hosts/search endpoint to start exploring — simple queries like "services.port: 443 and location.country: JP" work without any special syntax knowledge. Sign up for a free account to get API credentials immediately.
Available Data
Example Response
{
"status": "success",
"data": {
"result": "Data from Censys",
"description": "Search engine for Internet connected host and devices",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
result.hits List of host objects matching the search query. result.hits[].ip IP address of the discovered internet host. result.hits[].services List of services detected on the host, each with port and protocol info. result.total Total number of hosts matching the query across all pages. result.links.next Cursor token to retrieve the next page of results. Implementation Example
// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://search.censys.io/api";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Similar APIs
View All →Application Environment Verification
Application Environment Verification (AEV) is an Android library and API from FingerprintJS that checks whether a user device is safe to use.
BinaryEdge
BinaryEdge is a cybersecurity platform that continuously scans the entire internet and exposes the results through its API.
Botd
Botd is an open-source JavaScript library and API from FingerprintJS that detects whether a web visitor is a bot or a real human browser.
Bugcrowd
The Bugcrowd API gives you programmatic access to your organization's bug bounty program data, including submissions, rewards, and researcher profiles.
Complete Criminal Checks
Complete Criminal Checks provides a REST API to search for criminal offense records across all U.S.