Setup
Put them in your environment or
.env; Data APIs covers the other ways.
Notes
- Published datasets and public files are readable without a token.
- Datasets are addressed by numeric database id or by DOI: put the literal ‘:persistentId’ where the id goes and pass persistentId=doi:… as a query parameter (datasets.get does this).
- Collections are addressed by alias (e.g. medsl) or database id; :root is the top collection.
- Some files require a guestbook response before download; those return an error on a plain GET.
Endpoints
Search datasets, files and collections
Get a dataset by DOI
- The response’s id is the numeric dataset id that datasets.files takes.
List a dataset version’s files
Get a collection
List a collection’s contents
Download a data file
- Returns the raw file, which may be large or binary.