> ## Documentation Index
> Fetch the complete documentation index at: https://docs.woodwide.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Preview Dataset Rows

> Return a sample of rows from the dataset's latest ready version.

Only reads from the latest **ready** version. To fetch specific rows by ID, use [`POST /datasets/{dataset_id}/rows:lookup`](/api-reference/datasets/look-up-dataset-rows).


## OpenAPI

````yaml /openapi.json get /datasets/{dataset_id}/preview
openapi: 3.1.0
info:
  title: Woodwide API
  description: API service for the Woodwide platform
  version: 0.1.0
servers:
  - url: https://api.woodwide.ai
    description: Production
security: []
paths:
  /datasets/{dataset_id}/preview:
    get:
      tags:
        - Datasets
      summary: Preview Dataset Rows
      description: Return a sample of rows from the dataset's latest ready version.
      operationId: preview_dataset_datasets__dataset_id__preview_get
      parameters:
        - name: dataset_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Dataset Id
        - name: max_rows
          in: query
          required: false
          schema:
            type: integer
            maximum: 100
            minimum: 1
            default: 10
            title: Max Rows
            description: Maximum number of sample rows to return (default 10, max 100).
          description: Maximum number of sample rows to return (default 10, max 100).
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DatasetPreviewResponse'
              example:
                headers:
                  - id
                  - feature_a
                  - feature_b
                  - label
                rows:
                  - id: 0
                    feature_a: 1.2
                    feature_b: A
                    label: 0
                  - id: 1
                    feature_a: 3.4
                    feature_b: B
                    label: 1
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    DatasetPreviewResponse:
      properties:
        headers:
          items:
            type: string
          type: array
          title: Headers
          description: Column names.
        rows:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Rows
          description: 'Up to `max_rows` sample rows as {column: value} dicts.'
      type: object
      required:
        - headers
        - rows
      title: DatasetPreviewResponse
      description: A sample of rows from the dataset's latest ready version.
      example:
        headers:
          - id
          - feature_a
          - feature_b
          - label
        rows:
          - id: 0
            feature_a: 1.2
            feature_b: A
            label: 0
          - id: 1
            feature_a: 3.4
            feature_b: B
            label: 1
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
      description: Returned when request parameters or body fail validation.
    ValidationError:
      type: object
      required:
        - loc
        - msg
        - type
      properties:
        loc:
          type: array
          items:
            type: string
          title: Location
          description: Path to the field that caused the error.
        msg:
          type: string
          title: Message
          description: Human-readable error message.
        type:
          type: string
          title: Error Type
          description: Machine-readable error type identifier.
      title: ValidationError
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````