---
title: "Previsão ponderada por recência (decaimento exponencial + Wilson)"
method: GET
path: "/api/v1/previsao-temporal"
tags: ["Jurimetria"]
---

# Previsão ponderada por recência (decaimento exponencial + Wilson)

`GET /api/v1/previsao-temporal`

## Request

- Base URL: `https://api.ragjur.ai`
- URL: `https://api.ragjur.ai/api/v1/previsao-temporal`
- Auth: one of:
  - API key in header `x-api-key`
  - OAuth 2 (authorization code, authorization URL `https://mcp.ragjur.ai/oauth/authorize`, token URL `https://mcp.ragjur.ai/oauth/token`, scopes: `ragjur:read`)

Cada decisão recebe peso 2^(-idade/meia-vida). A meia-vida depende da área (`area`) ou é inferida do tema.

## Query parameters

- `busca` string, required
- `fonte` string
- `tribunal` string
- `turma` string
- `relator` string
- `area` string

## Response `200`

Previsão temporal

- object
  - `total_decisoes` integer
  - `cobertura` object
    - `docs_no_periodo` integer
    - `classificados` integer
    - `pct` number
  - `previsao_temporal` object
    - `taxa_ponderada` number
    - `intervalo_confianca` Intervalo: Intervalo de confiança 95% (Wilson), em pontos percentuais
      - `lower` number
      - `upper` number
    - `n_efetivo` number
    - `p_hat_ponderado` number
  - `tendencia` object
    - `direcao` string
    - `variacao_percentual` number
    - `serie` object[]

## Other responses

- `400`: Parâmetro obrigatório ausente ou inválido
- `401`: Sem `x-api-key` ou chave inválida
- `403`: Chave desativada
- `429`: Rate limit excedido (janela deslizante por chave). Ver `Retry-After`, `X-RateLimit-Limit`, `X-RateLimit-Remaining`.
- `500`: Erro interno

---

[API](https://skmtc.dev/ragjur/apis/ragjur-api.md) · [All operations](https://skmtc.dev/ragjur/apis/ragjur-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ragjur/apis/ragjur-api/revisions/448e3f75cc15?raw)
