Demo to preview the settings
Introduction
Get comprehensive data about countries including languages, currencies, capital cities, and more.
List All Countries - Data Call
Rest Countries documentation: https://restcountries.com/#api-endpoints-v3-all
Set up the datasource
We're using a repeating group in our example. Make sure whatever element you use has the correct type of content set (List All Countrie (Countries)):
Set up the API call
Using the blue button from the screenshot above, we'll use a Display List action to send the results of this API call to the repeating group we've set up.
That's it! The repeating group is now set up to accept the data returned from this API call.
Refer to the documentation link at the top of this page to view a list of all attributes that are available for use.
Search Countries by Name - Data Call
Rest Countries documentation: https://restcountries.com/#api-endpoints-v3-name
Set up the datasource
We're using a repeating group in our example. Make sure whatever element you use has the correct type of content set (Search Countries by Name (Countries)):
Set up the API call
Using the blue button from the screenshot above, we'll use a Display List action to send the results of this API call to the repeating group we've set up.
Next, connect the input you'll be using to provide the search term.
That's it! The repeating group is now set up to accept the data returned from this API call.
Refer to the documentation link at the top of this page to view a list of all attributes that are available for use.
Available Path (* indicates a required value)
name* - The name of the country you're searching for.
Search Countries by Capital - Data Call
Rest Countries documentation: https://restcountries.com/#api-endpoints-v3-capital-city
Set up the datasource
We're using a repeating group in our example. Make sure whatever element you use has the correct type of content set (Search Countries by Capital (Countries)):
Set up the API call
Using the blue button from the screenshot above, we'll use a Display List action to send the results of this API call to the repeating group we've set up.
Next, connect the input you'll be using to provide the search term.
That's it! The repeating group is now set up to accept the data returned from this API call.
Refer to the documentation link at the top of this page to view a list of all attributes that are available for use.
Available Path (* indicates a required value)
capital* - The capital search term you're using.
Search Countries by Alpha Code - Data Call
Rest Countries documentation: https://restcountries.com/#api-endpoints-v3-code
Set up the datasource
We're using a repeating group in our example. Make sure whatever element you use has the correct type of content set (Search Countries by Alpha Code (Countries)):
Set up the API call
Using the blue button from the screenshot above, we'll use a Display List action to send the results of this API call to the repeating group we've set up.
Next, connect the input you'll be using to provide the search term.
That's it! The repeating group is now set up to accept the data returned from this API call.
Refer to the documentation link at the top of this page to view a list of all attributes that are available for use.
Available Path (* indicates a required value)
code* - The code search term you're using. Refer to the documentation linked at the top of the page for all available options.
Search Countries by Language - Data Call
Rest Countries documentation: https://restcountries.com/#api-endpoints-v3-language
Set up the datasource
We're using a repeating group in our example. Make sure whatever element you use has the correct type of content set (Search Countries by Langauge (Countries)):
Set up the API call
Using the blue button from the screenshot above, we'll use a Display List action to send the results of this API call to the repeating group we've set up.
Next, connect the input you'll be using to provide the search term.
That's it! The repeating group is now set up to accept the data returned from this API call.
Refer to the documentation link at the top of this page to view a list of all attributes that are available for use.
Available Path (* indicates a required value)
lang* - The language search term you're using.
Changelogs
Update 25.10.21 - Version 3.0.0
- Moved back to the Rest Countries API on their latest version (3.1) which is free. Also added a language search.
Update 27.09.21 - Version 2.0.0
- The API service has moved to a new domain. Please upgrade to this version to get the latest API. Requires API key.
Update 28.11.19 - Version 1.2.0
- Added a new call to get a specific country by name.
Update 01.02.18 - Version 1.1.0
- Version 2 call added to include new data like flags and CIOC code
Update 01.02.17 - Version 1.0.0
- First release