Using Yahoo Pipes, web developers can retrieve data from external sources and include it in web pages without same-domain restrictions. Yahoo Pipes converts data sources into JSON format, which can then be included in web pages using JavaScript. The document provides an example of a pipe that queries the Trove People database and outputs search results in JSON format, which is then displayed on a web page using jQuery.