Skip to main content
GET
/
products
/
{product_id}
/
prices
Get prices for a product
curl --request GET \
  --url https://api.vantage.sh/v2/products/{product_id}/prices \
  --header 'Authorization: Bearer <token>'
{
  "links": {
    "self": "https://api.vantage.sh/v1/products/aws-ec2-m5d_16xlarge/prices",
    "first": "https://api.vantage.sh/v1/products/aws-ec2-m5d_16xlarge/prices?page=1",
    "next": null,
    "last": "https://api.vantage.sh/v1/products/aws-ec2-m5d_16xlarge/prices?page=1",
    "prev": null
  },
  "prices": [
    {
      "id": "aws-ec2-m5d_16xlarge-eu_central_1-on_demand-linux_enterprise",
      "unit": "hour",
      "region": "eu-central-1",
      "rate_type": "compute",
      "currency": "USD",
      "amount": 27.328,
      "details": {
        "platform": "linux-enterprise",
        "lifecycle": "on-demand"
      }
    },
    {
      "id": "aws-ec2-m5d_16xlarge-us_east_1-on_demand-linux_enterprise",
      "unit": "hour",
      "region": "us-east-1",
      "rate_type": "compute",
      "currency": "USD",
      "amount": 3.616,
      "details": {
        "platform": "linux-enterprise",
        "lifecycle": "on-demand"
      }
    },
    {
      "id": "aws-ec2-m5d_16xlarge-us_east_1-on_demand-rhel",
      "unit": "hour",
      "region": "us-east-1",
      "rate_type": "compute",
      "currency": "USD",
      "amount": 3.746,
      "details": {
        "platform": "rhel",
        "lifecycle": "on-demand"
      }
    }
  ]
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

product_id
string
required

Query Parameters

page
integer<int32>

The page of results to return.

limit
integer<int32>

The amount of results to return. The maximum is 1000

Response

200 - application/json

Prices model

prices
object[]