I made some similar project https://ec2.shop/ it even support a curl interface. My proudest achievement is spot instances pricing. You can use it to bid automatically spot price.
Perhaps also worth mentioning is https://cloudoptimizer.io which has resource pricing for many cloud providers (not just EC2) and also has a way to filter GPU instances.
(disclaimer: my passion project, new version coming soon)