Get a host by IP address: services, software, location, AS, DNS, WHOIS
GET/v3/global/asset/host/{host_id}
- Takes: IP address
- Passive: the target is not contacted
- Cost: 1 credit
- Plan: All plans, including Free
Returns one host as Censys currently sees it, or at a past point in time with at_time. Use fields or exclude_fields (not both) to trim the response.
Path parameters
host_idThe IP address of the host
Query parameters
organization_idCensys organization ID (UUID). If omitted, the user's free wallet is used where applicable
at_timeRFC 3339 timestamp, to view the host at that point in time
fieldsComma-separated fields to include, in dot notation; omit or * for all
exclude_fieldsComma-separated fields to leave out; cannot be combined with fields
Response fields · 11ShowHide
ip
The host's IP address
services[]
Services seen on the host: port, protocol, transport_protocol, software, labels, banner, cert, scan_time, threats, vulns
service_count
Number of services
location
city, province, country, country_code, continent, postal_code, timezone, coordinates, registered_country
autonomous_system
asn, name, description, bgp_prefix, organization, country_code
dns
DNS names associated with the host
whois
WHOIS data for the address
operating_system
Detected operating system
labels[]
Labels Censys applied to the host
privacy[]
Privacy services used by the IP, such as VPNs, proxies or Tor
extensions
Additional data
curl 'https://api.platform.censys.io/v3/global/asset/host/203.0.113.7' \
-H 'Authorization: Bearer YOUR_API_KEY'{
"result": {
"resource": {
"ip": "203.0.113.7",
"location": {
"city": "Amsterdam",
"country": "Netherlands",
"country_code": "NL",
"continent": "Europe",
"timezone": "Europe/Amsterdam"
},
"autonomous_system": {
"asn": 64500,
"name": "EXAMPLE-NET",
"description": "Example Networks",
"bgp_prefix": "203.0.113.0/24",
"country_code": "NL"
},
"service_count": 2,
"services": [
{
"port": 22,
"protocol": "SSH",
"scan_time": "2025-01-01T00:00:00Z"
},
{
"port": 443,
"protocol": "HTTP",
"scan_time": "2025-01-01T00:00:00Z"
}
]
},
"extensions": {}
}
}