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"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.vantage.sh/llms.txt

Use this file to discover all available pages before exploring further.

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

The unit in which the amount is billed.

Example:

"hour"

region
string
required

The region the price is specific to.

Example:

"us-east-1"

rate_type
string
required

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

Example:

"compute"

currency
string
required

The currency of the amount.

Example:

"USD"

amount
number
required

The amount of money this specific product price costs.

Example:

1.324

details
object
required

Service specific metadata.

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