APIHub
Back to Explore

Mon-voyage-pas-cher.com Public API

Mon-voyage-pas-cher.com Public API

Transportation
apiKeyHeader
HTTPS
CORS: Unknown
Visit official documentation

Latency

159ms p95

Uptime

0.0% 30d

Playground

Verified

live

Endpoints

REST · JSON
GET

/airports

Search airports by country / Search nearby airports / Search an airport

  • language (query, required) — the language code of the language you want the content to be returned
  • location (query) — The location you want to search for. Either a latitude/longitude point or a letter airport IATA CODE ( ex. LHR ) if you want the detail for only one single airport.
  • radius (query) — Radius in km for a lat/long search, will be ignore if a IATA is passed in location parameter code is passed
  • countrycode (query) — Filter - The country ISO code 2 letters, provided by the GET /countries. If passed the results will be filtered to this country only, regardless if you passed a lat/long and a large radius
  • top_airports (query) — Filter the results to only the top and large airports airports.
OPTIONS

/airports

CORS support

GET

/cities/findcitiesfromlatlong

Search all cities from lat/long or countrycode

  • language (query, required) — the language code of the language you want the content to be returned
  • countrycode (query) — if you want to limit the result to one country
  • location (query) — The Lat/Long of the location your are seeking cities ( ex. 45.4478988,3.23456)
  • radius (query) — Radius in km for a lat/long search. Default is 20km and there is no maximum, but need to be combined with limit. code is passed
  • limit (query, limit) — Limit of the result. Default is 20 rows, and maximum is 50.
  • offset (query, offset) — offset of the result set
  • sort (query, required) — The order you want the result ordered. Default is population while when entering a lat/long, you can order the results by distance from requested lat/long point
OPTIONS

/cities/findcitiesfromlatlong

CORS support

GET

/cities/findcitiesfromtext

Retrieve cities informations from a string / build an autocomplete

  • q (query, required) — the string you want to search
  • language (query, required) — the language code of the language you want the content to be returned
  • countrycode (query) — if you want to limit the result to one country
  • sort (query, required) — The order you want the result ordered. Default is population while when entering a lat/long, you can order the results by distance from requested lat/long point
OPTIONS

/cities/findcitiesfromtext

CORS support

GET

/cities/significant

Search significant cities from lat/long or countrycode

  • language (query, required) — the language code of the language you want the content to be returned
  • pourcent (query) — The pourcent of population the cities need to be in order to appear in results
  • countrycode (query) — if you want to limit the result to one country
  • location (query) — The Lat/Long of the location your are seeking cities ( ex. 45.4478988,3.23456)
  • radius (query) — Radius in km for a lat/long search. Default is 20km and there is no maximum, but need to be combined with limit. code is passed
  • limit (query, limit) — Limit of the result. Default is 20 rows, and maximum is 50.
  • offset (query, offset) — offset of the result set
  • sort (query, required) — The order you want the result ordered. Default is population while when entering a lat/long, you can order the results by distance from requested lat/long point
OPTIONS

/cities/significant

CORS support

GET

/continents

Search all continents or one specific continent

  • language (query, required) — The language code of the language you want the content to be returned
  • continentcode (query) — The code of the continent you want to retrieve, this parameter is not required if you want ot retrieve all continents at once
OPTIONS

/continents

CORS support

GET

/countries

Search all countries or one specific country

  • language (query, required) — the language code of the language you want the content to be returned
  • countrycode (query) — The code of the country you want to retrieve
OPTIONS

/countries

CORS support

GET

/distance

Calculate distance between lats/longs

  • locationA (query, required) — The location as a latitude / longitude point ( ex. 67.85572,20.22513 ) of location point A
  • locationB (query, required) — The location as a latitude / longitude point ( ex. 67.85572,20.22513 ) of location point B
  • unit (query) — The unit of length you want the elevation returned either meters or feet returned
OPTIONS

/distance

CORS support

GET

/elevation

Search elevation informations from lat/long

  • locations (query, required) — The location as a latitude / longitude point ( ex. 67.85572,20.22513 ) or a list of coordinates separated using the pipe ('|') character. The maximum number of coordinates you can send at one time is 20 ( ex. 67.85572,20.22513|27.85572,20.22513 )
  • unit (query) — The unit of length you want the elevation returned either meters or feet returned
OPTIONS

/elevation

CORS support

GET

/pong

Returns a ping. In case you need a health check in your system. Cannot be called /ping as AWS is using this route for their health check. This webservice doesn't have CORS enable, as it's supposed to be call server to server and not from a webpage ( it won't work over the tester)

GET

/sun_positions

Search position of sun from lat/long and date

  • location (query, required) — Here you can send either a latitude / longitude
  • date (query) — The date for what you will get the data ( full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21 ), if not provided as parameter, today is going to be used
OPTIONS

/sun_positions

CORS support

GET

/timezone

Search timezone and time informations from lat/long

  • location (query, required) — Here you can send either a latitude / longitude ( ex. 67.85572,20.22513 ) or a IATA Code ( ex. LHR for London Heathrow)
OPTIONS

/timezone

CORS support

21 endpoints auto-detected

Authentication

This API uses an API key, passed in the "x-api-key" header. No OAuth required.

curl -X GET \
  "https://api.mon-voyage-pas-cher.com/airports" \
  -H "x-api-key: YOUR_API_KEY"

api.mon-voyage-pas-cher.com · HTTPS only