---
title: "Detecção de mudança de entendimento (CUSUM + Welch t-test)"
method: GET
path: "/api/v1/mudanca"
tags: ["Jurimetria"]
---

# Detecção de mudança de entendimento (CUSUM + Welch t-test)

`GET /api/v1/mudanca`

## Request

- Base URL: `https://api.ragjur.ai`
- URL: `https://api.ragjur.ai/api/v1/mudanca`
- 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`)

## Query parameters

- `busca` string
- `fonte` string
- `tribunal` string
- `turma` string

## Response `200`

Mudanças detectadas

- object
  - `fonte` string
  - `turma` string
  - `busca` string
  - `merito` boolean
  - `labelFavoravel` string
  - `metodo` 'CUSUM + Welch t-test'
  - `periodos` PeriodoTaxa[]
    - `periodo` string: Início do trimestre (YYYY-MM-DD)
    - `total` integer
    - `classificados` integer
    - `favoravel` integer
    - `desfavoravel` integer
    - `taxa` number
    - `media_movel` number, nullable
  - `mudancas` object[]
    - `periodo` string
    - `p_value` number
    - `significativo` boolean
  - `resumo` object
    - `total_periodos` integer
    - `mudancas_detectadas` integer
    - `mudancas_significativas` integer
    - `maior_variacao` object, nullable

## 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)
