---
title: "Get the details for a hostname"
method: GET
path: "/bulk/hostnames/{hostname}"
tags: ["bulk"]
---

# Get the details for a hostname

`GET /bulk/hostnames/{hostname}`

## Request

- Base URL: `https://cyber-risk.upguard.com/api/public`
- URL: `https://cyber-risk.upguard.com/api/public/bulk/hostnames/{hostname}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/upguard/apis/upguard-cyberrisk-api/docs/bulk/hostnames/:hostname/get.ts> (a function with typed inputs; its response is checked against the schema)

Get the details for a hostname. The provided hostname must be a fully
qualified domain name or an IPv4 address.

This is an add-on endpoint not available to all accounts. Please contact support for information about bulk endpoints and how to upgrade your account.

Required API key permissions: `Admin` (select when creating API key in Account Settings)

## Path parameters

- `hostname` string, hostname, required

## Query parameters

- `omit_scan_info` boolean
- `omit_vendor` boolean
- `omit_labels` boolean

## Response `200`

Returns the details of the hostname.

- BulkHostname
  - `active` boolean: The active state of the hostname. These will be omitted if the omit_scan_info query parameter is true.
  - `automated_score` integer: The automated score of the hostname. This will be omitted if the omit_scan_info query parameter is true.
  - `hostname` string, hostname: The name of the hostname.
  - `labels` string[]: The list of labels associated with the hostname. This will be omitted if the omit_labels query parameter is true.
  - `last_scanned_at` string, date-time: The timestamp this hostname was last scanned at.
  - `risks` BulkRisk[]: The list of risks associated with the hostname. These will be omitted if the omit_scan_info query parameter is true.
    - `category` 'website_sec' | 'email_sec' | 'network_sec' | 'ip_domain_reputation' | 'brand_protect' | 'attack_surface' | 'dns' | 'vulnerability_management' | 'data_leakage' | 'encryption' | 'questionnaire_risks' | 'vulns' | 'typosquatting' | 'emailexposures' | 'dataleaks' | 'additional_evidence': The risk category identifier
    - `description` string: A long description of the risk
    - `finding` string: A short description of the finding
    - `id` string: The risk identifier
    - `risk` string: A short description of the risk
    - `riskSubtype` string: The subtype of the risk, e.g. the subtype of the verified_vuln:CVE-2021-34473 is CVE-2021-34473. This field will be empty if the risk has no subtype, e.g. for wp_version_exposed, or for generic risks like verified_vuln:* where the subtype is only determined when the full risk is specified.
    - `riskType` string: The type of the risk, e.g. the type of the verified_vuln:CVE-2021-34473 is verified_vuln
    - `severity` 'pass' | 'info' | 'low' | 'medium' | 'high' | 'critical': The risk severity
  - `vendor` BulkVendor
    - `id` integer: The ID of the vendor.
    - `name` string: The name of the vendor.
    - `primary_hostname` string, hostname: The primary hostname of the vendor.

## Other responses

- `403`: Your API key does not have permission to perform this action.
- `422`: An invalid parameter was supplied or a mandatory parameter was missing
- `429`: Too many requests have been made to this endpoint.
- `500`: An internal system error occurred

---

[API](https://skmtc.dev/upguard/apis/upguard-cyberrisk-api.md) - [All operations](https://skmtc.dev/upguard/apis/upguard-cyberrisk-api/llms.txt) - [OpenAPI document](https://skmtc.dev/upguard/apis/upguard-cyberrisk-api/revisions/d044bf6dc61e?raw)
