Skip to content
API listCountry
API list

Country API

Get country list API

Returns the list of countries with eSIM products provided by SimplifyTrip.

Query Parameters
querystring

Search keyword by name, id, …

takenumber

Number of results returned per page

skipnumber

Starting offset for returned results.

Responses
200 OK
application/json
Success
total - requirednumber
take - requirednumber
skip - requirednumber
items - required
4xx/5xx Error
application/json
Error
timestamptimestamp
statusCodenumber
errorCodestring
messagestring
GET
/api/v1/countries
Sample Request
Try it on Swagger
Nodejs
PHP
C#
Java
Go
Curl

_35
// Using axios
_35
import axios from 'axios';
_35
_35
const options = {
_35
method: 'GET',
_35
url: 'https://merchant.simplifytrip.com/api/v1/countries?take=10&skip=0',
_35
headers: {
_35
accept: 'application/json',
_35
'content-type': 'application/json',
_35
authorization: 'Bearer sk_live_xxxxxxxxxxxxxxxxxx',
_35
'x-api-key': 'pk_live_xxxxxxxxxxxxxxxxxx',
_35
}
_35
};
_35
_35
axios
_35
.request(options)
_35
.then(res => console.log(res.data))
_35
.catch(err => console.error(err));
_35
_35
// Using fetch api
_35
const url = 'https://merchant.simplifytrip.com/api/v1/countries?take=10&skip=0';
_35
const options = {
_35
method: 'GET',
_35
headers: {
_35
accept: 'application/json',
_35
'content-type': 'application/json',
_35
authorization: 'Bearer sk_live_xxxxxxxxxxxxxxxxxx',
_35
'x-api-key': 'pk_live_xxxxxxxxxxxxxxxxxx',
_35
}
_35
};
_35
_35
fetch(url, options)
_35
.then(res => res.json())
_35
.then(json => console.log(json))
_35
.catch(err => console.error(err));

Sample Response

_23
{
_23
"total": 100,
_23
"skip": 0,
_23
"take": 10,
_23
"items": [
_23
{
_23
{
_23
"name": {
_23
"vi": "Thailand",
_23
"en": "Thailand"
_23
},
_23
"id": "TH",
_23
"createdAt": "2025-02-08T07:47:23.630Z",
_23
"updatedAt": "2025-02-08T07:47:23.630Z",
_23
"continent": "Asia",
_23
"mcc": "TH",
_23
"mcc3": "THA",
_23
"thumbnail": "https://awssimplifytrip.s3.ap-southeast-1.amazonaws.com/flag/thailand-flag.jpg"
_23
},
_23
},
_23
...
_23
]
_23
}