Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

kfbfarley/country-dial-lookup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


REST API Country Data Lookup Service

GitHub is where people build software, learn and share ideas. In this project I am looking to learn things, i'm on the 2nd year of informatics engineering at the Polytechnic Institute of Bragança and it is highly appreciated if you could contribute, please reach me out with a pull request.

📑 Supported Inputs

These are the supported parameters you can lookup for a country data:

  • ISO2 (PT, US, GB)
  • Dial Code (+351, +1, +44)
  • Name (Portugal, United States, United Kingdom)

💻 Usage

These are the supported requests following the previous supported inputs

💙 Request

{ "dial_code": "+351" }
{ "iso": "pt" }
{ "name": "portugal" }

💚 Response

{
  "lookup": [
    {
      "name": "Portugal",
      "dial_code": "+351",
      "code": "PT"
    }
  ]
}

The representation illustrated above is a POST request made in the following Vercel repository URL which is published publically.

GET methods are also supported, here's how to do it:

🚀 Technologies

This project was built using the following technologies:

📄 Licensing

This repository is MIT licensed, as found in the LICENSE file.

Country Dial Lookup has no documentation, just this repository.