API Reference
Use the apinow-sdk for the simplest integration, or go raw with @x402/fetch. Every route documented below.
x402 Payment
Endpoint execution routes are gated with x402 pay-per-call. $0.01 per call on Base network. No API key signup required.
x402 specNo API Keys
x402 replaces API key signup. Your wallet is your auth. Just pay per call — no registration, no rate limits, no keys to manage.
Wallet Auth
Write operations require x-wallet-address header to verify ownership.
-H "x-wallet-address: 0x..."Quick Start
Option 1 — apinow-sdk
npm install apinow-sdkimport { createClient } from "apinow-sdk";
const apinow = createClient({
privateKey: "0xYOUR_PRIVATE_KEY",
});
const data = await apinow.call(
"https://www.apinow.fun/api/endpoints/apinowfun/translate",
{ method: "POST", body: { text: "Hello", targetLanguage: "es" } }
);Option 2 — Raw x402
npm install @x402/fetch @x402/evm viemimport { x402Client, wrapFetchWithPayment } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const account = privateKeyToAccount("0xYOUR_PRIVATE_KEY");
const client = new x402Client();
registerExactEvmScheme(client, { signer: account });
const fetchWithPayment = wrapFetchWithPayment(fetch, client);
const res = await fetchWithPayment(
"https://www.apinow.fun/api/endpoints/apinowfun/translate",
{
method: "POST",
headers: { "Content-Type": "application/json" },
body: JSON.stringify({ text: "Hello", targetLanguage: "es" }),
}
);
const data = await res.json();cURL examples
Search endpoints
curl https://www.apinow.fun/api/endpoints?search=weather&limit=5
Semantic search
curl -X POST https://www.apinow.fun/api/search/semantic \
-H "Content-Type: application/json" \
-d '{"query": "generate jokes about programming"}'|
Loading catalog...
Prefer machine-readable?
GET /api/catalog