Cities Cost of Living and Average Prices API

API ID 226

Supporting more than 8000 cities, this API will provide accurate information about the cost of living and prices in those cities.

100% uptime 1,307 ms avg response

API Documentation

Endpoints

Request

Get to know the cost of living from a specific country. (Updated frequently)

Endpoint ID: 3774
GET https://zylalabs.com/api/226/cities+cost+of+living+and+average+prices+api/3774/cost+of+living+by+country+v2
INPUT PARAMETERS

Cost Of Living by Country v2 — Endpoint Features

Object Description
country Required Country name.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

country
API EXAMPLE RESPONSE
JSON
{"Version":1,"Status":200,"Success":true,"Country Name":"United States","Meal, Inexpensive Restaurant":"20.00\u00a0$","Meal for 2 People, Mid-range Restaurant, Three-course":"78.00\u00a0$","McMeal at McDonalds (or Equivalent Combo Meal)":"12.00\u00a0$","Domestic Beer (1 pint draught)":"6.00\u00a0$","Imported Beer (12 oz small bottle)":"3.61\u00a0$","Cappuccino (regular)":"5.30\u00a0$","Coke\/Pepsi (12 oz small bottle)":"2.59\u00a0$","Water (12 oz small bottle)":"2.10\u00a0$","Milk (regular), (1 gallon)":"4.03\u00a0$","Loaf of Fresh White Bread (1 lb)":"3.32\u00a0$","Rice (white), (1 lb)":"2.08\u00a0$","Eggs (regular) (12)":"4.41\u00a0$","Local Cheese (1 lb)":"5.91\u00a0$","Chicken Fillets (1 lb)":"5.56\u00a0$","Beef Round (1 lb) (or Equivalent Back Leg Red Meat)":"7.48\u00a0$","Apples (1 lb)":"2.38\u00a0$","Banana (1 lb)":"0.76\u00a0$","Oranges (1 lb)":"2.03\u00a0$","Tomato (1 lb)":"2.22\u00a0$","Potato (1 lb)":"1.32\u00a0$","Onion (1 lb)":"1.39\u00a0$","Lettuce (1 head)":"2.21\u00a0$","Water (1.5 liter bottle)":"2.25\u00a0$","Bottle of Wine (Mid-Range)":"15.00\u00a0$","Domestic Beer (0.5 liter bottle)":"2.01\u00a0$","Cigarettes 20 Pack (Marlboro)":"10.00\u00a0$","One-way Ticket (Local Transport)":"2.50\u00a0$","Monthly Pass (Regular Price)":"65.00\u00a0$","Taxi Start (Normal Tariff)":"3.55\u00a0$","Taxi 1 mile (Normal Tariff)":"2.80\u00a0$","Taxi 1hour Waiting (Normal Tariff)":"30.00\u00a0$","Gasoline (1 gallon)":"3.39\u00a0$","Volkswagen Golf 1.4 90 KW Trendline (Or Equivalent New Car)":"34,501.73\u00a0$","Toyota Corolla Sedan 1.6l 97kW Comfort (Or Equivalent New Car)":"26,061.57\u00a0$","Basic (Electricity, Heating, Cooling, Water, Garbage) for 915 sq ft Apartment":"210.13\u00a0$","Mobile Phone Monthly Plan with Calls and 10GB+ Data":"60.54\u00a0$","Internet (60 Mbps or More, Unlimited Data, Cable\/ADSL)":"72.33\u00a0$","Fitness Club, Monthly Fee for 1 Adult":"45.73\u00a0$","Tennis Court Rent (1 Hour on Weekend)":"21.89\u00a0$","Cinema, International Release, 1 Seat":"15.00\u00a0$","Preschool (or Kindergarten), Full Day, Private, Monthly for 1 Child":"1,366.88\u00a0$","International Primary School, Yearly for 1 Child":"23,152.86\u00a0$","1 Pair of Jeans (Levis 501 Or Similar)":"52.37\u00a0$","1 Summer Dress in a Chain Store (Zara, H&M, ...)":"42.80\u00a0$","1 Pair of Nike Running Shoes (Mid-Range)":"90.64\u00a0$","1 Pair of Men Leather Business Shoes":"113.57\u00a0$","Apartment (1 bedroom) in City Centre":"1,729.16\u00a0$","Apartment (1 bedroom) Outside of Centre":"1,426.57\u00a0$","Apartment (3 bedrooms) in City Centre":"2,855.76\u00a0$","Apartment (3 bedrooms) Outside of Centre":"2,381.86\u00a0$","Price per Square Feet to Buy Apartment in City Centre":"300.83\u00a0$","Price per Square Feet to Buy Apartment Outside of Centre":"252.75\u00a0$","Average Monthly Net Salary (After Tax)":"4,320.84\u00a0$","Mortgage Interest Rate in Percentages (%), Yearly, for 20 Years Fixed-Rate":"6.47"}
Cost Of Living by Country v2 — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/226/cities+cost+of+living+and+average+prices+api/3774/cost+of+living+by+country+v2?country=united states' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request

