Getting empty response for flight search for few request.

Tagged:

Currently contains 2 posts

Avatar

February 18, 2019 13:11

prakhar@tvb

Hi,

I’m trying below curl request with correct app_key and app_id
curl -v -X GET "http://developer.goibibo.com/api/search/?app_id=xxxxxxxx&app_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx&format=json&source=BLR&destination=LGA&dateofdeparture=20190315&seatingclass=E&adults=1&children=0&infants=0&counter=100

getting following result
{
“data”: {
“returnflights”: [],
“onwardflights”: []
},
“data_length”: 2
}

But searching same flight option on goibibo website retruning lots of flight option.

Avatar

February 19, 2019 07:04

mayank.singh

Since your query does not contains complete query url, I will suggest you to please validate if with below successful response url.

http://developer.goibibo.com/api/search/?app_id=3ce35a6b&app_key=cae1cff703d52923ac7b8b63ec4eaa1c&format=json&source=BLR&destination=LGA&dateofdeparture=20190301&seatingclass=E&adults=1&children=0&infants=0&counter=0

Please note: If we use international sector we need to use counter 0

Reply to thread