GET
/
api
/
parea
/
v1
/
{test_collection_identifier}
p = Parea(api_key="PAREA_API_KEY")  # replace with your API key

test_collection = p.get_collection(test_collection_identifier="Math problems")
    {
        "id": 121,
        "name": "Math problems",
        "created_at": "2023-07-24 18:05:17",
        "last_updated_at": "2023-07-24 18:05:17",
        "column_names": ["problem"],
        "test_cases": {
            "1": {
                "id": 111
                "test_case_collection_id": 121,
                "inputs": {"problem": "What is 2+2?"},
                "target": "4"
                "tags": ["easy"]
            },
        },
    }

Body

test_collection_identifier
string | int
required

Dataset name or ID.

Response

id
int

Unique ID for the dataset.

name
string

Name of the dataset.

created_at
string

Datetime from a timestamp for when the dataset was created.

last_updated_at
string

Datetime from a timestamp for when the dataset was last updated.

column_names
list[string]

List of column names in the dataset, representing the template variable names.

test_cases
list[dict]

List of test cases in the dataset.