L402 Protocol Demo

About This Demo

This API demonstrates a credit-based system with automated payment handling, perfect for AI agents and automated systems. It provides real-time financial market data, allowing you to query stock ticker information programmatically. Each API call costs 1 credit. New accounts start with 1 free credit. Learn more about the L402 protocol here.

The service exposes three main endpoints:

When you run out of credits, the API returns a 402 Payment Required status code, allowing applications to programmatically handle payments and continue operation.

You can buy credits using: ⚡ Lightning Network, 💳 Credit Card, or ₿ Cryptocurrency

Available Credits

-

Try it out! Click any stock to fetch data: