AWS Cost Explorer API

The AWS Cost Explorer API provides programmatic access to cost and usage data. Query aggregated or granular cost data, filter and group by service, account, tag, or region, and retrieve cost forecasts and rightsizing recommendations.