curl --request POST \
--url https://api.aisa.one/apis/v1/untourism-int/statistics/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"file_ids": [
"inbound_arrivals"
]
}
'import requests
url = "https://api.aisa.one/apis/v1/untourism-int/statistics/files"
payload = { "file_ids": ["inbound_arrivals"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({file_ids: ['inbound_arrivals']})
};
fetch('https://api.aisa.one/apis/v1/untourism-int/statistics/files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/untourism-int/statistics/files",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'file_ids' => [
'inbound_arrivals'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/untourism-int/statistics/files"
payload := strings.NewReader("{\n \"file_ids\": [\n \"inbound_arrivals\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/untourism-int/statistics/files")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"file_ids\": [\n \"inbound_arrivals\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/untourism-int/statistics/files")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"file_ids\": [\n \"inbound_arrivals\"\n ]\n}"
response = http.request(request)
puts response.read_bodyFiles
The official UN Tourism Key Tourism Statistics Excel files (13 files: inbound arrivals/expenditure/by region/by purpose/by transport/accommodation, outbound departures/expenditure, domestic trips/accommodation, hotel capacity and occupancy, employment SDG 8.9.2, tourism GDP SDG 8.9.1). One live HEAD per file returns Last-Modified as source_updated_at, ETag and S3 version id, and changed_since_catalog flags a re-publication since the embedded catalogue.
curl --request POST \
--url https://api.aisa.one/apis/v1/untourism-int/statistics/files \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"file_ids": [
"inbound_arrivals"
]
}
'import requests
url = "https://api.aisa.one/apis/v1/untourism-int/statistics/files"
payload = { "file_ids": ["inbound_arrivals"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({file_ids: ['inbound_arrivals']})
};
fetch('https://api.aisa.one/apis/v1/untourism-int/statistics/files', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/untourism-int/statistics/files",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'file_ids' => [
'inbound_arrivals'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/untourism-int/statistics/files"
payload := strings.NewReader("{\n \"file_ids\": [\n \"inbound_arrivals\"\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/untourism-int/statistics/files")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"file_ids\": [\n \"inbound_arrivals\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/untourism-int/statistics/files")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"file_ids\": [\n \"inbound_arrivals\"\n ]\n}"
response = http.request(request)
puts response.read_bodyRequest contract
- Method and path: POST /apis/v1/untourism-int/statistics/files
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/untourism-int/statistics/files
{
"operationId": "untourism-int.statistics.files",
"method": "POST",
"path": "/apis/v1/untourism-int/statistics/files",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"examples": {
"provider": {
"summary": "Official provider example; checked against AIsa request constraints",
"value": {
"file_ids": [
"inbound_arrivals"
]
}
}
},
"schema": {
"additionalProperties": true,
"properties": {
"file_ids": {
"description": "Restrict to these file ids. Omit for all files.",
"items": {
"type": "string"
},
"type": "array",
"x-alexandria-option-metadata": {
"in": "body"
}
},
"series_group": {
"description": "Restrict to one series group.\n\nProvider reference: allowed values [\"inbound\", \"outbound\", \"domestic\", \"industries\", \"employment\", \"macro\", \"null\"].",
"type": "string",
"x-alexandria-option-metadata": {
"in": "body",
"oneOf": [
"inbound",
"outbound",
"domestic",
"industries",
"employment",
"macro",
"null"
]
}
}
},
"type": "object"
}
}
},
"required": false
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
Response
The official UN Tourism Key Tourism Statistics Excel files (13 files: inbound arrivals/expenditure/by region/by purpose/by transport/accommodation, outbound departures/expenditure, domestic trips/accommodation, hotel capacity and occupancy, employment SDG 8.9.2, tourism GDP SDG 8.9.1). One live HEAD per file returns Last-Modified as source_updated_at, ETag and S3 version id, and changed_since_catalog flags a re-publication since the embedded catalogue.
The response contains the tool result directly.
The provider identifies records as the primary payload key.
| Documented field | Provider type | Description |
|---|---|---|
catalog_last_modified | string | |
catalog_version_id | string | |
changed_since_catalog | boolean | |
citation | string | |
columns | string[] | |
content | string | |
content_length | number | |
content_type | string | |
edition | string | |
error | string | |
etag | string | |
file_id | string | |
indicator_count | number | |
observed_at_ms | number | |
page_url | string | |
release_date | string | |
release_label | string | |
row_count_at_catalog | number | |
series_group | string | |
source_updated_at | string | |
source_url | string | |
status | number | |
title | string | |
url | string | |
version_id | string | |
year_max | number | |
year_min | number |
These are the provider's documented fields. Field requiredness, nullability and nested object structures are specified only where the descriptions explicitly say so.