API Documentation

Access climate and environmental data programmatically using our REST API.

Getting Started

To use the API, you need to obtain an API key and include it in the Authorization header of your requests.

Base URL: https://api.cldb.project.app/v1

Endpoints

Observations

Query time-series observation data from various datasets.

GET

/observations

curl -X GET "https://api.cldb.project.app/v1/observations?datasetCode=ERA5&variable=temp_2m&start=2023-01-01&end=2023-01-02" \
     -H "Authorization: Bearer YOUR_API_KEY"