info@ismena.com
Ismena websiteIsmena websiteIsmena websiteIsmena website
  • Home
  • About us
  • Technologies
    • Cloud Services
      • Google Cloud Platform
        • Networking
        • Compute
        • Storage
        • SAP on GCP
        • Google Maps
        • Data Center Modernization
    • Infrastructure
      • iSolution Services
      • Unified Communication
      • Network Security
      • Access Security & Control
      • Computing Platforms
      • Structured Cabling Infrastructure
      • Datacenter Infrastructure
      • Networking Infrastructure
      • Retail Analytics
      • Cloud Infrastructure
    • Integration
      • Apigee
      • IBM
      • Custom Connectors
      • UnifAI
    • Security
      • Security Consulting Services
      • Security Solutions
    • Data & AI
      • BigQuery, Looker
      • Gemini
    • Collaboration Tools
      • Google Workspace For Enterprise
    • ERP-CRM
      • Odoo
      • Salesforce
      • SAP on GCP
    • DevOps
      • GCP
      • SonarSource
    • Managed Service Provider
      • Managed Service Provider
    • App Development
      • App Development
    • Open Banking
      • Open banking
    • Chrome Devices
  • Unplugged Podcast
  • Blog
    • Success Stories
    • News
    • Articles
  • Careers
  • Contact Us

Technologies

Integration

Custom Connectors

Explore All Connectors

Countrylayer Connector

Countrylayer Connector

Connector Details

Type

Virtual machines, Single VM , BYOL

Runs on

Google Compute Engine

Last Update

24 October, 2024

Category

Overview

Documentation

Pricing

Support

Overview

The Countrylayer Connector facilitates seamless integration providing access to detailed country informationI. This connector acts as a proxy to streamline data retrieval, supporting actions for retrieving all countries, searching by country name, capital, language, currency, region, regional bloc, calling code, or alpha code. It supports filtering to refine responses and handles authentication through an API key.

Integration Overview

This document provides a detailed guide for each integration point, its purpose, configuration, and workflow support using the Countrylayer Connector.

Supported Integration Action Points

  • getAllCountries: Retrieves a list of all available countries.
  • searchCountriesByName: Searches for countries by name, with optional full-text search.
  • searchCountriesByCapital: Searches for countries by capital city name.
  • searchCountriesByLanguage: Searches for countries by official language.
  • searchCountriesByCurrency: Searches for countries by official currency.
  • searchCountriesByRegion: Searches for countries by region.
  • searchCountriesByRegionalBloc: Searches for countries by regional bloc membership.
  • searchCountriesByCallingCode: Searches for countries by calling code.
  • searchCountriesByAlphaCode: Searches for countries by alpha code.
  • ping: Checks the health of the connector service.

Detailed Integration Documentation

Get All Countries

Operation ID getAllCountries
Endpoint /all-countries
Purpose Retrieves a list of all available countries, with optional filtering to include specific fields (e.g., name, capital, currencies). Data may be limited based on the subscription plan.
Parameters
  • Required:
    • access_key: Your API key (string, e.g., YOUR-API-KEY)
  • Optional:
    • filters: Semicolon-separated list of fields to include in the response (string, e.g., "name;capital;currencies")
Output
  • Successful: Returns a JSON array of country objects with:
    • name
    • topLevelDomain
    • alpha2Code
    • alpha3Code
    • callingCodes
    • capital
    • altSpellings
    • region
    • subregion
    • population
    • latlng
    • demonym
    • area
    • gini
    • timezones
    • borders
    • nativeName
    • numericCode
    • currencies
    • languages
    • translations
    • flag
    • regionalBlocs
    • cioc
  • Failure: Returns error details (e.g., error: {code: "101", type: "invalid_access_key", message: "You have not supplied a valid API Access Key."})
Workflow Example
  • Execute the getAllCountries action with access_key and optional filters=name;capital;currencies
  • Process the response to retrieve country details
  • Use the data for applications like country selection dropdowns or geographic analysis

Search Countries by Name

Operation ID searchCountriesByName
Endpoint /search-by-name/{name}
Purpose Searches for countries by name, supporting partial or full-text searches, with optional filtering.
Parameters
  • Required:
    • access_key: Your API key (string, e.g., YOUR-API-KEY)
    • name: The country name to search (string, e.g., "Germany")
  • Optional:
    • fullText: Whether to perform a full-text search (boolean, e.g., true)
    • filters: Semicolon-separated list of fields to include in the response (string, e.g., "name;capital;currencies")
Output
  • Successful: Returns a JSON array of country objects (same structure as getAllCountries)
  • Failure: Returns error details (e.g., error: {code: "404", type: "404_not_found", message: "The requested resource does not exist."})
Workflow Example
  • Execute the searchCountriesByName action with access_key, name=Germany, and optional fullText=true
  • Review the response to obtain matching country details
  • Use the data for search functionality or country-specific information display

