rembrembdocs

Data Fetching

Last updated April 23, 2026

Data fetching in Next.js allows you to render your content in different ways, depending on your application's use case. These include prerendering with Server-side Rendering or Static Generation, and updating or creating content at runtime with Incremental Static Regeneration.

Examples

[

getStaticProps

Fetch data and generate static pages with `getStaticProps`. Learn more about this API for data fetching in Next.js.

](get-static-props/index.md)[

getStaticPaths

Fetch data and generate static pages with `getStaticPaths`. Learn more about this API for data fetching in Next.js.

](get-static-paths/index.md)[

Forms and Mutations

Learn how to handle form submissions and data mutations with Next.js.

](/docs/pages/building-your-application/data-fetching/forms-and-mutations)[

getServerSideProps

Fetch data on each request with `getServerSideProps`.

](get-server-side-props/index.md)[

Client-side Fetching

Learn about client-side data fetching, and how to use SWR, a data fetching React Hook library that handles caching, revalidation, focus tracking, refetching on interval and more.

](client-side/index.md)

Was this helpful?