Get insights about the cost of living from a specific city. (Updated frequently)

Endpoint ID: 3775
GET https://zylalabs.com/api/226/cities+cost+of+living+and+average+prices+api/3775/cost+of+living+by+city+v2
INPUT PARAMETERS

Cost of Living by City v2 — Endpoint Features

Object Description
country Required Country name.
city Required City code.

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

country
city
API EXAMPLE RESPONSE
JSON
{"Version":1,"Status":200,"Success":true,"City Name":"seattle-wa","Meal at an Inexpensive Restaurant":"$25.00","Meal for Two at a Mid-Range Restaurant (Three Courses, Without Drinks)":"$100.00","Combo Meal at McDonald's (or Equivalent Fast-Food Meal)":"$15.00","Domestic Draft Beer (0.5 Liter)":"$8.00","Imported Beer (0.33 Liter Bottle)":"$5.10","Cappuccino (Regular Size)":"$6.38","Soft Drink (Coca-Cola or Pepsi, 0.33 Liter Bottle)":"$2.95","Bottled Water (0.33 Liter)":"$2.69","Milk (Regular, 1 Liter)":"$1.23","Fresh White Bread (500 g Loaf)":"$5.20","White Rice (1 kg)":"$6.22","Eggs (12, Large Size)":"$5.51","Local Cheese (1 kg)":"$21.31","Chicken Fillets (1 kg)":"$18.40","Beef Round or Equivalent Back Leg Red Meat (1 kg)":"$22.79","Apples (1 kg)":"$6.06","Bananas (1 kg)":"$1.91","Oranges (1 kg)":"$5.39","Tomatoes (1 kg)":"$6.48","Potatoes (1 kg)":"$3.56","Onions (1 kg)":"$3.34","Lettuce (1 Head)":"$2.86","Bottled Water (1.5 Liter)":"$2.60","Bottle of Wine (Mid-Range)":"$15.50","Domestic Beer (0.5 Liter Bottle)":"$3.89","Cigarettes (Pack of 20, Marlboro)":"$13.50","One-Way Ticket (Local Transport)":"$3.00","Monthly Public Transport Pass (Regular Price)":"$108.00","Taxi Start (Standard Tariff)":"$2.60","Taxi 1 km (Standard Tariff)":"$1.69","Taxi 1 Hour Waiting (Standard Tariff)":"$30.00","Gasoline (1 Liter)":"$1.36","Volkswagen Golf 1.5 (or Equivalent New Compact Car)":"$36,318.00","Toyota Corolla Sedan 1.6 (or Equivalent New Mid-Size Car)":"$25,554.70","Basic Utilities for 85 m2 Apartment (Electricity, Heating, Cooling, Water, Garbage)":"$296.90","Mobile Phone Plan (Monthly, with Calls and 10GB+ Data)":"$69.38","Broadband Internet (Unlimited Data, 60 Mbps or Higher)":"$80.22","Monthly Fitness Club Membership":"$80.80","Tennis Court Rental (1 Hour, Weekend)":"$35.00","Cinema Ticket (International Release)":"$18.00","Private Full-Day Preschool or Kindergarten, Monthly Fee per Child":"$3,011.27","International Primary School, Annual Tuition per Child":"$30,201.50","Jeans (Levi's 501 or Similar)":"$79.22","Summer Dress in a Chain Store (e.g. Zara or H&M)":"$53.97","Nike Running Shoes (Mid-Range)":"$127.75","Men's Leather Business Shoes":"$157.08","1 Bedroom Apartment in City Centre":"$2,427.67","1 Bedroom Apartment Outside of City Centre":"$1,915.80","3 Bedroom Apartment in City Centre":"$4,768.75","3 Bedroom Apartment Outside of City Centre":"$3,528.12","Price per Square Meter to Buy Apartment in City Centre":"$7,635.98","Price per Square Meter to Buy Apartment Outside of Centre":"$5,036.35","Average Monthly Net Salary (After Tax)":"$6,574.11","Annual Mortgage Interest Rate (20-Year Fixed, in %)":"6.18"}
Cost of Living by City v2 — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/226/cities+cost+of+living+and+average+prices+api/3775/cost+of+living+by+city+v2?country=United States&city=Seattle, WA' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request

