> ## Documentation Index
> Fetch the complete documentation index at: https://api-reference.scale.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Model Prediction by Absolute Index

> [!NOTE]
>
> **[Click for Python SDK](https://docs.nucleus.scale.com/en/latest/api/nucleus/index.html#nucleus.Dataset.predictions_iloc)**
>
> ```
> Dataset.predictions_iloc(
>     model: Model,
>     index: int
> ) -> Prediction
> ```

This endpoint should be used if you wish to retrieve an individual model prediction object by integer offset, e.g. 42 would retrieve the 42nd uploaded prediction in order. This endpoint only supports exporting geometric predictions — support for additional types is coming soon!


## OpenAPI

````yaml openapi/nucleus.json GET /dataset/{dataset_id}/model/{model_id}/iloc/{index}
openapi: 3.1.0
info:
  title: Nucleus API
  version: '1.1'
servers:
  - url: https://api.scale.com/v1/nucleus
security:
  - sec0: []
paths:
  /dataset/{dataset_id}/model/{model_id}/iloc/{index}:
    get:
      summary: Get Model Prediction by Absolute Index
      operationId: get-model-prediction-by-absolute-index
      parameters:
        - name: dataset_id
          in: path
          description: The Scale-generated ID of the Dataset.
          schema:
            type: string
          required: true
        - name: model_id
          in: path
          description: The Scale-generated ID of the Model.
          schema:
            type: string
          required: true
        - name: index
          in: path
          description: >-
            The index or integer offset corresponding to the items position
            within the Dataset.
          schema:
            type: string
          required: true
      responses:
        '200':
          description: '200'
          content:
            application/json:
              examples:
                Result:
                  value:
                    box:
                      label: car
                      type: box
                      geometry:
                        x: 655.2
                        'y': 269.3
                        width: 70.5
                        height: 50.5
                      annotation_id: img_0_car_box_0
                      confidence: 0.86
                      class_pdf:
                        car: 0.86
                        pedestrian: 0.12
                        bike: 0.02
              schema:
                type: object
                properties:
                  box:
                    type: object
                    properties:
                      label:
                        type: string
                        example: car
                      type:
                        type: string
                        example: box
                      geometry:
                        type: object
                        properties:
                          x:
                            type: number
                            example: 655.2
                            default: 0
                          'y':
                            type: number
                            example: 269.3
                            default: 0
                          width:
                            type: number
                            example: 70.5
                            default: 0
                          height:
                            type: number
                            example: 50.5
                            default: 0
                      annotation_id:
                        type: string
                        example: img_0_car_box_0
                      confidence:
                        type: number
                        example: 0.86
                        default: 0
                      class_pdf:
                        type: object
                        properties:
                          car:
                            type: number
                            example: 0.86
                            default: 0
                          pedestrian:
                            type: number
                            example: 0.12
                            default: 0
                          bike:
                            type: number
                            example: 0.02
                            default: 0
        '400':
          description: '400'
          content:
            application/json:
              examples:
                Result:
                  value: {}
              schema:
                type: object
                properties: {}
      deprecated: false
components:
  securitySchemes:
    sec0:
      type: http
      scheme: basic

````