Get Started
We are providing updated data informations, combined from lots of sources, deduplicated and cleaned for you to have one source of truth
Main API URL for every data version, endpoint:
https://api.loocpi.comVersions
Curent available versions with endpoints:
v1
-
Locations
https://api.loocpi.com/v1/locations/ -
Continents
https://api.loocpi.com/v1/continents/ -
Countries
https://api.loocpi.com/v1/countries/ -
Regions
https://api.loocpi.com/v1/regions/ -
Cities
https://api.loocpi.com/v1/cities/ -
Airports
https://api.loocpi.com/v1/airports/ -
Airlines
https://api.loocpi.com/v1/airlines/ -
Airplanes
https://api.loocpi.com/v1/airplanes/ -
Timezones
https://api.loocpi.com/v1/timezones/ -
Currencies
https://api.loocpi.com/v1/currencies/ -
Languages
https://api.loocpi.com/v1/languages/
Key
Key is required for every API call.
Add key as GET param
https://api.loocpi.com/v1/languages?key=yourkeyAdditional
For every request, these are additional GET params to use for formating, sorting and filtering results
Filters
&filters[{field}]={value}&filters[{field}]={value}
Request example
https://api.loocpi.com/v1/languages?key=yourkey&filters[continentCode]=EUResponse example
[ { "name": "Portugal", "code": "PT", "continentCode": "EU", "code3": "PRT", "isoNumeric": "620", "fipsCode": "PO", "cioc": "POR", "gini": 38.5, "population": "10676000", "demonym": "Portuguese", "capital": "Lisbon", "area": "92391.0", "north": 42.154311127408, "east": -6.18915930748288, "south": 36.96125, "west": -9.50052660716588 }, { "name": "Montenegro", "code": "ME", "continentCode": "EU", "code3": "MNE", "isoNumeric": "499", "fipsCode": "MJ", "cioc": "MNE", "gini": 30, "population": "666730", "demonym": "Montenegrin", "capital": "Podgorica", "area": "14026.0", "north": 43.558230232, "east": 20.352926, "south": 41.868751527, "west": 18.4335595800001 }, .... ]
List
Format response to list to key => value:
&list[{field}]={field}
Request example
https://api.loocpi.com/v1/languages?key=yourkey&list[code]=nameResponse example
{ "AD": "Andorra", "AE": "United Arab Emirates", "AF": "Afghanistan", "AG": "Antigua and Barbuda", "AI": "Anguilla", "AL": "Albania", "AM": "Armenia", "AO": "Angola", "AQ": "Antarctica", "AR": "Argentina", ..... ]
Sort
&sort[{field}]=ASC|DESC
Request example
https://api.loocpi.com/v1/languages?key=yourkey&sort[code]=ASCResponse example
[ { "code": "af", "code3": "afr", "name": "Afrikaans" }, { "code": "am", "code3": "amh", "name": "Amharic" }, .... ]
Languages
Use lang param only on locations endpoint
Curent available languages are:
- en - English ( default )
- hr - Croatian
- si - Slovenian
- more to come...
&lang={langCode}
Request example
https://api.loocpi.com/v1/locations?key=yourkey&lang=hrAutocomplete
Filter results by name
For locations endpoint field is required
&autocomplete={request}
Request example
https://api.loocpi.com/v1/locations?key=yourkey&autocomplete=LonCombine additional
All previous additional params could be combined
&list[{field}]={field}&filters[{field}]={value}&sort[{field}]=ASC|DESC
Request example
https://api.loocpi.com/v1/countries?key=yourkey&list[code]=name&filters[continentCode]=EU&sort[code]=ASCEndpoints
Possible endpoints and response fields
Locations
Description
For locations endpoint, autocomplete param is required
https://api.loocpi.com/v1/locations?key=yourkey&autocomplete=Lon
Response fields
-
type
city/airport
- code
- name
-
cityCode
type "city" - field is empty
-
city
type "city" - field is empty
- regionCode
- region
- countryCode
- country
- continentCode
- continent
-
attr
type "city" - number of airports
type "airport" - km from city center
-
sub
type "city" - airports with same cityCode
type "airports" - field is empty
Response example
[ { "type": "city", "code": "LON", "name": "London", "cityCode": "", "city": "", "regionCode": "EN", "region": "", "countryCode": "GB", "country": "United Kingdom", "continentCode": "EU", "continent": "Europe", "attr": "6", "sub": [ { "type": "airport", "code": "LCY", "name": "London City Airport", "cityCode": "LON", "city": "London", "regionCode": "", "region": "", "countryCode": "GB", "country": "United Kingdom", "continentCode": "EU", "continent": "Europe", "attr": "12", "sub": null }, .... } ]
Continents
https://api.loocpi.com/v1/continents?key=yourkey
Response fields
- name
- code
Response example
[ { "code": "EU", "name": "Europe" }, .... ]
Countries
https://api.loocpi.com/v1/countries?key=yourkey
Response fields
- name
- code
- continentCode
- code3
- isoNumeric
- fipsCode
- cioc
- gini
- population
- demonym
- capital
- area
- north
- east
- south
- west
Response example
[ { "name": "Portugal", "code": "PT", "continentCode": "EU", "code3": "PRT", "isoNumeric": "620", "fipsCode": "PO", "cioc": "POR", "gini": 38.5, "population": "10676000", "demonym": "Portuguese", "capital": "Lisbon", "area": "92391.0", "north": 42.154311127408, "east": -6.18915930748288, "south": 36.96125, "west": -9.50052660716588 }, .... ]
Regions
https://api.loocpi.com/v1/regions?key=yourkey
Response fields
- name
- code
- continentCode
- countryCode
Response example
[ { "code": "57", "continentCode": "EU", "countryCode": "RU", "name": "Penza" }, .... ]
Cities
https://api.loocpi.com/v1/cities?key=yourkey
Response fields
- name
- code
- continentCode
- countryCode
- regionCode
- timeZone
- UTC
- latitude
- longitude
- capital
Response example
[ { "name": "Bozoum", "code": "BOZ", "continentCode": "AF", "countryCode": "CF", "regionCode": "", "timeZone": "Africa/Bangui", "UTC": 1, "latitude": 6.319334, "longitude": 16.379921, "capital": false }, .... ]
Airports
https://api.loocpi.com/v1/airports?key=yourkey
Response fields
- name
- code
- icao
- continentCode
- countryCode
- regionCode
- cityCode
- timeZone
- UTC
- latitude
- longitude
- elevation
- active
Response example
[ { "code": "JFK", "icao": "KJFK", "name": "John F. Kennedy International Airport", "continentCode": "NA", "countryCode": "US", "regionCode": "NY", "cityCode": "NYC", "timeZone": "America/New_York", "UTC": -5, "latitude": 40.642335, "longitude": -73.78817, "elevation": 13, "active": true }, .... ]
Airlines
https://api.loocpi.com/v1/airlines?key=yourkey
Response fields
- name
- code
- icao
- active
Response example
[ { "code": "LH", "icao": "DLH", "name": "Lufthansa", "active": true }, .... ]
Airplanes
https://api.loocpi.com/v1/airplanes?key=yourkey
Response fields
- name
- code
Response example
[ { "code": "763", "name": "Boeing 767-300 Passenger", }, .... ]
Timezones
https://api.loocpi.com/v1/timezones?key=yourkey
Response fields
- name
- UTC
Response example
[ { "name": "Europe/San_Marino", "UTC": -5 }, .... ]
Currencies
https://api.loocpi.com/v1/currencies?key=yourkey
Response fields
- name
- code
- symbol
Response example
[ { "code": "EUR", "name": "Euro", "symbol": "€", }, .... ]
Languages
https://api.loocpi.com/v1/languages?key=yourkey
Response fields
- name
- code
- code3
Response example
[ { "code": "de", "code3": "deu", "name": "German" }, .... ]