Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Infracost Diff API

The Diff API from Infracost — 1 operation(s) for diff.

Infracost Diff API is one of 2 APIs that Infracost publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Diff. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and a getting-started guide.

This API exposes 1 operation across 1 path, and defines 5 schemas. It is described by OpenAPI 3.0.3, at version 1.0.0.

Requests are made against a single base URL, https://pricing.api.infracost.io.

1 operations 1 paths 5 schemas 1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
1.0.0
Base URL
https://pricing.api.infracost.io
Authentication
API Key
Contact
License
Resource Areas
1

Authentication & Security 1

Infracost Diff API declares 1 security scheme for authenticating requests. An API key is passed in the header as x-api-key (ApiKeyAuth). By default, every request must be authenticated.

  • ApiKeyAuth — Infracost API key

Paths & Operations 1

Across 1 path, the API surfaces 1 operation — 1 POST. Each is listed below with its method, path, parameters, and response codes.

Diff 1
POST
/diff
Generate Cost Diff
generateDiff body → 200400401

Schemas 5

The contract defines 5 schemas that model the data the API accepts and returns. The most detailed are Resource (8 properties), CostComponent (7 properties), Project (5 properties), Diff (5 properties). Each schema is shown below with its type and property counts.

ResourceBreakdown
object
3 properties
CostComponent
object
7 properties
Diff
object
5 properties
Project
object
5 properties
Resource
object
8 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

infracost-diff-api-openapi.yml Raw ↑

Other APIs Infracost publishes across the network.

Infracost Breakdown API