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

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

- [cookies](/docs/14/app/api-reference/functions/cookies): API Reference for the cookies function.
- [draftMode](/docs/14/app/api-reference/functions/draft-mode): API Reference for the draftMode function.
- [fetch](/docs/14/app/api-reference/functions/fetch): API reference for the extended fetch function.
- [generateImageMetadata](/docs/14/app/api-reference/functions/generate-image-metadata): Learn how to generate multiple images in a single Metadata API special file.
- [generateMetadata](/docs/14/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.
- [generateSitemaps](/docs/14/app/api-reference/functions/generate-sitemaps): Learn how to use the generateSiteMaps function to create multiple sitemaps for your application.
- [generateStaticParams](/docs/14/app/api-reference/functions/generate-static-params): API reference for the generateStaticParams function.
- [generateViewport](/docs/14/app/api-reference/functions/generate-viewport): API Reference for the generateViewport function.
- [headers](/docs/14/app/api-reference/functions/headers): API reference for the headers function.
- [ImageResponse](/docs/14/app/api-reference/functions/image-response): API Reference for the ImageResponse constructor.
- [NextRequest](/docs/14/app/api-reference/functions/next-request): API Reference for NextRequest.
- [NextResponse](/docs/14/app/api-reference/functions/next-response): API Reference for NextResponse.
- [notFound](/docs/14/app/api-reference/functions/not-found): API Reference for the notFound function.
- [permanentRedirect](/docs/14/app/api-reference/functions/permanentRedirect): API Reference for the permanentRedirect function.
- [redirect](/docs/14/app/api-reference/functions/redirect): API Reference for the redirect function.
- [revalidatePath](/docs/14/app/api-reference/functions/revalidatePath): API Reference for the revalidatePath function.
- [revalidateTag](/docs/14/app/api-reference/functions/revalidateTag): API Reference for the revalidateTag function.
- [unstable\_cache](/docs/14/app/api-reference/functions/unstable_cache): API Reference for the unstable\_cache function.
- [unstable\_noStore](/docs/14/app/api-reference/functions/unstable_noStore): API Reference for the unstable\_noStore function.
- [useParams](/docs/14/app/api-reference/functions/use-params): API Reference for the useParams hook.
- [usePathname](/docs/14/app/api-reference/functions/use-pathname): API Reference for the usePathname hook.
- [useReportWebVitals](/docs/14/app/api-reference/functions/use-report-web-vitals): API Reference for the useReportWebVitals function.
- [useRouter](/docs/14/app/api-reference/functions/use-router): API reference for the useRouter hook.
- [useSearchParams](/docs/14/app/api-reference/functions/use-search-params): API Reference for the useSearchParams hook.
- [useSelectedLayoutSegment](/docs/14/app/api-reference/functions/use-selected-layout-segment): API Reference for the useSelectedLayoutSegment hook.
- [useSelectedLayoutSegments](/docs/14/app/api-reference/functions/use-selected-layout-segments): API Reference for the useSelectedLayoutSegments hook.
- [userAgent](/docs/14/app/api-reference/functions/userAgent): The userAgent helper extends the Web Request API with additional properties and methods to interact with the user agent object from the request.

---

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

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