Catalog / AWS EC2 instance plans and On-Demand prices

AWS EC2 instance plans and On-Demand prices API

aws.amazon.com

Look up current AWS EC2 instance specifications and hourly On-Demand USD rates by exact instance type, region and operating system. The default is US East (Ohio) with Linux; other purchase options, tenancy and additional EBS or software costs are not quoted.

  • Other
  • aws
  • ec2
  • cloud-computing
  • pricing
1 endpointDocs updated

Endpoint health

Loading verification…

Connect your agent

Connect through MCP so your agent can find this API, read its docs, and call its endpoints.

Setup guide

Add the server from your terminal.

Claude Code · terminal
claude mcp add --transport http agent-data https://agent-data.motie.dev/mcp

In Claude Code, run /mcp, select agent-data, then Authenticate. Sign in to your agent-data account in the browser.

Then ask your agent to use the AWS EC2 instance plans and On-Demand prices API for your task.

Call it over HTTP

Get an API key

Sign up free, generate an API key, and set it as AGENT_DATA_API_KEY in your environment. Your first 100 calls each month are free.

Fetch AWS public regional On-Demand catalog on every request; no fixture or disk access.

Exact AWS EC2 instance type (not a family).

Optional parameters 2

AWS pricing location label; hourly rate depends on location.

AWS pricing OS label; hourly rate depends on OS.

View call pricing
cURL · Instance types by name
curl --request GET --get 'https://3kpkg0jfvk.execute-api.us-east-2.amazonaws.com/prod/cb448481-6a85-448e-b7b9-7aa77e5169cb/v1/instance-types/m7i.large' \
  --header "Authorization: Bearer $AGENT_DATA_API_KEY"

Endpoints

Inputs and response fields for every endpoint in this API.

GETInstance types by name/v1/instance-types/{name}

Fetch AWS public regional On-Demand catalog on every request; no fixture or disk access.

Input

nameRequiredPath · string

Exact AWS EC2 instance type (not a family).

Example: m7i.large

regionOptionalQuery · string, default: US East (Ohio)

AWS pricing location label; hourly rate depends on location.

Example: US East (Ohio)

operating_systemOptionalQuery · string, default: Linux

AWS pricing OS label; hourly rate depends on OS.

Example: Linux

Response

dataobject
data.vcpuinteger
data.memorystring
data.regionstring
data.storagestring
data.currencystring
data.plan_namestring
data.rate_codestring
data.transportstring
data.source_urlstring
data.published_atstring
data.instance_familystring
data.operating_systemstring
data.price_usd_per_hourstring
data.network_performancestring
request_idstring

Don’t see the endpoint you need?

Ask agent-data to add an endpoint or return more fields. Extensions are free and keep existing endpoints working.