Info

Welcome to TravelshopTurkey XML API reference.

API Endpoint: https://www.travelshopturkey.com/api/json

api/xml/tours/agencymaxchild/22671

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/agencymaxchild/22671");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/agencymaxchild/22671", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/agencymaxchild/22671")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/agencymaxchild/22671", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/agencymaxchild/22671'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/agencymaxchild/22671"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/agencymaxchild/22671

POST api/xml/tours/agencymaxchild/22671

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="utf-8"?>
<rootNode>
  <status>1</status>
  <data>11</data>
</rootNode>
					

api/xml/tours/booking

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/booking");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/booking", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/booking")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/booking", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/booking'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/booking"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/booking

POST api/xml/tours/booking

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status/>
  <data/>
</rootNode>
					

QUERY PARAMETERS

Key Value
booking :  
tour_id :  
tourtype :  
accom :  
singlea :  
doublea :  
triplea :  
date :  
singlebalance :  
doublebalance :  
triplebalance :  
Totalbalance :  
currency_symbol :  
children :  
child_total :  
Start_Date :  
End_Date :  
totilchild :  
Price_ID :  
pax :  
totil :  
first_order :  
discountamount :  
last_order :  
cntfirstname :  
cntlastname :  
cntmail :  
cntphone :  
cntcountry :  
cntbirth :  
travellersnames[0] :  
country[0] :  
DOB[0] :  
flight_arrival_datetime :  
flight_arrival_number :  
flight_to_airport :  
flight_departure_datetime :  
flight_departure_number :  
flight_departure_from :  

api/xml/tours/cancellationpolicies/5

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/cancellationpolicies/5");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/cancellationpolicies/5", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/cancellationpolicies/5")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/cancellationpolicies/5", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/cancellationpolicies/5'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/cancellationpolicies/5"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/cancellationpolicies/5

POST api/xml/tours/cancellationpolicies/5

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>
      <policy>Tour explanation example</policy>
      <days>60</days>
      <percent>50</percent>
    </item>
  </data>
</rootNode>
					

api/xml/tours/childpolicy/5

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/childpolicy/5");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/childpolicy/5", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/childpolicy/5")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/childpolicy/5", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/childpolicy/5'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/childpolicy/5"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/childpolicy/5

POST api/xml/tours/childpolicy/5

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>
      <age_start>0</age_start>
      <age_end>2</age_end>
      <type>3</type>
      <value>20</value>
      <type_name>Flight Insurance for 0 to 2</type_name>
    </item>
  </data>
</rootNode>
					

api/xml/tours/cities

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/cities");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/cities", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/cities")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/cities", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/cities'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/cities"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/cities

POST api/xml/tours/cities

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>
      <id>24081</id>
      <name> Montebello Vicentino</name>
      <state_id>1901</state_id>
    </item>
  </data>
</rootNode>
					

api/xml/tours/city/1

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/city/1");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/city/1", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/city/1")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/city/1", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/city/1'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/city/1"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/city/1

POST api/xml/tours/city/1

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>
      <id>1</id>
      <name>Bombuflat</name>
      <state_id>1</state_id>
    </item>
  </data>
</rootNode>
					

api/xml/tours/continent_countries/1

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/continent_countries/1");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/continent_countries/1", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/continent_countries/1")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/continent_countries/1", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/continent_countries/1'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/continent_countries/1"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/continent_countries/1

POST api/xml/tours/continent_countries/1

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>
      <id>1</id>
      <sortname>AF</sortname>
      <name>Afghanistan</name>
      <phonecode>93</phonecode>
      <continent_id>1</continent_id>
    </item>
  </data>
</rootNode>
					

api/xml/tours/continent/1

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/continent/1");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/continent/1", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/continent/1")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/continent/1", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/continent/1'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/continent/1"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/continent/1

POST api/xml/tours/continent/1

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>
      <id>1</id>
      <sortname>AF</sortname>
      <name>Afghanistan</name>
      <phonecode>93</phonecode>
      <continent_id>1</continent_id>
    </item>
  </data>
</rootNode>
					

api/xml/tours/continents

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/continents");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/continents", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/continents")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/continents", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/continents'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/continents"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/continents

POST api/xml/tours/continents

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>
      <id>1</id>
      <name>Asia</name>
    </item>
  </data>
