Formulas for

Country Boundaries

Geography5 credits/cellSheets · Excel
=VERVE("countryboundaries", "CA")

Pull country border shapes into a spreadsheet. Returns GeoJSON polygons for any ISO country — Sheets or Excel.

It's one of 250+ live sources you reach with a single =VERVE() function — served from APIVerve's production data engine, billed at 5 credits per resolved cell, and refreshed on whatever cadence you set. No API keys to wrangle, no scripts, no exports.

A real example — the input you type, and the values you can pull from it. Click any cell to see the formula behind it.

countryboundaries.xlsxsample data
B2fx=VERVE("countryboundaries", A2, "field", "type")
A
B
1
Country
Type
2
CA
FeatureCollection
3
4
click any cell to see its formula5 credits / cell

Enrich an address list

Have a column of places? Fill =VERVE("countryboundaries", "CA") down it to resolve each into structured location data — coordinates, timezone, or region — right in the grid.

Clean location data in place

Normalize messy, hand-entered locations into consistent values without exporting to another tool and importing the result back.

Location-aware calculations

Feed Country Boundaries's output straight into distance, timezone, or cost math with the spreadsheet functions you already use.

The same function works in both apps — install once, sign in with your key, and type it into any cell.

Google SheetsAdd-on

Install from the Workspace Marketplace, then drop the formula into a cell. Autocomplete suggests the source and its fields.

=VERVE("countryboundaries", "CA")
Microsoft ExcelAdd-in

Same source, same arguments, same key — in Excel on desktop, the web, or mobile. Excel namespaces it as VERVE.CALL. Drag to fill a whole column.

=VERVE.CALL("countryboundaries", "CA")

Add a field name as the last argument to land just that value in the cell.

  • Type
    =VERVE("countryboundaries", "CA", "field", "type")
  • Features
    =VERVE("countryboundaries", "CA", "field", "features")
  • Features › Type
    =VERVE("countryboundaries", "CA", "field", "features.0.type")
  • Features › Id
    =VERVE("countryboundaries", "CA", "field", "features.0.id")
  • Features › Geometry
    =VERVE("countryboundaries", "CA", "field", "features.0.geometry")
  • Features › Geometry › Type
    =VERVE("countryboundaries", "CA", "field", "features.0.geometry.type")
  • Features › Geometry › Coordinates
    =VERVE("countryboundaries", "CA", "field", "features.0.geometry.coordinates")
  • Features › Properties
    =VERVE("countryboundaries", "CA", "field", "features.0.properties")
  • Features › Properties › Name
    =VERVE("countryboundaries", "CA", "field", "features.0.properties.name")

Country Boundaries, answered

Everything you need to wire it into a sheet.

How do I pull Country Boundaries into Google Sheets?
Install the VerveSheets add-on, sign in once with your key, and type =VERVE("countryboundaries", "CA", "field", "type") into any cell. The "field" argument names the value you want back, so the cell resolves to a single number or string you can chart, sort, or feed into another formula.
What data can I pull from Country Boundaries?
Country Boundaries returns type, features, features.0.type, features.0.id and features.0.geometry, plus 4 more — name any one of them as the "field" argument and that value lands in the cell. Leave the field out and the whole record spills into a two-column table instead.
Can I fill a whole column of Country Boundaries at once?
Yes. Put your country values down a column and point the formula at the range — A2:A50 instead of A2 — and one call returns a value for every row. Dragging the formula down works too, but the range form is a single billed call per column rather than one per cell.
How many credits does each Country Boundaries cell cost?
Each resolved cell costs 5 credits. A cell only re-bills when it actually refreshes, so a sheet you aren't touching doesn't keep charging.
Does Country Boundaries work in Excel as well as Google Sheets?
Yes — same arguments, same key, same fields. Excel namespaces custom functions, so the call is =VERVE.CALL() there and =VERVE() in Google Sheets; nothing else about it changes.

Put Country Boundaries in your next spreadsheet. Add the extension, paste the formula, and the cell keeps itself current.

Scaling up?

Volume pricing, custom SLAs, and dedicated support for high-traffic teams.

Contact sales