Search Countries by Capital

Operation ID searchCountriesByCapital
Endpoint /search-by-capital/{capital}
Purpose Retrieves country data by capital city name, with optional filtering.
Parameters
  • Required:
    • access_key: Your API key (string, e.g., YOUR-API-KEY)
    • capital: The capital city name to search (string, e.g., "Berlin")
  • Optional:
    • filters: Semicolon-separated list of fields to include in the response (string, e.g., "name;capital;currencies")
Output
  • Successful: Returns a JSON array of country objects (same structure as getAllCountries)
  • Failure: Returns error details (e.g., error: {code: "404", type: "404_not_found", message: "The requested resource does not exist."})
Workflow Example
  • Execute the searchCountriesByCapital action with access_key and capital=Berlin
  • Review the response to obtain country details for the specified capital
  • Use the data for geographic or travel-related applications

Search Countries by Language

Operation ID searchCountriesByLanguage
Endpoint /search-by-language/{language}
Purpose Retrieves country data by official language spoken, with optional filtering.
Parameters
  • Required:
    • access_key: Your API key (string, e.g., YOUR-API-KEY)
    • language: The language code or name to search (string, e.g., "ita")
  • Optional:
    • filters: Semicolon-separated list of fields to include in the response (string, e.g., "name;capital;currencies")
Output
  • Successful: Returns a JSON array of country objects (same structure as getAllCountries)
  • Failure: Returns error details (e.g., error: {code: "404", type: "404_not_found", message: "The requested resource does not exist."})
Workflow Example
  • Execute the searchCountriesByLanguage action with access_key and language=ita
  • Review the response to obtain countries where Italian is an official language
  • Use the data for linguistic or cultural analysis

Search Countries by Currency

Operation ID searchCountriesByCurrency
Endpoint /search-by-currency/{currency}
Purpose Retrieves country data by official currency used, with optional filtering.
Parameters
  • Required:
    • access_key: Your API key (string, e.g., YOUR-API-KEY)
    • currency: The currency code to search (string, e.g., "EUR")
  • Optional:
    • filters: Semicolon-separated list of fields to include in the response (string, e.g., "name;capital;currencies")
Output
  • Successful: Returns a JSON array of country objects (same structure as getAllCountries)
  • Failure: Returns error details (e.g., error: {code: "404", type: "404_not_found", message: "The requested resource does not exist."})
Workflow Example
  • Execute the searchCountriesByCurrency action with access_key and currency=EUR
  • Review the response to obtain countries using the Euro
  • Use the data for financial or e-commerce applications

Search Countries by Region

Operation ID searchCountriesByRegion
Endpoint /search-by-region/{region}
Purpose Retrieves country data by region, with optional filtering.
Parameters
  • Required:
    • access_key: Your API key (string, e.g., YOUR-API-KEY)
    • region: The region name to search (string, e.g., "Europe")
  • Optional:
    • filters: Semicolon-separated list of fields to include in the response (string, e.g., "name;capital;currencies")
Output
  • Successful: Returns a JSON array of country objects (same structure as getAllCountries)
  • Failure: Returns error details (e.g., error: {code: "404", type: "404_not_found", message: "The requested resource does not exist."})
Workflow Example
  • Execute the searchCountriesByRegion action with access_key and region=Europe
  • Review the response to obtain countries in the Europe region
  • Use the data for regional analysis or mapping

Search Countries by Regional Bloc

Operation ID searchCountriesByRegionalBloc
Endpoint /search-by-regionalbloc/{regionalbloc}
Purpose Retrieves country data by regional bloc membership, with optional filtering.
Parameters
  • Required:
    • access_key: Your API key (string, e.g., YOUR-API-KEY)
    • regionalbloc: The regional bloc acronym to search (string, e.g., "EU")
  • Optional:
    • filters: Semicolon-separated list of fields to include in the response (string, e.g., "name;capital;currencies")
Output
  • Successful: Returns a JSON array of country objects (same structure as getAllCountries)
  • Failure: Returns error details (e.g., error: {code: "404", type: "404_not_found", message: "The requested resource does not exist."})
Workflow Example
  • Execute the searchCountriesByRegionalBloc action with access_key and regionalbloc=EU
  • Review the response to obtain countries in the European Union
  • Use the data for policy or trade-related applications

Search Countries by Calling Code

Operation ID searchCountriesByCallingCode
Endpoint /search-by-callingcode/{callingcode}
Purpose Retrieves country data by official calling code, with optional filtering.
Parameters
  • Required:
    • access_key: Your API key (string, e.g., YOUR-API-KEY)
    • callingcode: The calling code to search (string, e.g., "49")
  • Optional:
    • filters: Semicolon-separated list of fields to include in the response (string, e.g., "name;capital;currencies")
