# api.apivend.dev

> Paid per request with x402: call an endpoint, receive HTTP 402 with the price in the PAYMENT-REQUIRED header, sign a USDC authorization with any x402 client and send the request again with it. No account or API key. Only answers with a 2xx status are charged.

## Endpoints

- [Name check](https://api.apivend.dev/v1/name-check?name=larkspindle): Before you name a project: is it taken on npm, PyPI, or as a .com, .dev or .io domain? Errors are not charged. Price: 0.01 USD per request on Base.
  - `name` (required): The name to check, lowercase. Example: `larkspindle`
  - `sources` (optional): Comma-separated: npm, pypi, domain (default all). Example: `npm,pypi,domain`
  - `tlds` (optional): Comma-separated TLDs for the domain check, at most 6 (default com,dev,io). Example: `com,dev,io`
- [Wallet check](https://api.apivend.dev/v1/wallet-check?address=0x1e44fC9a16Dc6C1AeEe708ac50D07E1400548232): Before you pay an address: is it on the US sanctions list, a plain account, a smart wallet or a token contract where funds are lost , ever used, and what it holds. Errors are not charged. Price: 0.01 USD per request on Base.
  - `address` (required): The address you are about to pay; a mixed-case address must carry a valid EIP-55 checksum. Example: `0x1e44fC9a16Dc6C1AeEe708ac50D07E1400548232`
  - `network` (optional): base (default) or base-sepolia. Example: `base`
- [x402 inspector](https://api.apivend.dev/v1/x402-inspect?url=https://x402.org/protected): The payment terms of any x402 endpoint, decoded and checked token, amount, addresses, EIP-712 domain before you pay it. Errors are not charged. Price: 0.01 USD per request on Base.
  - `url` (required): The http(s) URL of an x402 endpoint, ports 80 and 443. Example: `https://x402.org/protected`

## Machine-readable

- [OpenAPI](https://api.apivend.dev/openapi.json)
- [x402 resources](https://api.apivend.dev/.well-known/x402)
