Flexible REST API for environmental data