company logo

Help center

Go to Agentcis
Follow us on FacebookFollow us on Linkedin
All collectionsAPI DocumentationFetch Country List API

Fetch Country List API

Retrieve a comprehensive list of countries with currency information, supporting search functionality for dynamic dropdowns and form selections.

Base URL: https://{tenant-domain}/api/countries


                   

List Countries                  

  • Endpoint:/

  • Method: GET

  • Description:Lists countries and it’s description like currency code and many more


Response:

[

  {

    "id": 1,

    "country_name": "Australia",

    "currency_code": "AUD",

    "currency_name": "Australian Dollar",

    "country_dialing_code": "61",

    "value": "Australia - AUD [Australian Dollar]"

  },

  {

    "id": 2,

    "country_name": "United States",

    "currency_code": "USD",

    "currency_name": "US Dollar", 

    "country_dialing_code": "1",

    "value": "United States - USD [US Dollar]"

  },

  {

    "id": 3,

    "country_name": "United Kingdom",

    "currency_code": "GBP",

    "currency_name": "British Pound Sterling",

    "country_dialing_code": "44",

    "value": "United Kingdom - GBP [British Pound Sterling]"

  }

….

]


Formatted List of countries Countries                   

  • Endpoint:/list?keyword={character}

  • Method: GET

  • Description:Lists countries also supports wildcards for searching specific country

  • country_name is a parameter which accepts country name and fetch specific country

  • Endpoint:/list?keyword=Austr

  Response:

[

    {

        "id": 11,

        "country_name": "Australia",

        "currency_name": "Australian dollar",

        "currency_code": "AUD",

        "country_code": "AU",

        "country_dialing_code": "61",

        "country_code_iso_alpha3": "AUS",

        "value": "Australia"

    },

    {

        "id": 12,

        "country_name": "Austria",

        "currency_name": "euro",

        "currency_code": "EUR",

        "country_code": "AT",

        "country_dialing_code": "43",

        "country_code_iso_alpha3": "AUT",

        "value": "Austria"

    }

]


Did this answer your question?
😞
😐
😁