To use this endpoint just send the request and you will get all the available countries.

Endpoint ID: 6144
GET https://zylalabs.com/api/226/cities+cost+of+living+and+average+prices+api/6144/get+countries+v2
INPUT PARAMETERS

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

This endpoint does not require any input parameters.

API EXAMPLE RESPONSE
JSON
["Afghanistan","Aland Islands","Albania","Alderney","Algeria","American Samoa","Andorra","Angola","Anguilla","Antigua And Barbuda","Argentina","Armenia","Aruba","Australia","Austria","Azerbaijan","Bahamas","Bahrain","Bangladesh","Barbados","Belarus","Belgium","Belize","Benin","Bermuda","Bhutan","Bolivia","Bonaire","Bosnia And Herzegovina","Botswana","Brazil","British Virgin Islands","Brunei","Bulgaria","Burkina Faso","Burundi","Cambodia","Cameroon","Canada","Cape Verde","Cayman Islands","Central African Republic","Chad","Chile","China","Colombia","Comoros","Cook Islands","Costa Rica","Croatia","Cuba","Curacao","Cyprus","Czech Republic","Democratic Republic of the Congo","Denmark","Djibouti","Dominica","Dominican Republic","Ecuador","Egypt","El Salvador","Equatorial Guinea","Eritrea","Estonia","Eswatini","Ethiopia","Falkland Islands","Faroe Islands","Fiji","Finland","France","French Guiana","French Polynesia","French Southern Territories","Gabon","Gambia","Georgia","Germany","Ghana","Gibraltar","Greece","Greenland","Grenada","Guadeloupe","Guam","Guatemala","Guernsey","Guinea","Guinea-Bissau","Guyana","Haiti","Honduras","Hong Kong (China)","Hungary","Iceland","India","Indonesia","Iran","Iraq","Ireland","Isle Of Man","Israel","Italy","Ivory Coast","Jamaica","Japan","Jersey","Jordan","Kazakhstan","Kenya","Kiribati","Kosovo (Disputed Territory)","Kuwait","Kyrgyzstan","Laos","Latvia","Lebanon","Lesotho","Liberia","Libya","Liechtenstein","Lithuania","Luxembourg","Macao (China)","Madagascar","Malawi","Malaysia","Maldives","Mali","Malta","Marshall Islands","Martinique","Mauritania","Mauritius","Mexico","Micronesia","Moldova","Monaco","Mongolia","Montenegro","Montserrat","Morocco","Mozambique","Myanmar","Namibia","Nauru","Nepal","Netherlands","New Caledonia","New Zealand","NicaraguaNiger","Nigeria","Norfolk Island","North Korea","North Macedonia","Northern Mariana Islands","Norway","Oman","Pakistan","Palau","Palestine","Panama","Papua New Guinea","Paraguay","Peru","Philippines","Poland","Portugal","Puerto Rico","Qatar","Republic of the Congo","Reunion","Romania","Russia","Rwanda","Saint Helena","Saint Kitts And Nevis","Saint Lucia","Saint Vincent And The Grenadines","Saint-Pierre And Miquelon","Samoa","San Marino","Sao Tome And Principe","Saudi Arabia","Senegal","Serbia","Seychelles","Sierra Leone","Singapore","Sint Maarten","Slovakia","Slovenia","Solomon Islands","Somalia","South Africa","South Korea","South Sudan","Spain","Sri Lanka","Sudan","Suriname","Sweden","Switzerland","Syria","Taiwan","Tajikistan","Tanzania","Thailand","Timor-Leste","Togo","Tonga","Trinidad And Tobago","Tunisia","Turkey","Turkmenistan","Turks And Caicos Islands","Tuvalu","Uganda","Ukraine","United Arab Emirates","United Kingdom","United States","Uruguay","Us Virgin Islands","Uzbekistan","Vanuatu","Venezuela","Vietnam","Wallis And Futuna","Western Sahara","Yemen","Zambia","Zimbabwe"]
Get Countries V2 — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/226/cities+cost+of+living+and+average+prices+api/6144/get+countries+v2' --header 'Authorization: Bearer YOUR_API_KEY' 


    
Request

