Cities Cost of Living and Average Prices API

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

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. 

API Documentation

Endpoints


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



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

Cost Of Living by Country v2 - Endpoint Features

Object Description
country [Required] Country name.
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"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":"75.00\u00a0$","McMeal at McDonalds (or Equivalent Combo Meal)":"11.00\u00a0$","Domestic Beer (1 pint draught)":"6.00\u00a0$","Imported Beer (12 oz small bottle)":"3.54\u00a0$","Cappuccino (regular)":"5.18\u00a0$","Coke\/Pepsi (12 oz small bottle)":"2.53\u00a0$","Water (12 oz small bottle)":"2.06\u00a0$","Milk (regular), (1 gallon)":"3.99\u00a0$","Loaf of Fresh White Bread (1 lb)":"3.26\u00a0$","Rice (white), (1 lb)":"2.07\u00a0$","Eggs (regular) (12)":"3.71\u00a0$","Local Cheese (1 lb)":"5.84\u00a0$","Chicken Fillets (1 lb)":"5.44\u00a0$","Beef Round (1 lb) (or Equivalent Back Leg Red Meat)":"7.25\u00a0$","Apples (1 lb)":"2.39\u00a0$","Banana (1 lb)":"0.76\u00a0$","Oranges (1 lb)":"2.04\u00a0$","Tomato (1 lb)":"2.22\u00a0$","Potato (1 lb)":"1.34\u00a0$","Onion (1 lb)":"1.40\u00a0$","Lettuce (1 head)":"2.18\u00a0$","Water (1.5 liter bottle)":"2.20\u00a0$","Bottle of Wine (Mid-Range)":"15.00\u00a0$","Domestic Beer (0.5 liter bottle)":"1.87\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.65\u00a0$","Taxi 1 mile (Normal Tariff)":"2.78\u00a0$","Taxi 1hour Waiting (Normal Tariff)":"30.00\u00a0$","Gasoline (1 gallon)":"3.61\u00a0$","Volkswagen Golf 1.4 90 KW Trendline (Or Equivalent New Car)":"33,755.50\u00a0$","Toyota Corolla Sedan 1.6l 97kW Comfort (Or Equivalent New Car)":"26,155.08\u00a0$","Basic (Electricity, Heating, Cooling, Water, Garbage) for 915 sq ft Apartment":"207.89\u00a0$","Mobile Phone Monthly Plan with Calls and 10GB+ Data":"55.31\u00a0$","Internet (60 Mbps or More, Unlimited Data, Cable\/ADSL)":"70.97\u00a0$","Fitness Club, Monthly Fee for 1 Adult":"46.42\u00a0$","Tennis Court Rent (1 Hour on Weekend)":"21.09\u00a0$","Cinema, International Release, 1 Seat":"14.00\u00a0$","Preschool (or Kindergarten), Full Day, Private, Monthly for 1 Child":"1,374.23\u00a0$","International Primary School, Yearly for 1 Child":"22,540.28\u00a0$","1 Pair of Jeans (Levis 501 Or Similar)":"52.35\u00a0$","1 Summer Dress in a Chain Store (Zara, H&M, ...)":"42.67\u00a0$","1 Pair of Nike Running Shoes (Mid-Range)":"88.92\u00a0$","1 Pair of Men Leather Business Shoes":"113.60\u00a0$","Apartment (1 bedroom) in City Centre":"1,751.95\u00a0$","Apartment (1 bedroom) Outside of Centre":"1,446.65\u00a0$","Apartment (3 bedrooms) in City Centre":"2,934.41\u00a0$","Apartment (3 bedrooms) Outside of Centre":"2,399.80\u00a0$","Price per Square Feet to Buy Apartment in City Centre":"323.60\u00a0$","Price per Square Feet to Buy Apartment Outside of Centre":"259.12\u00a0$","Average Monthly Net Salary (After Tax)":"4,426.47\u00a0$","Mortgage Interest Rate in Percentages (%), Yearly, for 20 Years Fixed-Rate":"6.57"}
                                                                                                                                                                                                                    
                                                                                                    

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=Required' --header 'Authorization: Bearer YOUR_API_KEY' 


    

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



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

Cost of Living by City v2 - Endpoint Features

