USE CASE · IN YOUR BROWSER

Export life expectancy by country for a year

Enter a list of three-letter country codes and a year, and AIVane reads the World Bank life expectancy indicator and writes one row per country to an Excel file: country, ISO3 code, year and life expectancy in years. Our test asked for the USA, Canada and Mexico for 2023 and got three rows. Source: World Bank, World Development Indicators.

How it works

  1. Copy the dataset export. Choose Try it in your browser. The automation reads the World Bank indicator; no browser is opened.
  2. Enter countries and year. Type comma-separated three-letter codes, such as USA,CAN,MEX, and a four-digit year.
  3. Chart it. Open the workbook and chart the life_expectancy_years column by country.

Try it on the practice site

  1. 01

    Open life-expectancy-dataset

    After you sign in from the Try it link, the automation is in My automations with three steps: check the export settings, read life expectancy observations and save the Excel workbook.

    The automation life-expectancy-dataset in My automations: Ready, 3 steps, Check the export settings, Read life expectancy observations and Save the Excel workbook
  2. 02

    Enter the countries and run it

    Choose Run. Country codes are USA,CAN,MEX, Reporting year is 2023, Maximum rows is 50 and Excel file is life-expectancy.xlsx. Choose Confirm and run.

    The Run automation dialog in AIVane Cloud with the World Bank API URL, Country codes USA,CAN,MEX, Reporting year 2023, Maximum rows 50 and Excel file life-expectancy.xlsx
  3. 03

    Download life-expectancy.xlsx

    Our run took 7 seconds and wrote 3 rows with country, iso3_code, year and life_expectancy_years. The first row was Canada, CAN, 2023, with about 81.63 years.

    Run details of the succeeded cloud run life-expectancy-dataset: 7 seconds, Outputs lists life-expectancy.xlsx with a Download button

How other methods compare

The World Bank data site
Great for exploring and charts. The automation saves chosen countries and a year as a workbook.
Downloading a full dataset
Gives every country and year; you then filter it yourself.
Copying numbers by hand
Slow and easy to get wrong.

Frequently asked questions

Which indicator is it?

Life expectancy at birth, total, in years (World Bank code SP.DYN.LE00.IN).

What if a country has no value for the year?

According to the automation's steps, the row is kept and the cell is left blank. All three of ours had values.

Are the values final?

No. The World Bank can revise them, so a later run may differ.

How many countries can I list?

Up to Maximum rows. We tested three.

Can I run it on a schedule?

Running on a schedule in AIVane Cloud is part of Pro and Business, and you can create the schedule in your browser. The cloud schedule limit is 5 on Pro and 20 per organization on Business. Free and Starter can try scheduling: 1 cloud schedule turned on and up to 3 scheduled runs within 7 days of the first scheduled run. Each trial run uses your remaining cloud minutes; on Free, that is the one 10-minute AIVane Cloud trial.

Is it free?

Free includes 3 saved automations, local runs of up to 15 minutes each and a one-time 10-minute AIVane Cloud trial. Our run used 14 seconds of cloud time.

Want a hand with this?

Our first users can ask for hands-on help: one website task, one sheet, and a week of watching it run.

Get help automating this task

Last verified 2026-11-28 with the AIVane web workspace at app.aivane.net (production server of 2026-11-28).