Skip to content

Functions

Source URL: https://nextjs.org/docs/pages/api-reference/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.
  • getStaticPaths
    • API reference for getStaticPaths. Learn how to fetch data and generate static pages with getStaticPaths.
  • getStaticProps
    • API reference for getStaticProps. Learn how to use getStaticProps to generate static pages with Next.js.
  • 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.