Hydrogen includes a built-in client and utilities for [fetching data](/docs/storefronts/headless/hydrogen/data-fetching) with Shopify's Storefront API and Customer Account API. If you need to access data from third-party sources, then you can re-use these utilities and design patterns. By consistently using the same methods for data fetching regardless of the source, your app logic is simpler to understand, and your app will be more performant. ## What you'll build
Hydrogen app displaying data from a third-party API
In this guide, you'll use Hydrogen's built-in utilities to query the [GraphQL Rick and Morty API](https://rickandmortyapi.com/documentation/#graphql) and display a list of characters. This simplified example shows how to re-use Hydrogen tools to create a new API client, add it to the Remix context, and query your data from any route. ## Step 1: Create a new third-party API client The following example re-uses existing Hydrogen utilities to create an API client that handles caching with the same tooling and method that Hydrogen uses for Shopify API queries. This keeps data fetching and caching behaviors consistent across your app.

## Step 2: Create the API client and pass to the Remix context You can now add your API client to the app's context file so it's available to load data from your routes.

## Step 3: Query and render the list of entries You can now query your `rickAndMorty` API client from any loader function, on any route, using the same caching utilities that Hydrogen uses to query Shopify's Storefront API. The following simplified example shows how to render an unordered list of character names on the `/characters` route:

Run `shopify hydrogen dev` to start the development server, then open [http://localhost:3000/characters](http://localhost:3000/characters) to verify that the query succeeded. ## Next steps - If you haven't already, learn about [querying first-party Shopify APIs with Hydrogen](/docs/storefronts/headless/hydrogen/data-fetching) - Learn more about [caching third-party API data](/docs/storefronts/headless/hydrogen/caching/third-party) with Hydrogen