How To Make Your Own Web MashupSo you want to make a mashup but aren't entirely sure where to begin? This page can help you get there. 1. Pick a subjectAnswer the question: a mashup of what? Hint: Plotting markers on maps is probably the easiest place to start. It might just be the best delis in your neighborhood. While you could go for something more complex with muliple data sources: maps + photos + bookmarks + more, you may want to keep it simple to start. This helps define what APIs and tools you'll be looking at: maps, news, auctions, products, etc. Browse this site's API Database and sort by Category to get a sense of API types. You can also browse the Mashup Listing to see which interesting applications have been built using which APIs.
2. Decide where your data is coming fromWhat is the source of your data? This can drive the APIs you'll use. For example, if you want to do something with your photos on Flickr or sale items on eBay, then those vendors APIs are the likely candidates. Or, you may be inputting the data yourself such as with simple map markers. In which case your options are more open. (For the purposes of this Guide, I won't spend time distinguishing between a true 'mashup', thus 2 or more data sources, and just using an API, which may mean only 1 external source. The exact definition of mashup is vague so no need to fight semantics at the moment.) 3. Weigh your coding skillsMashups, as of today, are mostly a programmer's affair although there are some tools such as MapBuilder and Wayfaring that can help you create basic maps without coding. How much of a coder are you? Maps APIs are simplest but more sophisticated APIs, such as those for conducting financially-sensitive operations like auctions, are more complex. How much time do you have? Again, development speed is inversely proportional to complexity. Do you have a server to run this on? Simpler APIs can be used from JavaScript in a web page or take specially formated XML file as input (as shown here at Engadget ). While this is indeed simple, security issues limit JavaScript's suitability for true client-only mashups. Odds are that you will need to run your application from a web server which you manage or have access to. What language will you use? This is primarily driven by what programming languages you know. While your decision may also be influenced by vendor-provided toolkits, most web APIs aim to be language-agnostic so this is less of a vendor-dictacted issue than your own choice. You can use the API reference to see if an API has a language-specific toolkit (such as Flickr which has many). Note that this whole step may arguably be Step 1, depending on your perspective. 4. Sign-up for an APIMost, but not all, API providers require you to have a developer/application ID, a user account with their service, or both. Some services give you one ID for as many applications as you write while others require you to get an ID for each application that you create. While this signup may sound complicated, and for a few services it is, most of the time this takes only a minute or two to complete. As an example, take a look at the Google Sign-up Page. 5. Start codingFor this step, the big one, rather than describe the many variations in detail, I'll refer you to a variety of well-written and useful API-specific tutorials and introductions. You can also check the profile for any of the APIs and refer to resources from the reference section as needed. Note that this list is dynamic and will change over time so check back later for updates.
- Amazon E-Commerce Service Tour
A tour of the REST functionality from Amazon's developer site. - Amazon Web Services Code Samples
Full code samples from Amazon's site. Languages include Java, Perl, ASP.NET in C# and VB. - Use Amazon Web Services in ASP.NET
Tutorial demonstrating VB ASP.NET programming for Amazon's services. By Philip Miseldine at Sitepoint. - Harnessing the BackPack API
Thorough article on using the Backpack API. Examples in .NET with C#. By Michael Campbell. - The New Bloglines Web Services
Detailed introduction at XML.com by Marc Hedlund. Full Java sample application. - Introducing del.icio.us
Introduction to the del.icio.us API with examples using Python. By Matt Biddulph at XML.com - A Practical Introduction to eBay's Web API
Programmer's introduction to the eBay API with detailed C# example code. By Tim Stevens. - eBay API Getting Started and Best Practices
eBay official starting point. Good quality overviews and details. - eBay XML API Guide
eBay's official guide to their XML API. - FeedBurner API Quick Tour
Basic introduction to the FeedBurner API at their developer site. - Accessing Images with the Flickr API
Introductory article to Flickr's API using the Flickr.NET open source .NET library. By Tim Stevens at informIT. - Flickr API with AJAX
Presentation slides on Flickr API with AJAX from Simon Willison. - AdWords Developer's Guide
Google official AdWords API guide with detailed examples. - Google APIlity Library
From Google, a set of PHP classes for accessing their AdWords API. - Google Maps Ajax and ASP.NET
Shows how to create an ASP.NET server control that would allow a .NET developer to harness the power of Google Maps in the code-behind model. - Google Maps API Documentation
Google's official API documentation. Includes "Hello World" and JavaScript examples. - Google Maps Hacking and Bookmarklets
Interesting reference site shows API hacks and snippets. - Hacking Maps with the Google Maps API
Very good introduction to the API by Hari Gottipati. Examples in JavaScript. He reviews shortcomings of the API and compares to Yahoo! - How to add a Google Map to any web page in less than 10 minutes
Exploration Age shows how easy it can be to add a Google Map to any page. Nice straightforward demonstration. - Integrating Google Maps into Your Web Applications
Tutorial on the Google Maps API with detailed JavaScript example code. By By Jason Gilmore at developer.com - Java for Google Maps Mashups
Javaworld.com article using the geocoder.us service, the open source library DRW, SOAP, and server-side Java for geocoding and mapping. - Jon Udell Google Maps Screencast
Infoworld columnist Jon Udell shows how he created a Google Maps walking tour of Keene, NH, in this five minute screencast. - Make your own Google map
Engadget.com tutorial showing how to create a simple annotated Google Map. - Making of the Charlottetown Transit Map - Rukapedia
Explanation by Peter Rukavina of how he built the Charlottetown Transit Map. Includes how he setup MySQL data tables. - Phoogle Maps PHP Library
PHP library that simplifies geocoding with Google Maps. - Build a Site Search with the Google Search API
Good introduction to the Google Search API using PHP examples. From Mike Papageorge at fiftyfoureleven.com. - Some Google in Your Apps
Some Google in Your Apps: An Introduction to the Google Web API Using .NET and Java, by Tim Stevens. Full source code using both languages. - Using the Google Web Services API with Flash
Shows how to create a search application using Flash + PHP + Google API. Full source code. By Jeff Hill. Microsoft MSN Search [API Profile] - Build a Site Search with the MSN Search API
Clear introduction to using the MSN Search API using PHP. From Mike Papageorge at fiftyfoureleven.com. - Building a simple gadget for Live.com
Detailed walkthrough of created a gadgets in JavaScript. Via GadgetNews at Microsoft. Microsoft Virtual Earth [ API Profile] - Building a Virtual Earth Website with PHP
Tutorial on using PHP to create Virtual Earth applications. - Creating a Commercial Website with Virtual Earth
Demonstrates creating applications using C# with Virtual Earth. - Creating your first Virtual Earth Web Page
Virtual Earth tutorial on using JavaScript to create a VE map. - Integrating Virtual Earth and Ruby on Rails
Article demonstrates code for using MSN Virtual Earth with Ruby on Rails. - Retrotag Your Weblog with Yahoo! and Tagyu APIs
A two part series by Mike Papageorge demonstrating use of the Yahoo! Term Extraction API and the Tagyu API. Examples in PHP with cURL. - GeoCool
Rasmus Lerdorf, creator of PHP and now at Yahoo!, gives this good introduction to the Yahoo! Maps API using PHP and Flash. - How to build a Maps Mash-up
Yahoo! Maps tutorial using PHP and JavaScript. From Dan Theurer. - Introducing Yahoo! Maps JS-Flash API
Good introduction by Yahoo! Technical Evangelist Jason Levitt on creating Flash-based Yahoo! Maps applications. - Yahoo! Maps AJAX API Getting Started Guide
Yahoo's introduction to their v2 AJAX Maps API. With JavaScript examples. - Yahoo! Maps JavaScript-Flash API Getting Started Guide
Yahoo's introduction to using JavaScript and their Flash-based maps. - Build a Site Search with Yahoo! Search Web Services
Nice introduction on using the Yahoo! Search API using PHP. From Mike Papageorge at fiftyfoureleven.com. - Working with the Yahoo! API
Overview of the Yahoo! Search APIs including image and video APIs. Example application in PHP. At informit.com Yahoo Term Extraction [API Profile] - Tagging with the Yahoo and Tagyu APIs
A two part series by Mike Papageorge demonstrating use of the Yahoo! Term Extraction API and the Tagyu API. Examples in PHP with cURL. - Yahoo Term Extraction in PHP5
Simple Term Extraction example in PHP5 by Philipp Lenssen at GoogleBlogoscoped. >BackTrack < |