$select list for the download endpoint or to validate that a column name exists before referencing it in an OData filter. The full dataset metadata (description, source, date range) is available from GET /datasets/{id} instead.
Authentication
Authenticate using HTTP Basic Auth. Pass your API key as the username and leave the password empty. You must have at leastRead permission on the dataset.
Request
Method:GET
URL: https://api.alphacast.io/datasets/{dataset_id}/columns
Path parameters
The numeric ID of the dataset whose columns you want to retrieve.
Response
Returns an array of column definition objects. Each object has the same shape as the entries in thecolumns array returned by GET /datasets/{id}.
Unique column ID. Use this value with
$select to reference columns reliably across renames.Column display name.
Data type of the column. One of
Date, String, or Decimal.When
true, this column is a dimension or index column (e.g., Date, Country). When false, it is a value column.Examples
Error responses
| Status | Cause |
|---|---|
401 Unauthorized | No API key provided and the dataset is not publicly accessible. |
403 Forbidden | Your account does not have read access to this dataset. |
404 Not Found | No dataset exists with the given ID. |