Public APIs
EC2.shop API favicon

EC2.shop API

Continuous Integration

Get AWS service price right from your terminal.

EC2.shop API's website screenshot

About EC2.shop API

EC2.shop is a command-line-accessible tool for checking and comparing AWS service pricing, accessed via curl or HTTP requests rather than a web dashboard. It covers pricing for EC2, ElastiCache, ElasticSearch, ActiveMQ, MSK, RDS, Redshift, and EBS. Responses are available in plain text or JSON (via an `accept: json` header), and results can be filtered by fields such as memory, CPU, price, spot price, GPU cores, and GPU memory, with support for comparison expressions, exclusion of instance types, and sorting by one or more fields.

On-demand pricing is sourced directly from AWS's on-demand pricing page and is described as highly accurate; spot instance pricing is refreshed from AWS's spot pricing page roughly twice every 5 minutes, so it may lag actual spot prices by up to several minutes. The project provides a Dockerfile, Kubernetes configuration, and a Makefile for self-hosting, and stores its data in JSON files with no external database.

The tool is aimed at developers and operators who want a fast, terminal-based way to look up or compare AWS instance and service pricing without loading the AWS pricing pages, and is suited for scripting or text-processing workflows (e.g., with awk) given its plain-text and JSON output formats.

Key features

  • Curl-able terminal interface for AWS EC2 and other service pricing (no web dashboard needed)
  • Covers EC2, ElastiCache, ElasticSearch, ActiveMQ, MSK, RDS, Redshift, and EBS pricing
  • Filter instances by fields like mem, cpu, price, spotprice, gpu_core, gpu_mem, including comparison expressions
  • Exclude instance types from results using the - operator
  • Sort results by one or more fields, ascending or descending
  • Supports both plain-text and JSON response formats via an accept header

Frequently asked questions

Is EC2.shop free to use?

Yes, it's a free public API/service; the maintainer notes it's cheap to run since most requests are cached at Cloudflare.

How do I query it — is there an SDK?

No SDK is needed; you query it directly with curl or any HTTP client, e.g. curl 'https://ec2.shop?filter=i3'.

How accurate is the pricing data?

On-demand prices match AWS's official on-demand pricing page exactly, while spot prices are refreshed from AWS every 2.5 minutes and may lag by up to 5 minutes.

Can I self-host it instead of using the hosted version?

Yes, the repo provides a Dockerfile, Kubernetes configs, and a Makefile to run it yourself.

Who is this for?

It's aimed at developers and DevOps engineers who want to quickly check or compare AWS EC2 and related service pricing from the terminal instead of AWS's slow pricing pages.

Advertise here

Featured products

  • SerpApi - Search API favicon
  • Screenshot Scout favicon
  • TalorData favicon
  • CoreClaw favicon

Show your product to thousands of developers

· 100k monthly pageviews
· 7k newsletter subscribers

Advertise your product