Connect Public APIs to Your Data
Connect to any public REST API, join it with your files, and enrich your data instantly
Connect Public APIs to Your Data
This guide shows how to connect to any public REST API (like REST Countries), sync the data into InstantRows, join it with your own files, and enrich your data with external information. Perfect for enriching customer data, adding geographic context, or combining any public API with your datasets.
Prerequisites
- Be logged into your InstantRows Account
- Download the sample file:
Step 1 — Connect to REST Countries API
- Click Connect API
- Enter a name for the API:
REST Countries - Enter the API endpoint:
https://restcountries.com/v3.1/all?fields=name,cca2,region,subregion,population,capital,area - Select No Authorisation
- Click Test connection
- Click Import All Data
- Once complete, you'll see the countries data with fields like
name.common,cca2,region,population
Step 2 — Upload Your Data File
- Click Upload button
- Select your data file (e.g.,
ecommerce_sales_by_country.csv) - The data should load showing your records
Step 3 — Join Your Data to API Data
- Click Join in the toolbar
- Select Left table: Your uploaded file
- Select Right table: REST Countries API data
- Set Join condition:
country_code(from your file) =cca2(from API) - Select Join type: Left join (to keep all your data)
- Click Apply
- Your data is now enriched with API data (population, region, geographic info)
Step 4 — Compute Revenue Per Capita
- Click the revenue column header → Compute
- Select Divide (A ÷ B) from Compare Values
- First column:
current_revenue - Second column:
population - Column name:
revenue_per_capita - Click Add Computed Column
- This shows how much revenue you generate per person in each country
Step 5 — Compute Population in Millions
- Click the population column header → Compute
- Select Divide (A ÷ B) from Compare Values
- First column:
population - Second column: Type or create a constant column with value
1000000 - Column name:
population_millions - Click Add Computed Column
- This normalizes population for easier analysis
Step 6 — Compute Revenue Penetration Score
- Click the current_revenue column header → Compute
- Select Divide (A ÷ B) from Compare Values
- First column:
current_revenue - Second column: Type
100000(or create constant) - Column name:
revenue_score - Click Add Computed Column
- This creates a 0-1 scale showing market penetration (higher = more saturated)
Step 7 — Filter for High-Potential Markets
- Click the population column header → Filter
- Select Greater than operator
- Enter value:
10000000(countries with 10M+ people) - Click Apply
- Click the current_revenue column header → Filter
- Select Less than operator
- Enter value:
50000(markets where you're under-penetrated) - Click Apply
- You'll see countries like Indonesia, Brazil, Nigeria, Philippines - large populations with low sales
Step 8 — Sort by Population (Largest First)
- Click the population column header
- Select Sort Descending
- Your largest untapped markets are now at the top
- Look for countries with high population and low revenue_per_capita
Step 9 — Export Your Expansion Report
- Click Download → Excel (.xlsx) or CSV
- Your expansion analysis is ready with:
- Country name, region, and population (from API)
- Your current revenue and customer count (from your file)
- Revenue per capita (computed)
- Population in millions (computed)
- Revenue penetration scores (computed)
Key Insights You'll Discover
- Untapped Markets: Countries like Indonesia (275M people) or Nigeria (220M people) with very low revenue
- Regional Patterns: Where you're strong (e.g., Western Europe) vs. weak (e.g., Southeast Asia)
- Per Capita Performance: Which markets have the lowest revenue per capita (growth opportunity)
- Strategic Targets: Large populations in specific regions aligned with your strategy
Business Value
This 30-second analysis helps you:
- Prioritize which countries to target for expansion
- Identify under-served large markets
- Plan regional expansion strategies
- Allocate marketing budget based on market potential
That's it — you've turned raw API data and sales numbers into actionable expansion insights!
Ready to Try It Yourself?
Join our waitlist to get early access. Start transforming your data in seconds.