---
title: "Get task description"
method: GET
path: "/task/{id}"
tags: ["task"]
---

# Get task description

`GET /task/{id}`

Returns information about a task. The information includes the task type, input data, train/test sets, and more.

## Path parameters

- `id` number, required

## Query parameters

- `api_key` string

## Response `200`

A task description

- Task
  - `task_description` TaskTaskDescription
    - `task_id` string — ID of the task, a positive integer
    - `task_type` string — The type of the task, e.g. Supervised Classification
    - `input` TaskTaskDescriptionInput[]
      - `name` string — The name of the input, e.g. source_data
      - `data_set` TaskTaskDescriptionDataSet
        - `data_set_id` string — The id of the dataset
        - `target_feature` string — The name of the target feature for this task
      - `estimation_procedure` TaskTaskDescriptionEstimationProcedure
        - `type` string — The type of procedure, e.g. crossvalidation
        - `data_splits_url` string — The url where the data splits can be downloaded
        - `parameter` TaskTaskDescriptionEstimationProcedureParameter[]
          - `name` string — The name of the parameter
          - `value` string — The value of the parameter
      - `cost_matrix` array[] — The cost matrix, indicating the costs for each type of misclassification
        - integer[]
      - `evaluation_measures` TaskTaskDescriptionEvaluationMeasures
        - `evaluation_measure` string — The evaluation measure to optimize in this task
    - `output` TaskTaskDescriptionOutput[]
      - `name` string — The name of the output, e.g. predictions
      - `predictions` TaskTaskDescriptionPredictions
        - `format` string — The fromat of the predictions, e.g. ARFF
        - `feature` TaskTaskDescriptionPredictionsFeature[]
          - `name` string — The name of the prediction feature, e.g. row_id
          - `type` string — The type of the prediction feature, e.g. integer
    - `tag` string[]

## Other responses

- `412` — Precondition failed. An error code and message are returned. 150 - Please provide task_id. 151 - Unknown task. The task with the given id was not found in the database

---

[API](https://skmtc.net/openml/apis/openml-api.md) · [All operations](https://skmtc.net/openml/apis/openml-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/openml/openml-api/revisions/263d3d6ee586/schema)
