---
title: "Get threat history for a web property"
method: GET
path: "/v3/threat-hunting/web/{webproperty_id}/observations/threats"
tags: ["Threat Hunting", "Adversary Investigation"]
---

# Get threat history for a web property

`GET /v3/threat-hunting/web/{webproperty_id}/observations/threats`

Retrieve historical threat observations for a web property. This endpoint returns time ranges during which threats were detected on the host.<br><br>You can define a specific time frame of interest. If you do not specify a time frame, this endpoint will search the historical dataset that is available to your account.<br><br>You can filter by threat name.<br><br>This endpoint is available to organizations that have access to the Adversary Investigation module.

## Path parameters

- `webproperty_id` string, required — A web property identifier in hostname:port format.

## Query parameters

- `organization_id` string, uuid, required — The ID of a Censys organization to associate the request with. See the [Getting Started docs](https://docs.censys.com/reference/get-started#step-3-find-and-use-your-organization-id-optional) for more information.
- `start_time` string — Start of date range (RFC3339 format, e.g., 2024-01-01T00:00:00Z). If not specified, defaults to the maximum query window back from the end time.
- `end_time` string — End of date range (RFC3339 format, e.g., 2024-01-31T23:59:59Z). If not specified, defaults to now. Cannot be in the future.
- `page_size` integer — Number of results per page (max 100)
- `page_token` string — Pagination token from previous response
- `threat_name` string — Filter by threat name
- `order_by` string[], nullable — Order observations by these fields. Multiple values can be provided to sort by multiple fields (e.g., ['threat_name DESC']).

## Headers

- `X-Organization-ID` string, uuid — The ID of a Censys organization to associate the request with. See the [Getting Started docs](https://docs.censys.com/reference/get-started#step-3-find-and-use-your-organization-id-optional) for more information. Note: The header parameter is supported for atypical use cases; we recommend always providing this field via the query parameter.

## Response `200`

A list of threat observation ranges

- ResponseEnvelopeThreatsOnWebResponse
  - `result` ThreatsOnWebResponse
    - `NextPageToken` string, required
    - `Ranges` ThreatOnWebRange[], nullable, required
      - `end_time` string, date-time, required — When the threat was last observed
      - `start_time` string, date-time, required — When the threat was first observed
      - `threat_name` string, required — Name of the detected threat

## Other responses

- `400` — Bad request
- `401` — Request does not contain a valid Authorization token
- `403` — User does not have permission to access this data
- `404` — Resource not found
- `409` — Feature not enabled
- `500` — Internal server error

---

[API](https://skmtc.net/censys/apis/censys-platform-api.md) · [All operations](https://skmtc.net/censys/apis/censys-platform-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/censys/censys-platform-api/revisions/261c916bf05b/schema)