Object Description
country [Required] Country name.
city [Required] City code.
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"Version":1,"Status":200,"Success":true,"City Name":"Natal","Meal, Inexpensive Restaurant":"27.00\u00a0R$","Meal for 2 People, Mid-range Restaurant, Three-course":"120.00\u00a0R$","McMeal at McDonalds (or Equivalent Combo Meal)":"32.50\u00a0R$","Domestic Beer (1 pint draught)":"8.00\u00a0R$","Imported Beer (12 oz small bottle)":"8.00\u00a0R$","Cappuccino (regular)":"7.80\u00a0R$","Coke\/Pepsi (12 oz small bottle)":"5.06\u00a0R$","Water (12 oz small bottle)":"2.33\u00a0R$","Milk (regular), (1 gallon)":"25.36\u00a0R$","Loaf of Fresh White Bread (1 lb)":"6.69\u00a0R$","Rice (white), (1 lb)":"2.49\u00a0R$","Eggs (regular) (12)":"11.25\u00a0R$","Local Cheese (1 lb)":"16.47\u00a0R$","Chicken Fillets (1 lb)":"8.00\u00a0R$","Beef Round (1 lb) (or Equivalent Back Leg Red Meat)":"17.86\u00a0R$","Apples (1 lb)":"5.29\u00a0R$","Banana (1 lb)":"1.81\u00a0R$","Oranges (1 lb)":"1.59\u00a0R$","Tomato (1 lb)":"2.49\u00a0R$","Potato (1 lb)":"2.27\u00a0R$","Onion (1 lb)":"2.49\u00a0R$","Lettuce (1 head)":"2.80\u00a0R$","Water (1.5 liter bottle)":"3.00\u00a0R$","Bottle of Wine (Mid-Range)":"40.00\u00a0R$","Domestic Beer (0.5 liter bottle)":"5.35\u00a0R$","Cigarettes 20 Pack (Marlboro)":"9.00\u00a0R$","One-way Ticket (Local Transport)":"4.50\u00a0R$","Monthly Pass (Regular Price)":"170.00\u00a0R$","Taxi Start (Normal Tariff)":"5.00\u00a0R$","Taxi 1 mile (Normal Tariff)":"4.71\u00a0R$","Taxi 1hour Waiting (Normal Tariff)":"16.88\u00a0R$","Gasoline (1 gallon)":"20.98\u00a0R$","Volkswagen Golf 1.4 90 KW Trendline (Or Equivalent New Car)":"105,000.00\u00a0R$","Toyota Corolla Sedan 1.6l 97kW Comfort (Or Equivalent New Car)":"126,950.00\u00a0R$","Basic (Electricity, Heating, Cooling, Water, Garbage) for 915 sq ft Apartment":"190.45\u00a0R$","Mobile Phone Monthly Plan with Calls and 10GB+ Data":"86.85\u00a0R$","Internet (60 Mbps or More, Unlimited Data, Cable\/ADSL)":"99.98\u00a0R$","Fitness Club, Monthly Fee for 1 Adult":"114.50\u00a0R$","Tennis Court Rent (1 Hour on Weekend)":"115.56\u00a0R$","Cinema, International Release, 1 Seat":"35.00\u00a0R$","Preschool (or Kindergarten), Full Day, Private, Monthly for 1 Child":"800.00\u00a0R$","International Primary School, Yearly for 1 Child":"24,000.00\u00a0R$","1 Pair of Jeans (Levis 501 Or Similar)":"190.00\u00a0R$","1 Summer Dress in a Chain Store (Zara, H&M, ...)":"230.00\u00a0R$","1 Pair of Nike Running Shoes (Mid-Range)":"273.33\u00a0R$","1 Pair of Men Leather Business Shoes":"250.00\u00a0R$","Apartment (1 bedroom) in City Centre":"1,666.67\u00a0R$","Apartment (1 bedroom) Outside of Centre":"733.33\u00a0R$","Apartment (3 bedrooms) in City Centre":"2,500.00\u00a0R$","Apartment (3 bedrooms) Outside of Centre":"1,900.00\u00a0R$","Price per Square Feet to Buy Apartment in City Centre":"504.30\u00a0R$","Price per Square Feet to Buy Apartment Outside of Centre":"314.54\u00a0R$","Average Monthly Net Salary (After Tax)":"1,598.92\u00a0R$","Mortgage Interest Rate in Percentages (%), Yearly, for 20 Years Fixed-Rate":"12.00"}
                                                                                                                                                                                                                    
                                                                                                    

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=Required&city=Required' --header 'Authorization: Bearer YOUR_API_KEY' 


    

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



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

