Retrieve a list of datasets
GEThttps://api.pharia.example.com/v1/studio/data/repositories/:repositoryID/datasets
Lists all datasets within a specified repository, with options to filter by creation date and labels. Use this endpoint to browse datasets and locate relevant data collections by repository.
Request
Path Parameters
The unique identifier of the repository containing the datasets.
Query Parameters
Filters datasets created after the specified date (in ISO 8601 format).
Filters datasets created before the specified date (in ISO 8601 format).
Filters datasets by one or more labels. Use this to narrow down results to datasets tagged with specific labels.
The page number to retrieve, used for paginated responses.
The number of items to include per page in the response.
Responses
- 200
- 400
- 401
- 404
- 500
OK
- application/json
- Schema
- Example (auto)
Schema
datasets object[]
The current page number in the paginated list.
0
The number of datasets displayed per page.
1
The total number of datasets available.
1
{
"datasets": [
{
"datasetId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"repositoryId": "cb26237c-3beb-40f3-8e13-77d862f722b5",
"name": "dataset_name",
"labels": [
"label"
],
"metadata": {
"key": "value"
},
"license": {
"id": "OAL-1.0",
"url": "https://github.com/Aleph-Alpha/.github/blob/main/oal.pdf"
},
"version": "55a62ef9-dd9c-4e5d-9b93-0361bae4db37",
"totalDatapoints": 0,
"updatedAt": "2024-07-04",
"createdAt": "2024-07-04"
}
],
"page": 0,
"size": 1,
"total": 1
}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
A descriptive error message based on the specific status code encountered, detailing the issue and possible causes.
{
"message": "A descriptive error message based on the specific status code encountered, detailing the issue and possible causes."
}
Unauthorized
- application/json
- Schema
- Example (auto)
Schema
A descriptive error message based on the specific status code encountered, detailing the issue and possible causes.
{
"message": "A descriptive error message based on the specific status code encountered, detailing the issue and possible causes."
}
Not Found
- application/json
- Schema
- Example (auto)
Schema
A descriptive error message based on the specific status code encountered, detailing the issue and possible causes.
{
"message": "A descriptive error message based on the specific status code encountered, detailing the issue and possible causes."
}
INTERNAL SERVER ERROR
- application/json
- Schema
- Example (auto)
Schema
A descriptive error message based on the specific status code encountered, detailing the issue and possible causes.
{
"message": "A descriptive error message based on the specific status code encountered, detailing the issue and possible causes."
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api.pharia.example.com/v1/studio/data/repositories/:repositoryID/datasets");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());