Skip to content

Documentation ​

Typed Fetch client for TanStack Query. Start here, then jump to the guide that matches your stack.

Start ​

PageWhat you’ll do
Getting startedInstall and make the first request
IntroductionMental model and entry points
Why this API?How it differs from axios / ky / ofetch
ComparisonFeature matrix
MigrateFrom axios, ky, ofetch, or fetch

Core guides ​

PageTopic
ConfigurationTokens, status handlers, defaults
ErrorsFetchError and narrowing
TanStack QueryReact Query and Vue Query
PluginsNamed interceptors and refresh token

Integrations ​

PageStack
ReactFetchProvider, useFetch, useSse
Vue & NuxtPlugin, composables, Nuxt
SSRNext.js and Nuxt cookie forwarding
SSEAuth-capable streams
UploadMultipart + progress
tRPCShared client link
OpenAPI CLICodegen
Migrateaxios / ky / ofetch / fetch → tanstack-fetch

API · Examples · Blog ​

MIT Licensed · Created by Mohammad Garmabi · Not an official TanStack package