</rootNode>
					

api/xml/tours/countries

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/countries");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/countries", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/countries")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/countries", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/countries'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/countries"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/countries

POST api/xml/tours/countries

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>
      <id>5</id>
      <sortname>AD</sortname>
      <name>Andorra</name>
      <continent_id>4</continent_id>
    </item>
  </data>
</rootNode>
					

api/xml/tours/country/1

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/country/1");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/country/1", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/country/1")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/country/1", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/country/1'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/country/1"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/country/1

POST api/xml/tours/country/1

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <id>1</id>
    <sortname>AF</sortname>
    <name>Afghanistan</name>
    <phonecode>93</phonecode>
    <continent_id>1</continent_id>
  </data>
</rootNode>
					

api/xml/tours/getaccommodationsgroups/22671

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/getaccommodationsgroups/22671");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/getaccommodationsgroups/22671", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/getaccommodationsgroups/22671")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/getaccommodationsgroups/22671", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/getaccommodationsgroups/22671'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/getaccommodationsgroups/22671"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/getaccommodationsgroups/22671

POST api/xml/tours/getaccommodationsgroups/22671

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <price>
      <id>1</id>
      <name>3 Star</name>
    </price>
  </data>
</rootNode>
					

api/xml/tours/getaccommodations/22671/1

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/getaccommodations/22671/1");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/getaccommodations/22671/1", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/getaccommodations/22671/1")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/getaccommodations/22671/1", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/getaccommodations/22671/1'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/getaccommodations/22671/1"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/getaccommodations/22671/1

POST api/xml/tours/getaccommodations/22671/1

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status/>
  <data/>
</rootNode>
					

api/xml/tours/location

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/location");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/location", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/location")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/location", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/location'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/location"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/location

POST api/xml/tours/location

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>
      <id>1</id>
      <name>Asia</name>
      <countries>
        <item>
          <id>11</id>
          <sortname>AM</sortname>
          <name>Armenia</name>
          <continent_id>1</continent_id>
          <states/>
        </item>
        <item>
          <id>81</id>
          <sortname>GE</sortname>
          <name>Georgia</name>
          <continent_id>1</continent_id>
          <states>
            <item>
              <id>1353</id>
              <name>Tbilisi</name>
              <country_id>81</country_id>
              <cities/>
            </item>
          </states>
        </item>
      </countries>
    </item>
  </data>
</rootNode>
					

api/xml/tours/search

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/search");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/search", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/search")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/search", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/search'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/search"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/search

POST api/xml/tours/search

Response

status: boolean

data:


b439b68e1839c9bf903f6d1712cb7ff6
Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>
      <id>1</id>
      <name>Asia</name>
      <countries>
        <item>
          <id>11</id>
          <sortname>AM</sortname>
          <name>Armenia</name>
          <continent_id>1</continent_id>
          <states/>
        </item>
        <item>
          <id>81</id>
          <sortname>GE</sortname>
          <name>Georgia</name>
          <continent_id>1</continent_id>
          <states>
            <item>
              <id>1353</id>
              <name>Tbilisi</name>
              <country_id>81</country_id>
              <cities/>
            </item>
          </states>
        </item>
      </countries>
    </item>
  </data>
</rootNode>
					

QUERY PARAMETERS

Key Value
tour_name_like :  
continent_id :  
country_id :  
style_id :  
duration :  
budget :  
date_from :  
date_to :  

api/xml/tours/state/1

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/state/1");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/state/1", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/state/1")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/state/1", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/state/1'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/state/1"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/state/1

POST api/xml/tours/state/1

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>
      <id>42</id>
      <name>Badakhshan</name>
      <country_id>1</country_id>
    </item>
  </data>
</rootNode>
					

api/xml/tours/states

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/states");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/states", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/states")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/states", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/states'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/states"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/states

POST api/xml/tours/states

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>
      <id>4077</id>
      <name>'Adan</name>
      <country_id>243</country_id>
    </item>
  </data>
</rootNode>
					

api/xml/tours/tour_calculation

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/tour_calculation");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/tour_calculation", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/tour_calculation")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/tour_calculation", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/tour_calculation'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/tour_calculation"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/tour_calculation

