Passolution Dataservice API
Description
Information and descriptions can be found here:
Link: https://api.passolution.eu
Parameter
| Parameter | Meaning | Mandatory field | Example values | | ---------- |----------------------------------------------------------------|: ---------------:|-----:| | lang | Language in which the content is requested. ISO 639-1 2-Letter-Codes | no | de,en,... | nat | Nationality of the traveler (multiple values are possible) | no | de,ch,at,… | destco | Country code of the destination (multiple queries are possible) | dest3l or destco | eg,es,... | dest3l | 3-letter code of the destination | dest3l or destco | hrg,pmi,... | tdat | Travel date in format YYYY-MM-DD | no | 2029-01-30 | enr | Transaction number of an external system | no | 123123 | agency | Agency number of the travel agency to which the data is forwarded | no | A123433
OAuth2 Authentication
The Passolution Dataservice API uses the OAuth 2.0 protocol for authentication. It is an industry-standard protocol specification that enables third-party applications (clients) to gain delegated access to protected resources in the Passolution Dataservice via an API.
{{vault:bearer-token}}
Accessing the Passolution Data Service API is also possible via token authentication.
Limitation of content per query
All queries are limited to a maximum of 50 combinations. Example:
Allowed:
- Query for 50 countries and one nationality in one query.
- Query 25 countries and two nationalities in one query.
Not allowed:
- Query for 60 countries in one query.
- Query for 40 countries and two nationalities in one query.
Sample Request
curl --location --request GET 'https://api.passolution.eu/api/v2/countries?limit=10&sort_by=code&sort_order=asc&page=1&active=1' \
--header 'Authorization: Bearer {{token}}'
Sample Response
{
"code": 0,
"message": "success",
"page_context": {
"applied_filter": "active",
"sort_column": "code",
"sort_order": "asc"
},
"result": {
"current_page": 1,
"data": [
{
"name": "Andorra",
"name_local": "Andorra",
"name_en": "Andorra",
"name_fr": "Andorre",
"name_it": "Andorra",
"name_nl": "Andorra",
"name_pl": "Andora",
"name_es": "Andorra",
"name_pt": "Andorra",
"name_be": "",
"name_ru": "Андорра",
"code": "AD",
"continent": "Europe",
"capital": "Andorra la Vella",
"population": "85660",
"area": "468",
"coastline": "0",
"governmentform": "parliamentary democracy",
"currency": null,
"currencycode": "EUR",
"dialingprefix": "376",
"birthrate": "7.8",
"deathrate": "7.1",
"lifeexpectancy": "82.8",
"active": 1
},
{
"name": "Vereinigte Arabische Emirate",
"name_local": "Al-Imarat al-´Arabiya al-Muttahida",
"name_en": "United Arab Emirates",
"name_fr": "Émirats arabes unis",
"name_it": "Emirati Arabi Uniti",
"name_nl": "Verenigde Arabische Emiraten",
"name_pl": "Zjednoczone Emiraty Arabskie",
"name_es": "Emiratos Árabes Unidos",
"name_pt": "Emirados Árabes Unidos",
"name_be": "",
"name_ru": "Объединенные Арабские Эмираты",
"code": "AE",
"continent": "Asia",
"capital": "Abu Dhabi",
"population": "5927482",
"area": "83600",
"coastline": "1318",
"governmentform": "Federation of autonomous monarchies",
"currency": null,
"currencycode": "AED",
"dialingprefix": "971",
"birthrate": "15.3",
"deathrate": "2",
"lifeexpectancy": "77.5",
"active": 1
},
{
"name": "Afghanistan",
"name_local": "Afganistan/Afqanestan",
"name_en": "Afghanistan",
"name_fr": "Afghanistan",
"name_it": "Afghanistan",
"name_nl": "Afghanistan",
"name_pl": "Afganistan",
"name_es": "Afganistán",
"name_pt": "Afeganistão",
"name_be": "",
"name_ru": "Афганистан",
"code": "AF",
"continent": "Asia",
"capital": "Kabul",
"population": "33332025",
"area": "652230",
"coastline": "0",
"governmentform": "Presidential islamic republic",
"currency": null,
"currencycode": "AFN",
"dialingprefix": "93",
"birthrate": "",
"deathrate": "",
"lifeexpectancy": "",
"active": 1
},
{
"name": "Antigua und Barbuda",
"name_local": "Antigua and Barbuda",
"name_en": "Antigua and Barbuda",
"name_fr": "Antigua-et-Barbuda",
"name_it": "Antigua e Barbuda",
"name_nl": "Antigua en Barbuda",
"name_pl": "Antigua i Barbuda",
"name_es": "Antigua y Barbuda",
"name_pt": "Antígua e Barbuda",
"name_be": "",
"name_ru": "Антигуа и Барбуда",
"code": "AG",
"continent": "North America",
"capital": "Saint John’s",
"population": "93581",
"area": "443",
"coastline": "153",
"governmentform": "Parliamentary democracy (under constitutional monarchy)",
"currency": null,
"currencycode": "XCD",
"dialingprefix": "1809",
"birthrate": "15.8",
"deathrate": "5.7",
"lifeexpectancy": "76.5",
"active": 1
},
{
"name": "Anguilla",
"name_local": "Anguilla",
"name_en": "Anguilla",
"name_fr": "Anguilla",
"name_it": "Anguilla",
"name_nl": "Anguilla",
"name_pl": "Anguilla",
"name_es": "Anguila",
"name_pt": "Anguila",
"name_be": "",
"name_ru": "Ангилья",
"code": "AI",
"continent": "North America",
"capital": "The Valley",
"population": "16752",
"area": "91",
"coastline": "61",
"governmentform": "Parliamentary democracy (self-governing territory of the UK)",
"currency": null,
"currencycode": "XCD",
"dialingprefix": "1809",
"birthrate": "12.7",
"deathrate": "4.6",
"lifeexpectancy": "81.4",
"active": 1
},
{
"name": "Albanien",
"name_local": "Shqipëria",
"name_en": "Albania",
"name_fr": "Albanie",
"name_it": "Albania",
"name_nl": "Albanië",
"name_pl": "Albania",
"name_es": "Albania",
"name_pt": "Albânia",
"name_be": "",
"name_ru": "Албания",
"code": "AL",
"continent": "Europe",
"capital": "Tirana",
"population": "3038594",
"area": "28748",
"coastline": "362",
"governmentform": "parliamentary republic",
"currency": null,
"currencycode": "ALL",
"dialingprefix": "355",
"birthrate": "13.1",
"deathrate": "6.7",
"lifeexpectancy": "78.3",
"active": 1
},
{
"name": "Armenien",
"name_local": "Hajastan",
"name_en": "Armenia",
"name_fr": "Arménie",
"name_it": "Armenia",
"name_nl": "Armenië",
"name_pl": "Armenia",
"name_es": "Armenia",
"name_pt": "Arménia",
"name_be": "",
"name_ru": "Армения",
"code": "AM",
"continent": "Asia",
"capital": "Yerevan",
"population": "3051250",
"area": "29743",
"coastline": "0",
"governmentform": "Semi-presidential republic",
"currency": null,
"currencycode": "AMD",
"dialingprefix": "374",
"birthrate": "13.3",
"deathrate": "9.4",
"lifeexpectancy": "74.6",
"active": 1
},
{
"name": "Angola",
"name_local": "Angola",
"name_en": "Angola",
"name_fr": "Angola",
"name_it": "Angola",
"name_nl": "Angola",
"name_pl": "Angola",
"name_es": "Angola",
"name_pt": "Angola",
"name_be": "",
"name_ru": "Ангола",
"code": "AO",
"continent": "Africa",
"capital": "Luanda",
"population": "20172332",
"area": "1246700",
"coastline": "1600",
"governmentform": "Presidential republic",
"currency": null,
"currencycode": "AOA",
"dialingprefix": "244",
"birthrate": "38.6",
"deathrate": "11.3",
"lifeexpectancy": "56",
"active": 1
},
{
"name": "Antarktis",
"name_local": "–",
"name_en": "Antarctica",
"name_fr": "Antarctique",
"name_it": "Antartide",
"name_nl": "Antarctica",
"name_pl": "Antarktyka",
"name_es": "Antártida",
"name_pt": "Antártida",
"name_be": "",
"name_ru": "Антарктика",
"code": "AQ",
"continent": "Antarctica",
"capital": null,
"population": "0",
"area": "14000000",
"coastline": "17968",
"governmentform": "foreign-administrated territory",
"currency": null,
"currencycode": null,
"dialingprefix": null,
"birthrate": "0",
"deathrate": "0",
"lifeexpectancy": "0",
"active": 1
},
{
"name": "Argentinien",
"name_local": "Argentina",
"name_en": "Argentina",
"name_fr": "Argentine",
"name_it": "Argentina",
"name_nl": "Argentinië",
"name_pl": "Argentyna",
"name_es": "Argentina",
"name_pt": "Argentina",
"name_be": "",
"name_ru": "Аргентина",
"code": "AR",
"continent": "South America",
"capital": "Buenos Aires",
"population": "43886748",
"area": "2780400",
"coastline": "4989",
"governmentform": "Presidential republic",
"currency": null,
"currencycode": "ARS",
"dialingprefix": "54",
"birthrate": "17",
"deathrate": "7.5",
"lifeexpectancy": "77.1",
"active": 1
}
],
"first_page_url": "https://api.passolution.eu/api/v2/countries?limit=10&sort_by=code&sort_order=asc&active=1&page=1",
"from": 1,
"last_page": 25,
"last_page_url": "https://api.passolution.eu/api/v2/countries?limit=10&sort_by=code&sort_order=asc&active=1&page=25",
"links": [
{
"url": null,
"label": "pagination.previous",
"active": false
},
{
"url": "https://api.passolution.eu/api/v2/countries?limit=10&sort_by=code&sort_order=asc&active=1&page=1",
"label": 1,
"active": true
},
{
"url": "https://api.passolution.eu/api/v2/countries?limit=10&sort_by=code&sort_order=asc&active=1&page=2",
"label": 2,
"active": false
},
{
"url": "https://api.passolution.eu/api/v2/countries?limit=10&sort_by=code&sort_order=asc&active=1&page=3",
"label": 3,
"active": false
},
{
"url": "https://api.passolution.eu/api/v2/countries?limit=10&sort_by=code&sort_order=asc&active=1&page=4",
"label": 4,
"active": false
},
{
"url": "https://api.passolution.eu/api/v2/countries?limit=10&sort_by=code&sort_order=asc&active=1&page=5",
"label": 5,
"active": false
},
{
"url": "https://api.passolution.eu/api/v2/countries?limit=10&sort_by=code&sort_order=asc&active=1&page=6",
"label": 6,
"active": false
},
{
"url": "https://api.passolution.eu/api/v2/countries?limit=10&sort_by=code&sort_order=asc&active=1&page=7",
"label": 7,
"active": false
},
{
"url": "https://api.passolution.eu/api/v2/countries?limit=10&sort_by=code&sort_order=asc&active=1&page=8",
"label": 8,
"active": false
},
{
"url": "https://api.passolution.eu/api/v2/countries?limit=10&sort_by=code&sort_order=asc&active=1&page=9",
"label": 9,
"active": false
},
{
"url": "https://api.passolution.eu/api/v2/countries?limit=10&sort_by=code&sort_order=asc&active=1&page=10",
"label": 10,
"active": false
},
{
"url": null,
"label": "...",
"active": false
},
{
"url": "https://api.passolution.eu/api/v2/countries?limit=10&sort_by=code&sort_order=asc&active=1&page=24",
"label": 24,
"active": false
},
{
"url": "https://api.passolution.eu/api/v2/countries?limit=10&sort_by=code&sort_order=asc&active=1&page=25",
"label": 25,
"active": false
},
{
"url": "https://api.passolution.eu/api/v2/countries?limit=10&sort_by=code&sort_order=asc&active=1&page=2",
"label": "pagination.next",
"active": false
}
],
"next_page_url": "https://api.passolution.eu/api/v2/countries?limit=10&sort_by=code&sort_order=asc&active=1&page=2",
"path": "https://api.passolution.eu/api/v2/countries",
"per_page": "10",
"prev_page_url": null,
"to": 10,
"total": 241
},
"requestid": "b126e683-2e71-42be-a9dd-403486d060d3",
"responsetime": 33
}