# @netlify/serverless-functions-api

> The runtime API for Netlify Functions

Latest version **2.22.0** (published 2026-09-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install @netlify/serverless-functions-api
pnpm add @netlify/serverless-functions-api
yarn add @netlify/serverless-functions-api
bun add @netlify/serverless-functions-api
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 2.22.0 |
| Published | 2026-09-16 |
| First published | 2023-04-20 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Netlify Inc. |
| Maintainers | netlify-bot, mikewen, youvalv, serhalp-netlify, mlgualtieri-gatsby |

## Links

- npm: https://www.npmjs.com/package/@netlify/serverless-functions-api
- Repository: https://github.com/netlify/serverless-functions-api
- Homepage: https://github.com/netlify/serverless-functions-api#readme
- Issues: https://github.com/netlify/serverless-functions-api/issues
- npm.io page: https://npm.io/package/@netlify/serverless-functions-api

## Recent versions

- 2.22.0 (latest) — 2026-09-16
- 1.41.2 (version1) — 2025-05-15
- 2.21.2 — 2026-09-11
- 2.21.1 — 2026-09-10
- 2.21.0 — 2026-09-10
- 2.20.0 — 2026-08-24
- 2.19.1 — 2026-08-13
- 2.19.0 — 2026-08-13
- 2.18.0 — 2026-08-03
- 2.17.2 — 2026-07-06
- 2.17.1 — 2026-07-06
- 2.17.0 — 2026-07-06
- 2.16.0 — 2026-05-21
- 2.15.1 — 2026-05-08
- 2.15.0 — 2026-04-15
- … 101 more at https://npm.io/package/@netlify/serverless-functions-api/versions

## README

[![npm version](https://img.shields.io/npm/v/@netlify/serverless-functions-api.svg)](https://npmjs.org/package/@netlify/serverless-functions-api)
[![Build](https://github.com/netlify/serverless-functions-api/workflows/Build/badge.svg)](https://github.com/netlify/serverless-functions-api/actions)
[![Node](https://img.shields.io/node/v/@netlify/serverless-functions-api.svg?logo=node.js)](https://www.npmjs.com/package/@netlify/serverless-functions-api)

# Serverless Functions API

A Node.js module that implements the runtime API for serverless functions. It translates between the API defined by Netlify and the API expected by the underlying provider, AWS Lambda.

## The API

The API surface is quite minimal: functions are comprised of handlers that receive a [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) and return a [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response), using the default export.

```js
export default async (req) => new Response(`Responding to ${req.url}`)
```

## The module

The module exports a `getLambdaHandler` function that returns a Lambda-compatible handler. This handler receives a Lambda event, converts it to a Netlify API input (i.e. an instance of the standard `Request` and a `context` object), executes the function, and converts the result back into a response compatible with the Lambda API.

The source is bundled into a single file, so that it can be injected into a Lambda without any additional imports or dependencies.

The `getPath` export returns the absolute path to the module. This lets consumers like `zip-it-and-ship-it` easily include the file in a ZIP.

---
_Source: https://npm.io/package/@netlify/serverless-functions-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
