Skip to main content
GET
/
v2
/
datasets
/
{datasetId}
/
examples
List dataset examples
curl --request GET \
  --url https://api.arize.com/v2/datasets/{datasetId}/examples \
  --header 'Authorization: Bearer <token>'
{
  "examples": [
    {
      "question": "What is 2 + 2?",
      "answer": 4,
      "topic": "arithmetic",
      "isCorrect": true
    },
    {
      "question": "What is the square root of 16?",
      "answer": 4,
      "topic": "geometry",
      "isCorrect": true
    },
    {
      "question": "If 3x = 12, what is x?",
      "answer": 3,
      "topic": "algebra",
      "isCorrect": false
    }
  ],
  "pagination": {
    "nextCursor": "cursor_12345",
    "hasMore": 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

Authorization: Bearer <api-key>

Path Parameters

datasetId
string
required

The unique identifier of the dataset A universally unique identifier

Query Parameters

datasetVersionId
string

The unique identifier of the dataset version A universally unique identifier

limit
integer
default:50

Maximum items to return

Required range: 1 <= x <= 10000

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