I made an API that has no signup, because the payment is the login
I wanted an agent of mine to resolve an Australian company by its ABN. That is a solved problem. There are several APIs that do it and they are cheap. The agent could not use the ones I found. The price was never the blocker. The signup was. Each of them wanted an email address, a confirmation click, a dashboard visit, a plan chosen, and a key copied out of a web page into an environment…
The author created an API that allows users to access Australian company information without requiring any signup. The payment for this service is the only requirement, as the API uses the HTTP 402 Payment Required mechanism. Users can query the API by providing an Australian Business Number (ABN) and receive a JSON response containing the company details.
The API uses the x402 protocol, which is an HTTP 402 Payment Required implementation. The author discovered that the payment process involves the client signing an EIP-3009 transferWithAuthorization for a small amount of USDC (0.01 USD) and sending it in the PAYMENT-SIGNATURE header. The server then verifies the signature, settles the transfer, and returns the settlement hash in the PAYMENT-RESPONSE header.
The API also supports two payment versions (v1 and v2) with different schemas for the price and the requirements. The author faced challenges with version compatibility and discovered that their API was automatically included in a facilitator's catalog without their knowledge. They created a discovery block to address this issue.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.