Building Your Application: Data Fetching | Next.js
nextjs.org · 2,411 words · saved by 1 readers
Learn the fundamentals of data fetching with React and Next.js.
This page is also available as Markdown at /docs/app/getting-started/fetching-data.md . For an index of Next.js documentation , see /docs/llms.txt . Copy page Fetching Data Last updated March 13, 2026 This page will walk you through how you can fetch data in Server and Client Components, and how to stream components that depend on uncached data. Fetching data Server Components You can fetch data in Server Components using any asynchronous I/O, such as: The fetch API An ORM or database With the fetch API To fetch data with the fetch API, turn your component into an asynchronous function, and aw
saved by
related reading
- Getting Started: Fetching Data | Next.jsnextjs.org
- Getting Started: Caching | Next.jsnextjs.org
- Getting Started: Layouts and Pages | Next.jsnextjs.org
- File-system conventions: loading.js | Next.jsnextjs.org
- Getting Started: Fetching Data | Next.jsnextjs.org
- Getting Started: Error Handling | Next.jsnextjs.org
- Getting Started: Fetching Data | Next.jsnextjs.org
- React Foundations | Next.jsnextjs.org
- How to fetch data in React [2024] - Robin Wieruchrobinwieruch.de
- App Router: Streaming | Next.jsnextjs.org
- App Router: Fetching Data | Next.jsnextjs.org
- Getting Started: Server and Client Components | Next.jsnextjs.org