header 'x-access-token: 321d6a221f8926b5ec41ae89a3b2ae7b' require 'uri' require 'net/https' url = URI ( "" ) http = Net :: HTTP. Returns the cheapest non-stop tickets, as well as tickets with 1 or 2 stops, for the selected route with departure/return date filters. To obtain access to the API for searching for plane tickets and hotels, send a request. To get data in compressed form, send the header Accept-Encoding: gzip, deflate. We strongly urge receiving data in compressed GZIP format, which saves a significant amount of time in receiving the response. It is not recommended to use expired prices (the approximate expiration date is given in the value of the expires_at parameter). Prices are given in rubles as of when the ticket is put in the search results. error – short description of the error that prevented request completion for a successful request is equal to null.ĭates and times are given in UTC, formatted according to ISO 8601.data – a result of the request in case of an error is equal to null.success – true for a successful request, false in case of errors.The server response is always sent in JSON format with the following structure: You can get flight price trends and find popular destinations for your customers.ĭates are accepted in the formats YYYY-MM and YYYY-MM-DD. Travelpayouts Flight Data API – the way to get travel insights for your site or blog. You can find more helpfull informaion in the Help center. To obtain a token for the Data Access API, go to. To access the API you must pass your token in the X-Access-Token header or in the token parameter. To access the API you should be registered in our travel affiliate network.ĭear partners! Attention, the data is transferred from the cache, so it is recommended to use them to generate static pages. You can get flight price trends and find popular destinations for your customers. Travelpayouts Data API - the way to get travel insights for your site or blog.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |