Overview

API20 is designed as a terminal-first tool for working with x402-powered APIs on Base. These commands represent the planned interface. You can preview scan behavior on the homepage scanner.

api20 scan <url>

scan

Scan an endpoint and inspect possible HTTP 402 payment requirements.

api20 scan https://server.api20.xyz/data
api20 inspect <url>

inspect

Display x402 metadata, payment requirements, network, asset, and resource info.

api20 inspect https://server.api20.xyz/data
api20 registry

registry

Browse indexed x402-compatible APIs.

api20 registry
api20 mcp <api>

mcp

Preview how an API could be documented for future MCP-ready agent workflows. MCP server support is research/planned — no live MCP server is connected.

api20 mcp "Weather API"
api20 builder-code <api>

builder-code

Preview Builder Code attribution metadata for an indexed x402 API. ERC-8021 / settlement integration is research/planned — not live.

api20 builder-code "Weather API"
api20 registry export

registry export

Export registry metadata as JSON for indexed x402 APIs.

api20 registry export
api20 registry inspect <api-id>

registry inspect

Inspect detailed metadata for a listed x402 API.

api20 registry inspect weather-api
api20 demo

demo

Run a simulated x402 flow.

api20 demo

Current status

The installable CLI package is planned. The current public version provides a web-based terminal simulation, documentation, registry preview, and schema exploration.

  • Web-based terminal simulation on api20.xyz
  • Public documentation and command reference
  • Public registry.json and API detail pages
  • Endpoint scanner mock with preset endpoints
  • Builder Codes research page

When the CLI is published, installation instructions will appear here and on the docs page.

Try it now

Use the interactive command preview on the homepage or run a live scan simulation:

Try Scanner