Should this API library be specific to spark ?