Get Countries V2 - Endpoint Features

Object Description
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            ["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' 


    

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



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

Get Cities by Country V2 - Endpoint Features

Object Description
country [Required]
Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"country":"china","cities":["Ankang","Anqing","Anshan","Anyang","Baiquan","Baoding","Baoji","Baotou","Beihai","Beijing","Bengbu","Benxi","Binzhou","Bortala (Bole)","Bozhou","Changchun","Changde","Changsha","Changzhou","Chaozhou","Chengdu","Chenzhou","Chifeng","Chongqing","Chuzhou","Dalian","Daqing","Dongguan","Foshan","Fushun","Fuzhou","Gongzhuling","Guangzhou","Guilin","Guizhou","Haikou","Handan","Hangzhou","Harbin","Hefei","Heyuan","Heze","Hohhot","Huanggang","Huizhou","Huzhou","Jiangmen","Jiaozuo","Jiaxing","Jilin","Jinan","Jining","Jinzhou","Jiujiang","Kaifeng","Korla","Kunming, Yunnan","Langfang","Lanzhou","Lhasa","Lianyungang","Liaocheng","Linyi","Liuzhou","Longyan","Luoyang","Maoming","Mianyang, Sichuan","Mudanjiang","Nanchang","Nanchong","Nanjing","Nanning","Nantong","Ningbo","Panjin","Pingdingshan","Putian","Qingdao, Shandong","Quanzhou","Quzhou","Rizhao","Sanya","Shanghai","Shantou","Shaoxing","Shenyang","Shenzhen","Shijiazhuang","Suzhou","Taicang, Suzhou, Jiangsu","Taiyuan","Taizhou","Tianjin","Tieling","Tonghua","Urumqi","Weifang","Weihai","Wenzhou","Wuhan","Wuhu","Wuxi","Xi'an","Xiamen","Xianyang","Xinxiang","Xuzhou","Yancheng","Yangzhou","Yantai","Yinchuan","Yiwu","Yulin","Yuncheng","Zaozhuang","Zhangjiagang","Zhangjiakou","Zhanjiang","Zhengzhou","Zhenjiang","Zhongshan","Zhoukou","Zhoushan","Zhuhai","Zibo"]}
                                                                                                                                                                                                                    
                                                                                                    

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=Argentina' --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 REST 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 commitments. One click upgrade/downgrade or cancellation. No questions asked.

πŸš€ Enterprise

Starts at
$ 10,000/Year


  • Custom Volume
  • Custom Rate Limit
  • Specialized Customer Support
  • Real-Time API Monitoring

Customer favorite features

  • βœ”οΈŽ Only Pay for Successful Requests
  • βœ”οΈŽ Free 7-Day Trial
  • βœ”οΈŽ Multi-Language Support
  • βœ”οΈŽ One API Key, All APIs.
  • βœ”οΈŽ Intuitive Dashboard
  • βœ”οΈŽ Comprehensive Error Handling
  • βœ”οΈŽ Developer-Friendly Docs
  • βœ”οΈŽ Postman Integration
  • βœ”οΈŽ Secure HTTPS Connections
  • βœ”οΈŽ Reliable Uptime

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.

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, look at the β€˜X-Zyla-API-Calls-Monthly-Remaining’ header. For example, if your plan allows 1000 requests per month and you've used 100, this header will show 900.

To see the maximum number of API requests your plan allows, check the β€˜X-Zyla-RateLimit-Limit’ header. For instance, if your plan includes 1000 requests per month, this header will display 1000.

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 3600, it means 3600 seconds are left until the limit resets.

Yes, you can cancel your plan anytime by going to your account and selecting the cancellation option on the Billing page. Please note that upgrades, downgrades, and cancellations take effect immediately. Additionally, upon cancellation, you will no longer have access to the service, even if you have remaining calls left in your quota.

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]

To let you experience our APIs without any commitment, we offer a 7-day free trial that allows you to make API calls at no cost during this period. Please note that you can only use this trial once, so make sure to use it with the API that interests you the most. Most of our APIs provide a free trial, but some may not support it.

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 trial, you can make only 25% of the calls allowed by that plan. For example, if the API plan offers 1000 calls, you can make only 250 during the trial. To access the full number of calls offered by the plan, you will need to subscribe to the full plan.

 Service Level
100%
 Response Time
319ms

Category:


Related APIs