---
title: Functions
description: API Reference for Functions and Hooks in Pages Router.
url: "https://nextjs.org/docs/13/pages/api-reference/functions"
docs_index: /docs/13/pages/llms.txt
lastUpdated: 2023-06-28
prerequisites:
  - "API Reference: /docs/13/pages/api-reference"
---

> For an index of all documentation, see [/docs/13/pages/llms.txt](/docs/13/pages/llms.txt).

- [getInitialProps](/docs/13/pages/api-reference/functions/get-initial-props): Fetch dynamic data on the server for your React component with getInitialProps.
- [getServerSideProps](/docs/13/pages/api-reference/functions/get-server-side-props): API reference for \`getServerSideProps\`. Learn how to fetch data on each request with Next.js.
- [getStaticPaths](/docs/13/pages/api-reference/functions/get-static-paths): API reference for \`getStaticPaths\`. Learn how to fetch data and generate static pages with \`getStaticPaths\`.
- [getStaticProps](/docs/13/pages/api-reference/functions/get-static-props): API reference for \`getStaticProps\`. Learn how to use \`getStaticProps\` to generate static pages with Next.js.
- [NextRequest and NextResponse](/docs/13/pages/api-reference/functions/next-server): Learn about the server-only helpers for Middleware and Edge API Routes.
- [useAmp](/docs/13/pages/api-reference/functions/use-amp): Enable AMP in a page, and control the way Next.js adds AMP to the page with the AMP config.
- [useReportWebVitals](/docs/13/pages/api-reference/functions/use-report-web-vitals): useReportWebVitals
- [useRouter](/docs/13/pages/api-reference/functions/use-router): Learn more about the API of the Next.js Router, and access the router instance in your page with the useRouter hook.

---

For a semantic overview of all documentation, see [/sitemap.md](/sitemap.md)

For an index of all available documentation, see [/docs/13/pages/llms.txt](/docs/13/pages/llms.txt)