Skip to main content
POST
/
api
/
salarycom
/
cost_of_living
/salarycom/cost_of_living
curl --request POST \
  --url https://api.anysite.io/api/salarycom/cost_of_living \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "location": "<string>",
  "timeout": 300
}
'
[
  {
    "@type": "@salarycom_cost_of_living",
    "location": "<string>",
    "zip_code": "<string>",
    "metro_code": "<string>",
    "monthly_cost_single": 123,
    "monthly_cost_family": 123,
    "vs_national_percent": 123,
    "vs_state_percent": 123,
    "categories": []
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
location
string
required

City-state slug or city name

Minimum string length: 1
Examples:

"new-york-ny"

"austin-tx"

timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500

Response

Successful Response

@type
string
default:@salarycom_cost_of_living
location
string | null
zip_code
string | null
metro_code
string | null
monthly_cost_single
number | null
monthly_cost_family
number | null
vs_national_percent
number | null
vs_state_percent
number | null
categories
SalarycomCostCategory · object[]