Functions
Source URL: https://nextjs.org/docs/pages/api-reference/functions
Functions
Section titled “Functions”- getInitialProps
- Fetch dynamic data on the server for your React component with getInitialProps.
- getServerSideProps
- API reference for
getServerSideProps. Learn how to fetch data on each request with Next.js.
- API reference for
- getStaticPaths
- API reference for
getStaticPaths. Learn how to fetch data and generate static pages withgetStaticPaths.
- API reference for
- getStaticProps
- API reference for
getStaticProps. Learn how to usegetStaticPropsto generate static pages with Next.js.
- API reference for
- NextRequest
- API Reference for NextRequest.
- NextResponse
- API Reference for NextResponse.
- useParams
- API Reference for the useParams hook in the Pages Router.
- useReportWebVitals
- useReportWebVitals
- useRouter
- Learn more about the API of the Next.js Router, and access the router instance in your page with the useRouter hook.
- useSearchParams
- API Reference for the useSearchParams hook in the Pages Router.
- userAgent
- The userAgent helper extends the Web Request API with additional properties and methods to interact with the user agent object from the request.