Skip to main content
GET
/
v2
/
datasets
/
{dataset_id}
/
examples
List dataset examples
curl --request GET \
  --url https://api.arize.com/v2/datasets/{dataset_id}/examples \
  --header 'Authorization: Bearer <token>'
{
  "examples": [
    {
      "id": "ex_001",
      "created_at": "2024-01-01T12:00:00Z",
      "updated_at": "2024-01-02T12:00:00Z",
      "question": "What is 2 + 2?",
      "answer": 4,
      "topic": "arithmetic",
      "isCorrect": true
    },
    {
      "id": "ex_002",
      "created_at": "2024-01-02T12:00:00Z",
      "updated_at": "2024-01-03T12:00:00Z",
      "question": "What is the square root of 16?",
      "answer": 4,
      "topic": "geometry",
      "isCorrect": true
    },
    {
      "id": "ex_003",
      "created_at": "2024-01-03T12:00:00Z",
      "updated_at": "2024-01-04T12:00:00Z",
      "question": "If 3x = 12, what is x?",
      "answer": 3,
      "topic": "algebra",
      "isCorrect": false
    }
  ],
  "pagination": {
    "next_cursor": "cursor_12345",
    "has_more": true
  }
}

Authorizations

Authorization
string
header
required

Most Arize AI endpoints require authentication. For those endpoints that require authentication, include your API key in the request header using the format

Path Parameters

dataset_id
string
required

The unique identifier of the dataset A universally unique identifier

Query Parameters

dataset_version_id
string

The unique identifier of the dataset version A universally unique identifier

limit
integer
default:50

Maximum items to return

Required range: 1 <= x <= 500

Response

Returns a list of dataset examples as structured objects

examples
object[]
required

Array of example objects from the dataset

pagination
object
required

Pagination metadata for cursor-based navigation