Thursday, March 09, 2006

New Search API is live

In today's patch, we updated the search API to include flight segment data, which includes cabin, equipment type, wheels up/wheels down on all segments of a trip, along with some more stuff. This was based on feedback from some early users of the API (thanks Bryan and John at Stanford!).

Also, the documentation is now correct regarding the _sid_ parameter.


Blogger Kevin said...

wow, the search API is an awesome tool but I'm running into problems when I try to use the url returned from the xml document.

For example in the xml document, I get a ->


and I try going to:$KHPKvF.F.CO.44320.0&_sid_=XXXXXX (with the correct sid filled in) ->

Firefox gives me a nasty "The page isn't redirecting properly" error message.

I've unescaped the ampersand and it still gives me the error.

Any ideas? Good job on the site!


7:03 PM  
Blogger Bill, chief architect said...


I am looking into this now. I'll let you know what I figureo out.

8:55 AM  
Blogger Bill, chief architect said...

Kevin, I haven't been able to reproduce this problem.

Can you contact me by email, and I can get some more info from you.

It's billo at kayak dot com.

11:10 AM  
Blogger Lynn Cherry said...

I may have missed it, but is there documentation for this new functionality (cabin, wheels up, wheels down, equipment, etc)?

2:16 PM  
Blogger Bill, chief architect said...


The documentation for the new elements (which are the flight segments) is not on the site yet. It's on my to-do list.

In the meantime, feel free to ask about anything that seems confusing or broken.


2:20 PM  
Blogger tim said...

very excited to try out this API.

My Webhost does not support Ruby just yet, so I have ported parts of your sample codes into PHP. it's not presentable right now, but please drop me a line if you are interested to see anyways.

thank you very much for the initiative :)

p.s. is it possible for you guys to enable 'anonymous comment' for future posts? I would like to comment with my wordpress identity instead.


10:36 AM  
Blogger Jimmy said...

We are trying to use the APIs using PHP. However, we are running into some issues. Our search results are coming back as HTML page instead of XML. Our understanding is that the search results should be coming back as XML.

Is this a known issue? Is there some sample PHP code that someone is willing to share with us. Our server does not support Ruby and having a sample PHP code will be very helpful.

My email address is:
jimmy2jimmy AT gmail DOT com

3:18 AM  
Blogger Bill, chief architect said...


You need to specify apimode=1
on all HTTP calls. This is a bug in the documentation, which will be fixed in the next API site update.

9:03 AM  
Blogger sandip said...

I have a question on Kayak flight search API.

We want to get the search results as returned by homepage which are sorted on the basis of price and non-stop.

What option either in

or shall we use to get results as returned by

12:01 AM  
Blogger Atul said...

This comment has been removed by the author.

4:16 AM  
Blogger Atul said...

Dear Sir,

I am a PHP programmer. Please let me know, how can i use kayak API with PHP application.Where should i get some reference for the same.

4:24 AM  
Blogger Atul said...

We are able to retrieve that data from you server using your API the number of records limited to 10 , but we have two question to ask you for that how to increase the number of search records (which are limited to 10)and , what are the station codes Like for DELHI India we use (DEL) and for MUMBAI India (BOM) .
so we can send your server a right query string .

6:38 AM  

Post a Comment

<< Home