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

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

- [cookies](/docs/13/app/api-reference/functions/cookies): API Reference for the cookies function.
- [draftMode](/docs/13/app/api-reference/functions/draft-mode): API Reference for the draftMode function.
- [fetch](/docs/13/app/api-reference/functions/fetch): API reference for the extended fetch function.
- [generateImageMetadata](/docs/13/app/api-reference/functions/generate-image-metadata): Learn how to generate multiple images in a single Metadata API special file.
- [generateMetadata](/docs/13/app/api-reference/functions/generate-metadata): Learn how to add Metadata to your Next.js application for improved search engine optimization (SEO) and web shareability.
- [generateStaticParams](/docs/13/app/api-reference/functions/generate-static-params): API reference for the generateStaticParams function.
- [headers](/docs/13/app/api-reference/functions/headers): API reference for the headers function.
- [ImageResponse](/docs/13/app/api-reference/functions/image-response): API Reference for the ImageResponse constructor.
- [NextRequest](/docs/13/app/api-reference/functions/next-request): API Reference for NextRequest.
- [NextResponse](/docs/13/app/api-reference/functions/next-response): API Reference for NextResponse.
- [notFound](/docs/13/app/api-reference/functions/not-found): API Reference for the notFound function.
- [permanentRedirect](/docs/13/app/api-reference/functions/permanentRedirect): API Reference for the permanentRedirect function.
- [redirect](/docs/13/app/api-reference/functions/redirect): API Reference for the redirect function.
- [revalidatePath](/docs/13/app/api-reference/functions/revalidatePath): API Reference for the revalidatePath function.
- [revalidateTag](/docs/13/app/api-reference/functions/revalidateTag): API Reference for the revalidateTag function.
- [Server Actions](/docs/13/app/api-reference/functions/server-actions): API Reference for Next.js Server Actions.
- [useParams](/docs/13/app/api-reference/functions/use-params): API Reference for the useParams hook.
- [usePathname](/docs/13/app/api-reference/functions/use-pathname): API Reference for the usePathname hook.
- [useReportWebVitals](/docs/13/app/api-reference/functions/use-report-web-vitals): API Reference for the useReportWebVitals function.
- [useRouter](/docs/13/app/api-reference/functions/use-router): API reference for the useRouter hook.
- [useSearchParams](/docs/13/app/api-reference/functions/use-search-params): API Reference for the useSearchParams hook.
- [useSelectedLayoutSegment](/docs/13/app/api-reference/functions/use-selected-layout-segment): API Reference for the useSelectedLayoutSegment hook.
- [useSelectedLayoutSegments](/docs/13/app/api-reference/functions/use-selected-layout-segments): API Reference for the useSelectedLayoutSegments hook.

---

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

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