---
title: "Use Custom Fetch Composable"
description: "This example shows a convenient wrapper for the useFetch composable from nuxt. It allows you to customize the fetch request with default values and user authentication token."
canonical_url: "https://nuxt.com/docs/examples/advanced/use-custom-fetch-composable"
---
# Use Custom Fetch Composable

> This example shows a convenient wrapper for the useFetch composable from nuxt. It allows you to customize the fetch request with default values and user authentication token.

::code-explorer{path="examples/advanced/use-custom-fetch-composable" default-value="plugins/customFetch.ts"}
::

::browser{src="https://use-custom-fetch-composable.example.nuxt.space"}
::

::read-more{to="https://nuxt.com/docs/guide/recipes/custom-usefetch"}
::

---

- [Source](https://github.com/nuxt/examples/tree/main/examples/advanced/use-custom-fetch-composable)


## Sitemap

See the full [sitemap](https://nuxt.com/sitemap.md) for all pages.
