This document presents an approach called Baker that automatically generates bidirectional links between API documentation and source code examples. Baker uses constraint-based deduction to determine the fully qualified names of code elements in snippets. It builds oracles of Java and JavaScript APIs to help with this disambiguation. An evaluation of Baker showed it could accurately identify code elements in snippets with a precision of 0.98 for Java and 0.97 for JavaScript. Baker was also able to link a variety of APIs, processing over 4000 code examples.