Skip to main content
GET
/
products
/
{product_id}
/
prices
/
{id}
Get price by ID
curl --request GET \
  --url https://api.vantage.sh/v2/products/{product_id}/prices/{id} \
  --header 'Authorization: Bearer <token>'
{
  "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"
  }
}

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
id
string
required

Response

200 - application/json

Price model

id
string
unit
string

The unit in which the amount is billed.

Example:

"hour"

region
string

The region the price is specific to.

Example:

"us-east-1"

rate_type
string

The part of the product the price applies to. (compute, transfer, etc..)

Example:

"compute"

currency
string

The currency of the amount.

Example:

"USD"

amount
number

The amount of money this specific product price costs.

Example:

1.324

details
object

Service specific metadata.

Example:
{
"platform": "linux-enterprise",
"lifecycle": "on-demand"
}