Skip to main content

Web Monetization API

The Web Monetization API provides a seamless payment experience for site owners and visitors. Unlike the W3C's Payment Request API, the Web Monetization API sends continuous micro-payments from the user agent to the website. Thus, visitors automatically send a small sum per time unit to any web-monetized website they visit. The payment rate is predetermined by the user's web monetization agent and adapts over time.

Web Monetization Concepts and Usage

The Web Monetization API allows web apps to accept continuous micro-payments from users. There are two components to this API:

  • The Web Monetization Agent is designed to be implemented in browsers and expose the Web Monetization API. It's responsible to:

    • get the rate, token, and payment connection address from the Web Monetization Provider
    • get the payment information from the <link> element
    • create an Interledger payment connection via the STREAM protocol

      - create an [Interledger]( payment connection via either the [STREAM]( protocol or the [Open Payments]( standard

    • receive confirmation of the payment
  • The Web Monetization Provider is intended to be the entity that facilitates payments to websites on behalf of the user. It's designed to be side-loaded via an extension, essentially allowing users to choose their provider by installing a different extension. It would only be responsible for offering the browser information about the rate, token, and provider address. Ideally, there would be a separate extension category for Web Monetization Providers.

Currently, the Agent and Provider are loaded via the same extension until the Web Monetization Agent is implemented in browsers.



An event object that contains all of the attributes of a successful web monetization event.

Basic example

<link rel="monetization" href="" />

Guides and tutorials

Exclusive Content

A tutorial on how to show Web Monetized viewers exclusive content.

Remove Ads

A guide on removing ads for Web Monetized viewers.

Micropayment Counter

Calculate how much you made from a Web Monetized visitor.

Probabilistic Revenue Sharing

A guide on revenue sharing amongst multiple payment pointers.

Receipt Verifier Service

A reference on verifying payments.



Browser compatibility