# Cost of Living API

> Cost of Living is a cost of living API that returns price-level indices for US states and metropolitan areas, with the US average at 100. Compare the relative cost of living between two states or cities and calculate salary equivalents for relocation decisions on paid plans.

**Endpoint:** `GET https://api.apiverve.com/v1/costliving`  
**Category:** Finance  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/costliving

## Overview

Cost of Living uses Regional Price Parities from the Bureau of Economic Analysis, the official US measure of how price levels differ between areas. The national average is 100, so an index of 120 means prices are 20% higher than average. Indices cover all 50 states, DC and every metropolitan statistical area, with goods, housing, utilities and other services broken out. Regional CPI is included as change-over-time context only.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/costliving?location=California" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `location` | string | Yes | State name, state code (e.g., CA, NY), city name (e.g., Chicago, or Portland, ME) or 5-digit ZIP code (e.g., 78701). |

## Response fields

- `searchedLocation` — string · The queried location name or code provided
- `region` — string · Area identifier: msa-<CBSA code> for metros, state-<code> for states, or a Census region id · (premium)
- `regionName` — string · Name of the metro area, state or Census region the location resolved to · (premium)
- `costIndex` — number · Regional Price Parity for all items (100 is the US average)
- `description` — string · Plain-language summary of how the location compares to the US average
- `cpi` — number · Consumer price index level for the location's Census region; measures price change over time, not cross-area cost
- `usAverageCPI` — number · Consumer price index level for the US as a whole; for change over time only
- `period` — string · Month the CPI values are for, as YYYY-MM
- `note` — string · How to read the index: 100 is the US average, above 100 is more expensive

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "searchedLocation": "California",
    "region": "west-large",
    "regionName": "West Large Metros (LA, SF, Seattle, Phoenix, Denver area)",
    "costIndex": 107,
    "description": "7% above average",
    "cpi": 356.993,
    "usAverageCPI": 334.98,
    "period": "2026-08",
    "note": "Cost index is relative to US average (100). Values above 100 indicate higher than average cost of living."
  }
}
```

## Use cases

- **Relocation Planning** — Compare cost of living when considering job offers in different states or cities
- **Salary Negotiations** — Calculate salary equivalents across different regions
- **Business Location** — Factor cost of living into business location and expansion decisions
- **HR Planning** — Set location-adjusted compensation for remote or distributed teams

## SDKs

- **npm** — `npm install @apiverve/costliving` (https://www.npmjs.com/package/@apiverve/costliving)
- **NuGet** — `dotnet add package APIVerve.API.CostofLiving` (https://www.nuget.org/packages/APIVerve.API.CostofLiving)
- **Source** — https://github.com/apiverve/costliving-api

## More

- Full reference: https://docs.apiverve.com/ref/costliving
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
