Netlify Functions

A modern, scalable backend built into every Netlify account. No setup, servers, or ops required.

Full-powered sites—no servers required

Meet the modern backend. Infinitely scalable. Genuinely simple.

Serverless made painless

Powered by AWS Lambda. Simplified by Netlify.

Write JavaScript or Go APIs to perform just about any backend task, scaling automatically as demand increases. Setting up AWS Lambdas on your own can be fairly complex—tutorials average 20 steps! With Netlify, simply set a folder and drop in your functions. Everything else is automatic.

How Netlify Functions work

Write simple functions that automatically become APIs.

Netlify deploys the functions you write as full API endpoints and will even run them automatically in response to events (like a form submission or a user login). Functions receive request context or event data, and return data back to your frontend.

/functions/split-test-activated.js exports . handler = async ( event , context ) => { return { statusCode : 200 , body : “ We are now split testing! }; }

Give backend superpowers to your frontend code

Functions can respond to events, sanitize user input, and know who’s logged in.

Automated triggers

Automatically trigger any function to run when a new deploy succeeds, a user authenticates, or a new form submission arrives.

See all available events

Third-party APIs

Set up functions to check and sanitize user data before sending on to third-party APIs. Or use functions to process API responses and combine API services in new and exciting ways.

Check out an example

User authentication

Instead of managing sessions on a server, use JavaScript Web Tokens to handle identity right in the browser, passing session tokens directly to your serverless functions.

Learn more about Identity

Less setup, more productivity

Functions as a Service (FaaS) providers like AWS handle some of the infrastructure hassle; Netlify takes the final step to bring functions directly to your workflow.

Running a server
You maintain everything
Cloud FaaS
Using AWS or Google
Netlify Functions
Netlify as your backend
Managed infrastructure
Automatic scaling
Code deployment
Versioning

Decoupled but not divided

Frontend code & backend code in one powerful workflow.

Develop modularly. Deploy collectively

Atomically deploy your sites and apps, pushing frontend code and backend functions together, as a unit, without even requiring a maintenance window.

Learn more about Deployment

Stage, preview, and rollback

Netlify Functions share all of Netlify’s beloved workflow features. Preview every commit with Deploy Preview links. Rollback when needed by simply clicking a prior deployment.

Learn more about Deploy Previews

Run A/B testing and phased rollouts Beta

Deploy and test multiple branches, and even control which users see which version. Plan full experiments and rolling upgrades that include both front and backend code changes. A/B test not just a button color, but an entire user workflow.

Learn more about Split Testing

Pricing for Netlify Functions

Netlify Functions are free to try and available as soon as you activate your account. Pricing scales as your usage grows—from small projects to fully customized enterprise plans.

Functions Functions Free
$0
Functions Pro
$25/month/site
Functions Enterprise
custom price
Requests per month 125k 2 million Custom limits
Runtime per month 100 hours 1000 hours Custom limits
Deploy to custom AWS account
Security by Intrinsic
Extras
Add packs of 500k requests and 500 runtime hours
$19/each
Contact us

Get started with Netlify Functions

Deploy a scalable backend with Netlify Functions in minutes.