---
title: "Get data explorer predictions"
method: GET
path: "/api/{projectId}/raw-data/data-explorer/predictions"
tags: ["Raw data"]
---

# Get data explorer predictions

`GET /api/{projectId}/raw-data/data-explorer/predictions`

## Request

- Base URL: `https://studio.edgeimpulse.com/v1`
- URL: `https://studio.edgeimpulse.com/v1/api/{projectId}/raw-data/data-explorer/predictions`
- Auth: one of:
  - API key in header `x-api-key`
  - API key in cookie `jwt`
  - API key in header `x-jwt-token`
  - OAuth 2
    - Authorization code: `/v1/oauth/authorize`
    - Client credentials
    - Implicit: `/v1/oauth/authorize`
    - Password
    - Token URL: `/v1/oauth/token`
- TypeScript: <https://skmtc.dev/edgeimpulse/apis/edge-impulse-api/docs/api/:projectId/raw-data/data-explorer/predictions/get.ts> (a function with typed inputs; its response is checked against the schema)

Predictions for every data explorer point (only available when using current impulse to populate data explorer)

## Path parameters

- `projectId` integer, required

## Response `200`

OK

- DataExplorerPredictionsResponse
  - `success` boolean, required: Whether the operation succeeded
  - `error` string: Optional error description (set if 'success' was false)
  - `predictions` ModelPrediction[], required
    - `sampleId` integer, required
    - `startMs` number, required
    - `endMs` number, required
    - `label` string
    - `prediction` string, required
    - `predictionCorrect` boolean
    - `expectedAnomalyOutcome` string: Only set for anomaly detection projects. The expected anomaly outcome for this window — either “anomaly” or “no anomaly”. The outcome is determined by which labels are marked as anomalous in the project setup, or by the sample label if no such configuration is defined.
    - `f1Score` number: Only set for object detection projects
    - `anomalyScores` array[]: Only set for visual anomaly projects. 2D array of shape (n, n) with raw anomaly scores, where n varies based on the image input size and the specific visual anomaly algorithm used. The scores corresponds to each grid cell in the image's spatial matrix.
      - number[]
    - `boundingBoxes` BoundingBoxWithScore[]: Only set for object detection projects. Coordinates are scaled 0..1, not absolute values.
      - `label` string, required
      - `x` number, required
      - `y` number, required
      - `width` number, required
      - `height` number, required
      - `score` number, required
    - `labelMapPredictions` object: For samples with structured labels (in the form of a key/value label map), this object will contain per-key prediction info for the sample.
  - `labels` string[], required
  - `classificationType` 'classification' | 'regression', required

---

[API](https://skmtc.dev/edgeimpulse/apis/edge-impulse-api.md) - [All operations](https://skmtc.dev/edgeimpulse/apis/edge-impulse-api/llms.txt) - [OpenAPI document](https://skmtc.dev/edgeimpulse/apis/edge-impulse-api/revisions/e2a976d38427?raw)