POST api/xml/tours/tour_calculation

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <currency>EUR</currency>
    <pax>1</pax>
    <Total_pax>1</Total_pax>
    <children>1</children>
    <singlea>1</singlea>
    <singlea_price>1485</singlea_price>
    <agency_commission>10</agency_commission>
    <item>
      <item>1</item>
    </item>
    <item>
      <item>1</item>
    </item>
    <item>
      <item>20</item>
    </item>
    <child_total_price>0</child_total_price>
    <sub_total>1485</sub_total>
    <Total_after_Promo>1485</Total_after_Promo>
    <promotional_discount>0</promotional_discount>
    <Total_after_commision>1485</Total_after_commision>
    <Total_commision>1485</Total_commision>
    <Total>1485</Total>
    <P_Single>1485</P_Single>
    <P_Double>0</P_Double>
    <P_Triple>0</P_Triple>
    <CocukTotal>0</CocukTotal>
    <doublea>0</doublea>
    <triplea>0</triplea>
    <Total_Promo>1485</Total_Promo>
    <currency_code>EUR</currency_code>
    <Price_ID/>
    <Start_Date>2019-10-11</Start_Date>
    <End_Date>2020-03-13</End_Date>
  </data>
</rootNode>
					

QUERY PARAMETERS

Key Value
tour_id :  
date :  
tourtype :  
accom :  
pax :  
children :  
child[] :  
singlea :  
doublea :  
triplea :  

api/xml/tours/tour_calculation_daily_tour

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/tour_calculation_daily_tour");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/tour_calculation_daily_tour", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/tour_calculation_daily_tour")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/tour_calculation_daily_tour", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/tour_calculation_daily_tour'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/tour_calculation_daily_tour"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/tour_calculation_daily_tour

POST api/xml/tours/tour_calculation_daily_tour

Response

status: boolean

data: object


