Skip to Content
Costs

Cost components

GET
/v1/costs/components

Egress, storage and other cost components per provider.

Authorization

bearer
headerAuthorizationBearer <token>

Your API key: Authorization: Bearer opg_live_...

Query Parameters

provider?string|null
component?string|null
limit?Limit
Range1 <= value <= 1000
Default100
cursor?string|null

Header Parameters

OpenGrid-Version?"2026-11-03"

The API version to shape the response for. Default: the version pinned to your key.

Value in"2026-11-03"

Response Body

Success

application/json
  1. response
data*array<>
meta*

Present on every success. List routes add limit, next_cursor (null on the last page) and total.

Example Request
curl -X GET 'https://data.tryopengrid.com/v1/costs/components'
Example Response
{  "data": [    {      "allowance_scope": null,      "as_of": "string",      "billed_when_stopped": true,      "component": "string",      "kind": "string",      "listing_id": null,      "notes": null,      "origin": "string",      "product": "string",      "provider": "string",      "provider_name": "string",      "raw_unit": "string",      "region": null,      "source": "string",      "status": "string",      "tiers": [        {          "end_gb": null,          "price": 0,          "start_gb": 0        }      ],      "unit": "string"    }  ],  "meta": {    "as_of": "2019-08-24T14:15:22Z",    "api_version": "string",    "request_id": "string",    "next_cursor": "string",    "limit": 0,    "total": 0  }}