Functional API demos for coal production