Example response (200):
Server error: `GET http://travelshopturkey.test/api/xml/tours/tour_calculation_daily_tour` resulted in a `500 Internal Server Error` response:
{
    "message": "Undefined index: agency_discount",
    "exception": "ErrorException",
    "file": "/home/vagrant/code/ (truncated...)
					

api/xml/tours/touravailableondates/5

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/touravailableondates/5");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/touravailableondates/5", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/touravailableondates/5")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/touravailableondates/5", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/touravailableondates/5'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/touravailableondates/5"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/touravailableondates/5

POST api/xml/tours/touravailableondates/5

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>
      <id>1</id>
      <tour_id>5</tour_id>
      <date_from>2019-04-01</date_from>
      <date_to>2019-10-15</date_to>
      <sunday>1</sunday>
      <monday>1</monday>
      <tuesday>1</tuesday>
      <wednesday>1</wednesday>
      <thursday>1</thursday>
      <friday>1</friday>
      <saturday>1</saturday>
    </item>
  </data>
</rootNode>
					

api/xml/tours/tourcountrystyle/1

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/tourcountrystyle/1");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/tourcountrystyle/1", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/tourcountrystyle/1")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/tourcountrystyle/1", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/tourcountrystyle/1'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/tourcountrystyle/1"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/tourcountrystyle/1

POST api/xml/tours/tourcountrystyle/1

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status/>
  <data/>
</rootNode>
					

api/xml/tours/tourfacilityexcludes/5

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/tourfacilityexcludes/5");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/tourfacilityexcludes/5", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/tourfacilityexcludes/5")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/tourfacilityexcludes/5", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/tourfacilityexcludes/5'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/tourfacilityexcludes/5"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/tourfacilityexcludes/5

POST api/xml/tours/tourfacilityexcludes/5

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>
      <name>International flights</name>
    </item>
  </data>
</rootNode>
					

api/xml/tours/tourfacilityincludes/5

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/tourfacilityincludes/5");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/tourfacilityincludes/5", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/tourfacilityincludes/5")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/tourfacilityincludes/5", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/tourfacilityincludes/5'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/tourfacilityincludes/5"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/tourfacilityincludes/5

POST api/xml/tours/tourfacilityincludes/5

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>
      <name>Pick up transfer from your hotel in Istanbul at approx. 9:00am</name>
    </item>
  </data>
</rootNode>
					

api/xml/tours/tourgalleryitems/5

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/tourgalleryitems/5");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/tourgalleryitems/5", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/tourgalleryitems/5")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/tourgalleryitems/5", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/tourgalleryitems/5'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/tourgalleryitems/5"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/tourgalleryitems/5

POST api/xml/tours/tourgalleryitems/5

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>
      <name>izmir</name>
      <description/>
      <image>http://travelshopturkey.test/imagecache/tours/gallery/big/274-5-days-biblical-tour-izmir-1569246564.jpg</image>
    </item>
  </data>
</rootNode>
					

api/xml/tours/tourgroups/2

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/tourgroups/2");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/tourgroups/2", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/tourgroups/2")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/tourgroups/2", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/tourgroups/2'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/tourgroups/2"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/tourgroups/2

POST api/xml/tours/tourgroups/2

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>
      <id>1</id>
      <name>GUARANTEED TOURS</name>
    </item>
  </data>
</rootNode>
					

api/xml/tours/tourhotels/21797

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/tourhotels/21797");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/tourhotels/21797", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/tourhotels/21797")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/tourhotels/21797", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/tourhotels/21797'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/tourhotels/21797"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/tourhotels/21797

POST api/xml/tours/tourhotels/21797

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>
      <id>192</id>
      <hotel_name>Feronya Hotel</hotel_name>
      <city_name>Istanbul</city_name>
      <hotel_type_id>2</hotel_type_id>
      <hotel_type_name>4 Star</hotel_type_name>
    </item>
  </data>
</rootNode>
					

api/xml/tours/tourids

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/tourids");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/tourids", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/tourids")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/tourids", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/tourids'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/tourids"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/tourids

POST api/xml/tours/tourids

Response

status: boolean

data:


5ae7712f1b36ad68d0f86ad665cbb9b2
Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>
      <id>192</id>
      <hotel_name>Feronya Hotel</hotel_name>
      <city_name>Istanbul</city_name>
      <hotel_type_id>2</hotel_type_id>
      <hotel_type_name>4 Star</hotel_type_name>
    </item>
  </data>
</rootNode>
					

api/xml/tours/touridsactive

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/touridsactive");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/touridsactive", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/touridsactive")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/touridsactive", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/touridsactive'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/touridsactive"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/touridsactive

POST api/xml/tours/touridsactive

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>5</item>
  </data>
</rootNode>
					

api/xml/tours/touritenaries/5

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/touritenaries/5");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/touritenaries/5", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/touritenaries/5")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/touritenaries/5", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/touritenaries/5'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/touritenaries/5"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/touritenaries/5

POST api/xml/tours/touritenaries/5

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>
      <id>4212</id>
      <name>Izmir  - Arrival Day</name>
      <include_breakfast>0</include_breakfast>
      <include_lunch>0</include_lunch>
      <include_dinner>1</include_dinner>
      <include_welcome_drink>0</include_welcome_drink>
      <description>Upon our arrival at Izmir airport or Kusadasi /Cesme Port, our guide will meet you with your name sign to assist you on your transfer to hotel. You will be given your room key and the rest of the day is yours to Explore Izmir. Overnight in Izmir.</description>
      <time_start>00:00:00</time_start>
      <time_end>00:00:00</time_end>
    </item>
  </data>
</rootNode>
					

api/xml/tours/tourroutes/5

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/tourroutes/5");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/tourroutes/5", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/tourroutes/5")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/tourroutes/5", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/tourroutes/5'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/tourroutes/5"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/tourroutes/5

POST api/xml/tours/tourroutes/5

Response

status: boolean

data:


b6ed20793b5c0f8b60dc8d1abbdff14b
Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>
      <id>4212</id>
      <name>Izmir  - Arrival Day</name>
      <include_breakfast>0</include_breakfast>
      <include_lunch>0</include_lunch>
      <include_dinner>1</include_dinner>
      <include_welcome_drink>0</include_welcome_drink>
      <description>Upon our arrival at Izmir airport or Kusadasi /Cesme Port, our guide will meet you with your name sign to assist you on your transfer to hotel. You will be given your room key and the rest of the day is yours to Explore Izmir. Overnight in Izmir.</description>
      <time_start>00:00:00</time_start>
      <time_end>00:00:00</time_end>
    </item>
  </data>
</rootNode>
					

api/xml/tours/toursin

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/toursin");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/toursin", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/toursin")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/toursin", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/toursin'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/toursin"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/toursin

POST api/xml/tours/toursin

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>
      <item>
        <id>5</id>
        <name>5 DAYS BIBLICAL TOUR IZMIR</name>
        <highlights>Pergamon tour, Acropolis, Asklepion, Altar of Zeus, Temple of Trajan Horse, Temple of Hadrian, Red Basilica, St. Johns Church, Mount Pagus, Clock Tower, Pamukkale tour, Byzantine Church, River Pactolos, Philadelphia, Cotton Fortress, the Arcadian Way, Nymphaion and Asia Minor, Ephesus tour, Great Amphitheater, Marble Way and Library of Celcus, Temple of Artemis, Ephesus Ancient sites and Virgin Mary and the Temple of Diana of the Ephesians</highlights>
        <image_long>http://travelshopturkey.test/imagecache/tours/first/5-5-days-biblical-tour-izmir.jpg</image_long>
        <promotion_text/>
        <min_guest_count>1</min_guest_count>
        <terms_conditions>Please Note:If there are more than 4 travelers, we can provide you a special discounted price. Please contact us for requests and more information.We have special rates for private tours if you are interested in doing your tour on private basis. Please contact us for requests and more information.If you are a travel agency or tour operator, please register on our agency section for special B2B rates. Please contact us for requests and more information.What are the discounts for children?0- 6 Year: Free of Charge6 - 11 Year: Charged at 50% of full price         OPTIONAL TOUR             Princes Island Cruise         € 45,00          Per Person              Bosphorus Cruise         € 40,00          Per Person              Dolma Bahçe Palace         € 50,00          Per Person              Turkish Bath Tour Istanbul         € 35,00          Per Person              ISTANBUL BY NIGHT OPTIONAL ACTIVITIES             1001 Nights Dinner Show         € 40,00          Per Person              Bosphorus Dinner Cruise         € 50,00          Per Person              Whirling Dervishes Show         € 30,00          Per Person              OPTIONAL MEAL             Standard Dinner         € 16,00          Per Person              Standard Lunch         € 12,00          Per Person       </terms_conditions>
        <price_default>229</price_default>
        <duration>5</duration>
        <is_fixed_rate>0</is_fixed_rate>
        <rate_infant>0</rate_infant>
        <discount/>
        <discount_infant>100</discount_infant>
        <discount_baby>50</discount_baby>
        <discount_minor>25</discount_minor>
        <discount_flat>0</discount_flat>
        <is_daily_tour>0</is_daily_tour>
        <has_hotel>0</has_hotel>
        <hotels_manual>Izmir        Kaya HotelKusadasi     Suhan 360 HotelPamukkale   Tripolis Hotel</hotels_manual>
        <continent_id>4</continent_id>
        <price_count>11</price_count>
        <promotion_price/>
        <itinerary_count>5</itinerary_count>
        <currency>EUR</currency>
        <coordinates>[{"lat":38.42198651462071,"lng":27.143054008483887},{"lat":38.42198651462071,"lng":27.143054008483887}]</coordinates>
        <date_created>2016-02-06 20:13:33</date_created>
        <is_active>1</is_active>
        <updated>2019-09-18 10:17:28</updated>
        <pagedetail>tours/detail/5-5-days-biblical-tour-izmir.html</pagedetail>
        <prices_with_discount_front_end/>
        <priceemo>0</priceemo>
      </item>
    </item>
    <count>1</count>
  </data>
</rootNode>
					

QUERY PARAMETERS

Key Value
in[] :  
limit :  
offset :  

api/xml/tours/tourstyles

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/tourstyles");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/tourstyles", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/tourstyles")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/tourstyles", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/tourstyles'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/tourstyles"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/tourstyles

POST api/xml/tours/tourstyles

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>
      <id>1</id>
      <name>Cultural &amp; Historical Tours</name>
      <description/>
      <parent_id/>
    </item>
  </data>
</rootNode>
					

api/xml/tours/tourstyle/5

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/tourstyle/5");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/tourstyle/5", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/tourstyle/5")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/tourstyle/5", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/tourstyle/5'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/tourstyle/5"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/tourstyle/5

POST api/xml/tours/tourstyle/5

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <item>
      <id>3</id>
      <name>Religious Tours</name>
    </item>
  </data>
</rootNode>
					

api/xml/tours/tour/22671

const fetch = require("node-fetch");
const url = new URL("https://www.travelshopturkey.com/api/xml/tours/tour/22671");

let headers = {
    "Authorization": "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
    "Accept": "application/json",
    "Content-Type": "application/x-www-form-urlencoded"
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

$client = new \GuzzleHttp\Client();
$response = $client->get("https://www.travelshopturkey.com/api/xml/tours/tour/22671", [
    'headers' => [
	"Authorization" => "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp",
	"Accept" => "application/json",
	"Content-Type" => "application/x-www-form-urlencoded",
    ],
]);
$body = $response->getBody();
print_r($body);

import (
	"fmt"
	"github.com/parnurzeal/gorequest"
)

request := gorequest.New().
	.Get("https://www.travelshopturkey.com/api/xml/tours/tour/22671")
	.Set("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.Set("Accept", "application/json")
	.Set("Content-Type", "application/x-www-form-urlencoded")
_, body, error := request.EndBytes()
if error != nil {
	fmt.Println(error)
}

fmt.Println(body)

using (var wb = new WebClient())
{
	var data = new NameValueCollection();

	wb.Headers.Add("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp");
	wb.Headers.Add("Accept", "application/json");
	wb.Headers.Add("Content-Type", "application/x-www-form-urlencoded");

	var response = wb.UploadValues("https://www.travelshopturkey.com/api/xml/tours/tour/22671", data);
	string resp = Encoding.UTF8.GetString(response);
	return resp;
}

def __init__(self, apiKey):
	self.apiKey = apiKey
	self.contentType = "application/x-www-form-urlencoded"
	self.accept = "application/json"
	self.url = 'https://www.travelshopturkey.com/api/xml/tours/tour/22671'
	self.headers = {
	'Authorization': 'Bearer q81nA66RaxKkkTMv9FnCDTocnLJp'
	'Accept': 'application/json'
	'Content-Type': 'application/x-www-form-urlencoded'
	}

def get(self, endpoint):
	response = requests.post(self.url + endpoint,  headers=self.headers)
	return response.text
}

HttpRequest request = HttpRequest.newBuilder()
	.GET()
	.uri(URI.create("https://www.travelshopturkey.com/api/xml/tours/tour/22671"))
	.setHeader("Authorization", "Bearer q81nA66RaxKkkTMv9FnCDTocnLJp")
	.setHeader("Accept", "application/json")
	.setHeader("Content-Type", "application/x-www-form-urlencoded")
	.build();
HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());

return response.body();

# Here is a curl example
curl \
-X POST http://api.westeros.com/character/get \
-F 'secret_key=your_api_key' \
-F 'house=Stark,Bolton' \
-F 'offset=0' \
-F 'limit=50'
                

HTTP Request

GET api/xml/tours/tour/22671

POST api/xml/tours/tour/22671

Response

status: boolean

data:


Example response (200):
<?xml version="1.0" encoding="UTF-8"?>
<rootNode>
  <status>1</status>
  <data>
    <id>22671</id>
    <name>5 DAYS TASTE OF TURKEY TOUR</name>
    <highlights>If you are looking for something special and extraordinary then look no further. Enjoy first class service and guided transportation through the historical and picturesque sites of Istanbul and the underground cities of Cappadoccia This an exquisite tour for you with all the bells and whistles. There are no long bus rides just domestic flights getting you to your destination comfortable and relaxed.</highlights>
    <image_long>http://travelshopturkey.test/imagecache/tours/first/22671-5-days-taste-of-turkey-tour.png</image_long>
    <promotion_text/>
    <min_guest_count>1</min_guest_count>
    <terms_conditions>         OPTIONAL TOURS SPECIAL             Istanbul             1001 Nights Dinner Show         Euro: 55.00         Per Person             Bosphorus Dinner Cruise         Euro: 55.00         Per Person             Cappadocia             Daily Turkish Night Show         Euro: 40.00         Per Person             Daily Whirling Dervishes         Euro: 40.00         Per Person             Hot Air Ballooning Cappadocia         Euro: 185.00         Per Person               OPTIONAL TERMS &amp; CONDITIONS      Above optional tours are valid for our guests who booked our 10th Year Special Tours.If you book a different tour or at a different date, these prices will not be valid. We have limited space for these tours. The price may change if we get more Bookings than that. TOUR INFORMATION FOR OUR SPECIAL OFFER: These programmes are only valid for the dates mentioned.  If you request for different dates, our winter prices will be not valid.  If you need any change on these programmes, we will arrange you a tailor made programme with necessary price changes.  We have limited space for each tour. When we fill up our limit, the price may change.  You need to make a 25% percent pre-payment to book one of these tours. Bookings are not valid if 25% payment is not done.  For tour packages including domestic flights, you need to book at least 4 weeks before tour start date. If there is less than 4 weeks to tour start date, we will reflect the flight fare difference to the prices.  The prices are only valid for packages, we cannot provide you any break down prices or any sectors seperately.What are the discounts for children?Under 2 years of age, your child will travel free of charge by land. Flight ticket insurance cost will be 20 Euro only.Children under 6 years of age are charged at 50% of a full priced adult tour in IstanbulChildren 7-11 years of age are charged at 75% of a full priced adult tour in Istanbul.Children above 11 years are full priced adult fares.</terms_conditions>
    <duration>5</duration>
    <is_daily_tour>0</is_daily_tour>
    <hotels_manual>Istanbul   Ramada Hotel &amp; Suite Golden HornKusadasi 5 Star 360 Hotel</hotels_manual>
    <continent_id>4</continent_id>
    <price_count/>
    <currency>EUR</currency>
    <coordinates/>
    <date_created/>
    <is_active>1</is_active>
    <updated>2019-08-21 12:14:26</updated>
    <currency_icon>€</currency_icon>
    <item>
      <item>All Airport transfer mention in site the Itinerary</item>
    </item>
    <item>
      <item>International flights</item>
    </item>
    <item>
      <item>Cultural &amp; Historical Tours</item>
    </item>
    <item>
      <item>
        <date_from>2019-10-17</date_from>
        <date_to>2019-10-17</date_to>
        <sunday>0</sunday>
        <monday>0</monday>
        <tuesday>0</tuesday>
        <wednesday>0</wednesday>
        <thursday>1</thursday>
        <friday>0</friday>
        <saturday>0</saturday>
      </item>
    </item>
    <item/>
    <item>
      <item>
        <name/>
        <description/>
        <image>http://travelshopturkey.test/imagecache/tours/gallery/big/11524-5-days-taste-of-turkey-tour-1569246573.png</image>
      </item>
    </item>
    <item>
      <item>
        <name> Istanbul - Arrival Day - Thursday</name>
        <description>Meet at the airport Transfer to your hotel. You will be given your room key and the rest of the day is yours to explore Istanbul. Overnight in Istanbul.</description>
        <time_start/>
        <time_end/>
        <include_breakfast>0</include_breakfast>
        <include_lunch>0</include_lunch>
        <include_dinner>0</include_dinner>
        <include_welcome_drink>0</include_welcome_drink>
      </item>
    </item>
    <item>
      <item>77882</item>
    </item>
    <item>
      <item>
        <country>
          <id>223</id>
          <sortname>TR</sortname>
          <name>Turkey</name>
          <continent_id>4</continent_id>
        </country>
        <state/>
        <city/>
      </item>
    </item>
    <item>
      <item>
        <id>2</id>
        <name>4 Star</name>
      </item>
    </item>
    <item>
      <item>
        <id>2</id>
        <name>4 Star Hotel</name>
        <accommodation_group_id>2</accommodation_group_id>
      </item>
    </item>
    <item>
      <item>
        <id>4</id>
        <name>Single</name>
        <accommodation_type_id>2</accommodation_type_id>
      </item>
    </item>
    <continent>Europe &amp; Balkans &amp; Scandinavia</continent>
    <item>
      <item>Regular</item>
    </item>
    <item>
      <item>2019,12,05</item>
    </item>
    <item>
      <item>4</item>
    </item>
    <item>
      <item>
        <start>2019,12,05</start>
        <end>2019,12,05</end>
      </item>
    </item>
  </data>
</rootNode>
					
node.js php Go C# Python Java