Fetching Data with APIs

Working with APIs to fetch information

Wikipedia Viewer

Pulling information using the legacy ‘XMLHttpRequest()’ method from Wikipedia’s API.

See the Pen Wikipedia Viewer by Oscar Salvatierra (@osalvatierra) on CodePen.

Geocode.xyz

Pulling information from Geocode.xyz using the more modern fetch() method from Geocode’s API using ‘promises‘ and ‘error handling‘.

See the Pen Reverse GeoCoding by Oscar Salvatierra (@osalvatierra) on CodePen.