This is an example page. It’s different from a blog post because it will stay in one place and will show up in your site navigation (in most themes). Most people start with an About page that introduces them to potential site visitors. It might say something like this:

Hi there! I’m a bike messenger by day, aspiring actor by night, and this is my website. I live in Los Angeles, have a great dog named Jack, and I like piña coladas. (And gettin’ caught in the rain.)

…or something like this:

The XYZ Doohickey Company was founded in 1971, and has been providing quality doohickeys to the public ever since. Located in Gotham City, XYZ employs over 2,000 people and does all kinds of awesome things for the Gotham community.

As a new WordPress user, you should go to your dashboard to delete this page and create new pages for your content. Have fun!

Code Samples

You can integrate our countrylayer API into any of your applications written in any programming language.
The following code examples show how to use the countrylayer API with some common programming languages:
Search by country name. It can be a native or partial name.

var client = new
? access_key = ((YOUR_ACCESS_KEY))”);
client.Timeout = -1
var request = new RestRequest(Method.GET);
IRestResponse response = client.Execute(request);
var settings = {
“url”: “
? access_key = ((YOUR_ACCESS_KEY))”,
“method”: “GET”,
“timeout”: 0,

$.ajax(settings).done(function (response) {
console.log (response);
$curl = curl.init();

curl.setopt_array($curl, array(
? access_key = ((YOUR_ACCESS_KEY))’,

$response = curl_exec($curl);

echo $response;


Let’s send your first email. Grab the code below in your preferred language and paste it into your terminal.

Endpoint for country search by name

This endpoint will return available country data when it is searched by name of the country. If we search using a partial name, for example, “aus” then the API will return all countries that contain “Aus”. If we want to search for a country by the correct full name, then in the query we will have to add the parameter FullText, true or false.

API Request:

    ? access_key = API_KEY & FullText=

Request Parameters:

Parameter Description
access_key [Required] Your API Key.
name As part of the URL
FullText A boolean parameter in the URL

The API response and parameters are given above in the /all endpoint example.