Output
  • Successful: Returns a JSON array of country objects (same structure as getAllCountries)
  • Failure: Returns error details (e.g., error: {code: "404", type: "404_not_found", message: "The requested resource does not exist."})
Workflow Example
  • Execute the searchCountriesByCallingCode action with access_key and callingcode=49
  • Review the response to obtain countries with the calling code +49
  • Use the data for telecommunications or contact management

Search Countries by Alpha Code

Operation ID searchCountriesByAlphaCode
Endpoint /search-by-alpha-code/{code}
Purpose Retrieves country data by alpha code, with optional filtering.
Parameters
  • Required:
    • access_key: Your API key (string, e.g., YOUR-API-KEY)
    • code: The alpha code to search (string, e.g., "DE")
  • Optional:
    • filters: Semicolon-separated list of fields to include in the response (string, e.g., "name;capital;currencies")
Output
  • Successful: Returns a JSON array of country objects (same structure as getAllCountries)
  • Failure: Returns error details (e.g., error: {code: "404", type: "404_not_found", message: "The requested resource does not exist."})
Workflow Example
  • Execute the searchCountriesByAlphaCode action with access_key and code=DE
  • Review the response to obtain country details for Germany
  • Use the data for country-specific data processing

Health Check

Operation ID ping
Endpoint /ping
Purpose Checks the health of the connector service.
Parameters None
Configuration No specific configuration required.
Output
  • Successful: Returns a plain text response "OK" with status code 200
  • Failure: Returns an appropriate error status if the service is unavailable
Workflow Example
  • Execute the ping action to verify the connector is running
  • Use the response to confirm service availability

Configuration

To use the Countrylayer Connector, configure the following environment variables:

  • CONNECTOR_ENV_COUNTRYLAYER_BASE_URL: The base URL of the Countrylayer API.
  • CONNECTOR_ENV_PORT: The port on which the Flask service runs (default: 8081).

Workflow Creation with the Connector

Example Workflow: Country Information Retrieval and Filtering

Retrieve All Countries
  • Execute the getAllCountries action with access_key and filters=name;capital;currencies
  • Process the response to obtain a list of countries with only the specified fields
  • Use the data for a country selection dropdown in an e-commerce application
Search by Name
  • Execute the searchCountriesByName action with access_key, name=Germany, and fullText=true
  • Confirm the country details for Germany
  • Use the data for customer validation or localization
Search by Currency
  • Execute the searchCountriesByCurrency action with access_key and currency=EUR
  • Retrieve countries using the Euro
  • Apply the data for financial calculations or market analysis
Search by Region
  • Execute the searchCountriesByRegion action with access_key and region=Europe
  • Obtain countries in the Europe region
  • Use the data for regional reporting or mapping applications

Pricing

Request a Quote

Support

For Technical support please contact us on

custom-connectors-support@isolutions.sa

iSolution logo - white - transparent 250 px

iSolution logo - white - transparent 250 px

A tech solution company dedicated to providing innovation thus empowering businesses to thrive in the digital age.

  • Home
  • About us
  • Blog
  • Careers
  • Success Stories
  • News
  • Articles
  • Contact Us
  • Terms and conditions
  • Privacy Policy
© Copyright 2024 iSolution | All Rights Reserved
  • Home
  • About us
  • Technologies
    • Cloud Services
      • Google Cloud Platform
        • Networking
        • Compute
        • Storage
        • SAP on GCP
        • Google Maps
        • Data Center Modernization
    • Infrastructure
      • iSolution Services
      • Unified Communication
      • Network Security
      • Access Security & Control
      • Computing Platforms
      • Structured Cabling Infrastructure
      • Datacenter Infrastructure
      • Networking Infrastructure
      • Retail Analytics
      • Cloud Infrastructure
    • Integration
      • Apigee
      • IBM
      • Custom Connectors
      • UnifAI
    • Security
      • Security Consulting Services
      • Security Solutions
    • Data & AI
      • BigQuery, Looker
      • Gemini
    • Collaboration Tools
      • Google Workspace For Enterprise
    • ERP-CRM
      • Odoo
      • Salesforce
      • SAP on GCP
    • DevOps
      • GCP
      • SonarSource
    • Managed Service Provider
      • Managed Service Provider
    • App Development
      • App Development
    • Open Banking
      • Open banking
    • Chrome Devices
  • Unplugged Podcast
  • Blog
    • Success Stories
    • News
    • Articles
  • Careers
  • Contact Us
Ismena website

Register To Palo Alto & iSolution Event

Register to IBM x iSolution Event

Register to Gemini in Action Workshop

[forminator_form id=”14485″]

Registration To Amman Unplugged Event

[forminator_form id=”14419″]

Register to Gemini in Action Workshop

[forminator_form id=”14298″]

Tech and Culture Riyadh

[forminator_form id=”13094″]