vantage-sh / ec2instances.info

Amazon EC2 instance comparison site
https://ec2instances.info
MIT License
5.07k stars 578 forks source link

Inconsistent details via API call for products #727

Closed thecloudgarage closed 1 month ago

thecloudgarage commented 5 months ago

The API call for products is missing details for quite a number of products.

Here is my API call

curl --request GET \ --url 'https://api.vantage.sh/v2/products?provider_id=aws' \ --header 'accept: application/json' \ --header 'authorization: Bearer '

As an example the API call for products returns no details., except for the name for m6idn.xlarge instance and many other instance types.

image

Similarly, when I visit the homepage and filter for m6idn.xlarge., I can see the details

image

I can confirm that my API call is constructed properly with token, because in the same API call where instances are missing details, it has many other instances whose details are properly populated

image image

Is there an issue or something that I need to do differently....

EverettBerry commented 5 months ago

Hey! I've posted this issue for our engineering team to look at but if you would simply like to work with the raw data from ec2instances.info you can do this:

curl https://instances.vantage.sh/instances.json -o instances.json

thecloudgarage commented 5 months ago

Thanks that helped., this json output does not include RDS, ElastiCache, RedShift, etc.. instances. How can I get the JSON for the same...

EverettBerry commented 5 months ago

Got it! Those are available at the corresponding URLs. So:

https://instances.vantage.sh/rds/instances.json

https://instances.vantage.sh/cache/instances.json

And so on