Home/API Reference

API Reference

Access our cloud pricing data and calculation engines programmatically. Build powerful cost analysis tools using our comprehensive API.

🚧 Coming Soon - API in Development

Pricing Data

Real-time pricing from AWS, Azure, and Google Cloud

Calculations

TCO, ROI, and financial modeling endpoints

Data Export

Export analysis results in multiple formats

Integrations

Webhook support and third-party integrations

API Endpoints (Preview)

GET/api/pricing/aws

Get current AWS pricing data

Parameters:
  • region
  • service
  • instance_type
Response:

JSON object with pricing information

GET/api/pricing/azure

Get current Azure pricing data

Parameters:
  • region
  • service
  • vm_size
Response:

JSON object with pricing information

GET/api/pricing/gcp

Get current Google Cloud pricing data

Parameters:
  • region
  • service
  • machine_type
Response:

JSON object with pricing information

POST/api/calculate/tco

Calculate Total Cost of Ownership

Parameters:
  • cloud_config
  • onprem_config
  • timeframe
Response:

TCO analysis with yearly breakdown

POST/api/calculate/carbon

Calculate carbon footprint

Parameters:
  • provider
  • region
  • usage_data
Response:

Carbon emission estimates in kg CO2

Getting Started

1. Authentication

Our API will use API keys for authentication. Sign up for early access to receive your key.

curl -H "Authorization: Bearer YOUR_API_KEY" \\
    https://api.comparecloudcost.com/v1/pricing/aws

2. Rate Limits

Free tier: 1,000 requests per month
Pro tier: 10,000 requests per month
Enterprise: Custom limits available

3. Response Format

All responses are in JSON format with consistent structure:

{
  "status": "success",
  "data": {
    // Response data here
  },
  "meta": {
    "timestamp": "2024-01-15T10:30:00Z",
    "version": "1.0"
  }
}

Get Early Access to Our API

Be among the first to access our comprehensive cloud cost analysis API. Perfect for building cost optimization tools and automated analysis workflows.

Join 500+ developers already signed up for early access