---
title: "Recompute the score and letter for a record with any set of failing rows passing and findings cleared (licence or owner): the combined effect, which individual points cannot give, plus the least set that reaches the next letter"
method: GET
path: "/api/whatif"
---

# Recompute the score and letter for a record with any set of failing rows passing and findings cleared (licence or owner): the combined effect, which individual points cannot give, plus the least set that reaches the next letter

`GET /api/whatif`

## Request

- Base URL: `https://crawlcheck.io`
- URL: `https://crawlcheck.io/api/whatif`
- Auth: none required

## Query parameters

- `id` string
- `domain` string
- `clear` string

## Response `200`

what-if

- object, nullable
  - `ok` boolean, nullable
  - `kind` string, nullable
  - `subject` object, nullable
    - `domain` string, nullable
    - `report_id` string, nullable
    - `scanned_at` string, nullable
  - `now` object, nullable
    - `score` number, nullable
    - `letter` string, nullable
    - `cap` unknown
  - `asked` object, nullable
    - `fix` unknown[], nullable
      - unknown
    - `clear` string[], nullable
  - `result` object, nullable
    - `score` number, nullable
    - `letter` string, nullable
    - `cap` unknown
    - `capped` boolean, nullable
    - `held_at_reach` boolean, nullable
    - `rows_applied` number, nullable
    - `findings_cleared` number, nullable
  - `not_applied` object, nullable
    - `rows` unknown[], nullable
      - unknown
    - `findings` string[], nullable
  - `next_letter` object, nullable
    - `target` unknown
    - `why` string, nullable
  - `combined` object, nullable
    - `all_rows_fixed` object, nullable
      - `score` number, nullable
      - `letter` string, nullable
      - `cap` unknown
      - `capped` boolean, nullable
      - `held_at_reach` boolean, nullable
      - `rows_applied` number, nullable
      - `findings_cleared` number, nullable
    - `all_findings_cleared` object, nullable
      - `score` number, nullable
      - `letter` string, nullable
      - `cap` unknown
      - `capped` boolean, nullable
      - `held_at_reach` boolean, nullable
      - `rows_applied` number, nullable
      - `findings_cleared` number, nullable
    - `both` object, nullable
      - `score` number, nullable
      - `letter` string, nullable
      - `cap` unknown
      - `capped` boolean, nullable
      - `held_at_reach` boolean, nullable
      - `rows_applied` number, nullable
      - `findings_cleared` number, nullable
  - `rows` object[], nullable
    - `section_id` string, nullable
    - `row` string, nullable
    - `points` number, nullable
    - `why` unknown
  - `method` string, nullable

## Other responses

- `403`: needs a licence or the owner's session
- `404`: no record

---

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