curl and the base URL https://api.alphacast.io.
All requests require an API key. See the authentication guide for details on how to obtain and use your key.
Get your API key
Log in to alphacast.io and navigate to your account settings to generate an API key. You will use this key to authenticate every request.Alphacast uses HTTP Basic Auth, where the API key is passed as the username with an empty password. The
-u flag in curl handles this automatically:Create a repository
Repositories are the top-level containers that organize your datasets. Every dataset must belong to a repository. Create one by sending a The Note the
POST request to /repositories:privacy field accepts "Private" or "Public". A successful response returns 201 with the new repository object:id — you will need it in the next step.Create a dataset
Within your repository, create a dataset by posting to A successful response returns Note the dataset
/datasets. The repositoryId field must match the repository you created above:201 with the dataset object:id — you will use it to upload and download data.Upload data
Upload a CSV file to your dataset using a multipart form Your CSV should have a header row. For example:A successful upload returns
PUT request to /datasets/{id}/data:201 with a process object describing the upload job:Uploads are processed asynchronously. The dataset will be available for download once the process status reaches
"completed". You can check status at GET /datasets/{id}/processes/{process_id}.Download data
Once the upload is processed, download your dataset using You can request other formats using the You can also filter and paginate results using OData-style query parameters:
GET /datasets/{id}/data. By default the response is a CSV file:$format query parameter:| Parameter | Description |
|---|---|
$filter | OData filter expression, e.g. Country eq 'USA' |
$select | Comma-separated column names to include |
$top | Maximum number of rows to return |
$last | Return the last N rows by date |
Next steps
- Read the authentication guide for details on both supported auth methods
- Explore the API reference for the full list of endpoints and parameters
- Learn how repositories control access and visibility for your data