Using the Rest API to create a 3d surface plot

I was wondering if there are any examples that use the REST api’s to create a 3d surface plot. Any help would be much appreciated.