To use this endpoint just send the request and you will get all the available cities.

Endpoint ID: 6145
GET https://zylalabs.com/api/226/cities+cost+of+living+and+average+prices+api/6145/get+cities+by+country+v2
INPUT PARAMETERS

Get Cities by Country V2 — Endpoint Features

Object Description
country Required

Free test requests remaining: 3 of 3.


INPUT PARAMETERS

country
API EXAMPLE RESPONSE
JSON
{"country":"United States","cities":[]}
Get Cities by Country V2 — CODE SNIPPETS

curl --location --request GET 'https://zylalabs.com/api/226/cities+cost+of+living+and+average+prices+api/6145/get+cities+by+country+v2?country=United-States' --header 'Authorization: Bearer YOUR_API_KEY' 


    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Cities Cost of Living and Average Prices API simply include your bearer token in the Authorization header.

Headers
Header Description
Authorization Required Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.

Simple Transparent Pricing

No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.

(Save 2 months with annual billing 🎉)

🚀 Enterprise Plan
Custom Volume

  • Custom Rate Limit
  • Team & Access Management
  • SLA-backed Uptime
  • Specialized Customer Support
  • Real-Time API Monitoring
  • Enterprise Security & Compliance
Minimum annual contract: USD 10,000

Trusted by leading companies

Overview

About the API:

The Cost of Living and Average Prices by City API is a tool that provides access to data on the cost of living and average prices of goods and services in cities around the world. It includes information on a range of expenses, such as housing, groceries, transportation, and entertainment, as well as data on average salaries and purchasing power.

This API allows users to compare the cost of living in different cities and make informed decisions about where to live or do business. It includes data on the average prices of a wide range of goods and services, such as food, clothing, healthcare, and education. It also includes information on the average cost of housing in each city, including rent and mortgage payments.

In addition to providing data on the cost of living, the API also includes data on average salaries and purchasing power in each city. This allows users to see how far their income would go in different locations and make comparisons based on their budget and lifestyle.

This API can be used by individuals or organizations that are considering moving to a new city, or by businesses that are evaluating the feasibility of expanding to a new location. It can also be used by researchers or journalists to study trends in the cost of living and how it varies across different regions.

What your API receives and what your API provides (input/output)?

This API will receive the country and city name and it will deliver a different range of prices for different goods and services. Check income and average prices. 

What are the most common uses cases of this API?

  1. Individuals or families considering moving to a new city can use the API to compare the cost of living in different locations and make an informed decision about where to live.

  2. Businesses can use the API to evaluate the feasibility of expanding to a new location. By comparing the cost of living and average prices of goods and services in different cities, businesses can determine whether they will be able to operate profitably in a new location.

  3. Researchers or journalists can use the API to study trends in the cost of living and how it varies across different regions. This could be useful for creating reports or articles on the affordability of different cities or regions.

  4. Apps or websites that provide resources for people moving to a new city (such as real estate platforms or relocation guides) can use the API to incorporate data on the cost of living into their platforms.

  5. Government agencies or advocacy groups can use the API to monitor and report on the cost of living in different cities and regions, and to identify areas that may be unaffordable for certain groups of people.

Are there any limitations to your plans?

The only limitation is the number of API calls you can make per month that support each plan. 

Cities Cost of Living and Average Prices API FAQs

The API provides accurate information about the cost of living and average prices in various cities and countries worldwide.

The API supports over 8000 cities across different countries.

You can use the "GET COUNTRIES" endpoint to retrieve a list of all the supported countries.

Yes, you can use the "GET CITIES BY COUNTRY" endpoint to retrieve all the supported cities in a given country.

Yes, the "COST OF LIVING BY COUNTRY" endpoint allows you to retrieve the average cost of living in a certain country. It calculates the average prices and cost of living across the entire country.

To retrieve the average prices and cost of living for a specific city, you can use the "COST OF LIVING BY CITY" endpoint. Simply declare the country and city in your request.

The API primarily focuses on providing current cost of living data and average prices. Historical data may not be available through the provided endpoints.

The API strives to provide accurate and up-to-date information. The data is sourced from reliable and reputable data providers.

