censys-api
Skill35 starsChanged 45 days agoMITView on GitHub
Censys API v2 reference. Host reconnaissance and certificate data.
In this repository79 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- abuseipdb-apiSkill
- achSkill
- campaign-trackingSkill
- carding-financial-fraudSkill
- china-cyber-espionageSkill
- claim-extractionSkill
- confidence-levelsSkill
- control-coverage-mappingSkill
- crowdstrike-apiSkill
- cti-hyperloopSkill
- cti-orchestratorSkill
- cti-setupSkill
- darkweb-collectionSkill
- devils-advocacySkill
- domain-investigationSkill
- dprk-cyber-espionageSkill
- feedback-loopsSkill
- greynoise-apiSkill
- hacktivismSkill
- hash-investigationSkill
- horizon-scanningSkill
- indicator-pivotingSkill
- infostealersSkill
- initial-access-brokersSkill
- intelligence-sharingSkill
- intelligence-writingSkill
- ioc-enrichment-workflowSkill
- ioc-exportSkill
- ip-investigationSkill
- iran-cyber-espionageSkill
- key-assumptions-checkSkill
- kql-writingSkill
- likelihood-languageSkill
- lookup-abuseipdbSkill
- lookup-censysSkill
- lookup-crowdstrikeSkill
- lookup-greynoiseSkill
- lookup-liberty91Skill
- lookup-mispSkill
- lookup-openctiSkill
- lookup-otxSkill
- lookup-ransomwareliveSkill
- lookup-reversinglabsSkill
- lookup-sentinelSkill
- lookup-shodanSkill
- lookup-urlscanSkill
- lookup-virustotalSkill
- malware-analysisSkill
- maturity-assessmentSkill
- mitre-attackSkill
- osint-methodologySkill
- otx-apiSkill
- phishing-social-engineeringSkill
- pir-managementSkill
- quality-controlSkill
- quality-of-information-checkSkill
- ransomware-ecosystemSkill
- reversinglabs-apiSkill
- The first 60 shown.
The file
Files
Censys API v2
Base URL
https://search.censys.io/api/v2
Authentication
Basic Auth: $CENSYS_API_ID:$CENSYS_API_SECRET
curl -s "https://search.censys.io/api/v2/hosts/{ip}" \
-u "$CENSYS_API_ID:$CENSYS_API_SECRET"Rate Limits
- Free: 250 queries/month, 5 results/query
- Paid: Higher limits based on plan
Important: Free tier is very limited. Use selectively — prioritise high-value lookups.
Key Endpoints
View Host
curl -s "https://search.censys.io/api/v2/hosts/{ip}" \
-u "$CENSYS_API_ID:$CENSYS_API_SECRET"Useful fields:
result.services[]— port, service_name, transport_protocol, bannerresult.services[].tls.certificates— TLS certificate chainresult.autonomous_system— ASN inforesult.location— geographic locationresult.operating_system— OS detectionresult.last_updated_at— scan freshness
Search Hosts
curl -s "https://search.censys.io/api/v2/hosts/search?q={query}" \
-u "$CENSYS_API_ID:$CENSYS_API_SECRET"Search syntax: services.port: 443 AND services.tls.certificates.leaf_data.subject.common_name: example.com
View Certificate
curl -s "https://search.censys.io/api/v2/certificates/{fingerprint}" \
-u "$CENSYS_API_ID:$CENSYS_API_SECRET"Common Search Queries
ip: {ip}— specific hostservices.tls.certificates.leaf_data.subject.common_name: {domain}— hosts with cert for domainservices.http.response.body_hash: {hash}— hosts serving same contentservices.jarm.fingerprint: {jarm}— hosts with same JARM fingerprint (C2 detection)labels: {label}— Censys-labeled hosts
CTI Value
Censys excels at:
- Certificate transparency analysis (finding related infrastructure)
- JARM fingerprinting (identifying C2 frameworks)
- Service banner analysis
- Historical infrastructure changes
Response Summary Format
ip: <IP>
services:
- port: <port>
service: <name>
banner: <truncated>
certificates:
- subject_cn: <common name>
issuer: <issuer>
valid_from: <date>
valid_to: <date>
autonomous_system:
asn: <number>
name: <name>
location:
country: <country>
city: <city>
last_updated: <date>Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

