Integration is suitable for airlines, ticket agents and online tourists who sell flights on their own pages. The format is intended for resources that can quickly issue relevant flight options taking into account the parameters set by the user.
The issue of flights is formed on a given route and dates, including important marks:
The user can change the dates, the number of passengers, the service class and take into account the availability of baggage. Such a block simplifies the comparison of sentences and accelerates the transition to choosing the best option.
When the visitor introduces in the search a departure and arrival point and, if desired, the date, Yandex forms a request to the API partner. GET request format:
https://api.partner.example/search? departure=&arrival= &date_forward= &date_backward= &class= &adults=<число> &children=<число> &infants=<число>
In response, the API gives JSON with an array of objects variantwhere each option indicates:
url - link for redirect;price with currency and, if necessary, tariffs in passenger groups;seats_remaining - the number of available places;refundable - the possibility of return;route_forward And route_backward - Lists of segments with detailed data: flight number, carrier, airports, dates and time, type of tariff, information about baggage and hand luggage.All compulsory fields must be filled without errors and transmitted in accordance with the requirements of RFC.
The order of redirect and the design of the ticket:
url On your site.If manual approval is required to confirm the booking, the partner’s task is the user's operational notification of the deadlines and the result of such approval.
The site is responsible for the reliability of the data. In case of violation of the conditions, Yandex has the right to disable integration and not display the proposals.
For integration and technical support, you can contact the SEO company CEO:
ID: 128