---
title: "Predict censorship risk"
method: POST
path: "/hydra/v1/predict"
tags: ["Detection"]
---

# Predict censorship risk

`POST /hydra/v1/predict`

Predict the likelihood and trend of censorship for a country over a given time horizon using the GradientBoosting classifier.

## Request body

- PredictRequest
  - `country` string, required
  - `target` string
  - `horizon` integer

## Response `200`

Prediction result

- PredictResponse
  - `country` string, required
  - `target` string, nullable
  - `currentRisk` number, required
  - `predictedRisk` number, required
  - `confidence` number, required
  - `trend` 'increasing' | 'stable' | 'decreasing', required
  - `horizon` integer, required
  - `factors` object[]
    - `factor` string
    - `importance` number
  - `modelVersion` string
  - `timestamp` string, date-time

## Other responses

- `400` — Bad request
- `401` — Invalid or missing API key

---

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