This API provides a single endpoint to check if a given word can be constructed using country codes. If the word can be constructed, it returns the list of country codes along with a concatenated string for easy copy-pasting.
/check?word=<word>
word
: The word to be checked for constructability using country codes.
The response is in JSON format and includes the following fields:
buildable
: A boolean indicating whether the word can be constructed using country codes.sequence
: An array of Unicode flag emoji representing the country codes used to construct the word.readyToCopyPaste
: A concatenated string of the Unicode flag emoji, ready for copy-pasting.
GET /check?word=Cars
{
"buildable": true,
"sequence": ["๐จ๐ฆ","๐ท๐ธ"],
"readyToCopyPaste": "๐จ๐ฆ๐ท๐ธ"
}