Each endpoint returns specific data related to the cost of living and average prices. For example, the "COST OF LIVING BY CITY" endpoint provides monthly living costs, average prices for meals, groceries, and other expenses for a specified city.

Key fields in the response data include "Country Name," "City Name," "Cost of Living Month Total," "Currency," and detailed price lists for various goods and services, such as meals and groceries.

The response data is structured in JSON format, with a main object containing metadata (like version and status) and nested arrays for specific price categories, such as restaurant and market prices.

Each endpoint provides different information: "GET COUNTRIES" lists countries, "GET CITIES BY COUNTRY" lists cities, while "COST OF LIVING BY CITY" and "COST OF LIVING BY COUNTRY" provide detailed cost data for specific locations.

Parameters typically include the country and city names for endpoints like "COST OF LIVING BY CITY." Users can customize requests by specifying these parameters to retrieve targeted data.

Typical use cases include individuals comparing living costs when relocating, businesses assessing new market feasibility, and researchers analyzing economic trends across different regions.

Data accuracy is maintained through sourcing from reliable providers and regular updates. Quality checks ensure that the information reflects current market conditions and trends.

Users can analyze the detailed price lists to budget for living expenses, compare costs across cities, or identify affordable locations based on their income and lifestyle needs.

General FAQs

To obtain your API key, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key to authenticate your requests.

You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.

The free trial lasts for 7 days and allows you to make up to 50 API requests.

No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.

Yes. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.

Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.

Prices are listed in USD (United States Dollar), EUR (Euro), CAD (Canadian Dollar), AUD (Australian Dollar), and GBP (British Pound). We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world's most reliable payment companies. If you have any trouble paying by card, just contact us at [email protected]

Additionally, if you already have an active subscription in any of these currencies (USD, EUR, CAD, AUD, GBP), that currency will remain for subsequent subscriptions. You can change the currency at any time as long as you don't have any active subscriptions.
The local currency shown on the pricing page is based on the country of your IP address and is provided for reference only. The actual prices are in USD (United States Dollar). When you make a payment, the charge will appear on your card statement in USD, even if you see the equivalent amount in your local currency on our website. This means you cannot pay directly with your local currency.
Occasionally, a bank may decline the charge due to its fraud protection settings. We suggest reaching out to your bank initially to check if they are blocking our charges. Also, you can access the Billing Portal and change the card associated to make the payment. If these does not work and you need further assistance, please contact our team at [email protected]
Prices are determined by a recurring monthly or yearly subscription, depending on the chosen plan.
API calls are deducted from your plan based on successful requests. Each plan comes with a specific number of calls that you can make per month. Only successful calls, indicated by a Status 200 response, will be counted against your total. This ensures that failed or incomplete requests do not impact your monthly quota.
Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.
To upgrade your current subscription plan, simply go to the pricing page of the API and select the plan you want to upgrade to. The upgrade will be instant, allowing you to immediately enjoy the features of the new plan. Please note that any remaining calls from your previous plan will not be carried over to the new plan, so be aware of this when upgrading. You will be charged the full amount of the new plan.
To check how many API calls you have left for the current month, refer to the 'X-Zyla-API-Calls-Monthly-Remaining' field in the response header. For example, if your plan allows 1,000 requests per month and you've used 100, this field in the response header will indicate 900 remaining calls.

You can monitor your API usage through the response headers included with every request:

x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.

The 'X-Zyla-RateLimit-Reset' header shows the number of seconds until your rate limit resets. This tells you when your request count will start fresh. For example, if it displays 3,600, it means 3,600 seconds are left until the limit resets.

Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.

Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.

After 7 days, you will be charged the full amount for the plan you were subscribed to during the trial. Therefore, it's important to cancel before the trial period ends. Refund requests for forgetting to cancel on time are not accepted.
When you subscribe to an API free trial, you can make up to 50 API calls. If you wish to make additional API calls beyond this limit, the API will prompt you to perform an "Start Your Paid Plan." You can find the "Start Your Paid Plan" button in your profile under Subscription -> Choose the API you are subscribed to -> Pricing tab.
You can contact us through our chat channel to receive immediate assistance. We are always online from 8 am to 5 pm (EST). If you reach us after that time, we will get back to you as soon as possible. Additionally, you can contact us via email at [email protected]

Please have a look at our Refund Policy: https://zylalabs.com/terms#refund


Related APIs


You might also like