Booking hotels for fun and profit
Yahoo! Hack Europe 2013
@SteveMarshall
Saturday, 27 April 13
World’s largest online travel company
Masses of data
Expedia Affiliate Network’s job to share that
Free access to APIs: play, experiment, build, and hack
But what data?
Slide 2
Slide 2 text
Saturday, 27 April 13
Over 155,000 hotels worldwide
Inventory from Expedia, Sabre and Venere
Prices, room availability, reservations, images, amenities
Slide 3
Slide 3 text
Saturday, 27 April 13
Geo Search API
- Location Data
- Landmarks
Slide 4
Slide 4 text
Something something
Hadoop
Saturday, 27 April 13
Database dumps
Slide 5
Slide 5 text
Saturday, 27 April 13
MAKE MONEY
Can take bookings!
We can handle bookings if you don’t want to…
Best travel hack: £1000 Amazon vouchers - doesn’t have to use our APIs, but has to be
travel-based
How do you get it all?
Slide 6
Slide 6 text
Saturday, 27 April 13
Sign up at developer.ean.com
Get an API key (doesn’t yet give production access, but that’s fine for a hack)
Slide 7
Slide 7 text
So what now?
Saturday, 27 April 13
API supports JSON, XML, and SOAP
Now: some examples!
Slide 8
Slide 8 text
Find destinations
http://api.ean.com/ean-services/rs/hotel/v3/geoSearch?
cid=[you]&apiKey=[you]&destinationString=london&type=2
Saturday, 27 April 13
Search for landmarks in London
Slide 9
Slide 9 text
Find hotels
http://api.ean.com/ean-services/rs/hotel/v3/list?
cid=[you]&apiKey=[you]&destinationString=london
Saturday, 27 April 13
Can pass search string, destination ID, or geo
Slide 10
Slide 10 text
Find rooms
http://api.ean.com/ean-services/rs/hotel/v3/avail?
cid=[you]&apiKey=[you]&hotelId=[hotel]&
arrivalDate=04/27/2013&departureDate=04/28/2013
Saturday, 27 April 13
Slide 11
Slide 11 text
Book rooms
Look at the docs!
Saturday, 27 April 13
Make bookings! Make money!
Slide 12
Slide 12 text
developer.ean.com
@SteveMarshall
Saturday, 27 April 13