--- name: neon-extract-api description: SSRF-safe Web-to-Clean-Markdown extraction API with permissionless Base/Polygon USDC billing and native x402 v2. --- # Neon Developer API Skill Convert any public webpage into clean, LLM-ready Markdown. Pay-as-you-go with Base or Polygon USDC (no OAuth, no credit card). ## Pricing - **Free trial**: 20 credits (`POST https://neon-api.austneo.workers.dev/v1/keys/free`) - **Prepaid API key**: 1000 credits per 1.00 USDC (`$0.001 / URL`) - **Native x402 v2 (no API key, Base `eip155:8453`)**: - `GET/POST https://neon-api.austneo.workers.dev/v1/x402/extract` — `$0.01 USDC` per URL - `GET https://neon-api.austneo.workers.dev/v1/x402/links` — `$0.005 USDC` per URL - `POST https://neon-api.austneo.workers.dev/v1/x402/extract/batch` — `$0.05 USDC` for up to 10 URLs - **USDC Receiver (Base / Polygon)**: `0xfbf41f92592b3ff315983e41f058c21a1e8b8d48` ## Usage ```bash # 1. Get a free trial key (20 credits) curl -s -X POST https://neon-api.austneo.workers.dev/v1/keys/free # 2. Extract a single URL (1 credit) curl -s -X POST https://neon-api.austneo.workers.dev/v1/extract -H 'X-API-Key: YOUR_KEY' -H 'Content-Type: application/json' \ -d '{"url": "https://example.com"}' # 3. Batch extract up to 10 URLs (1 credit per successful URL) curl -s -X POST https://neon-api.austneo.workers.dev/v1/extract/batch -H 'X-API-Key: YOUR_KEY' -H 'Content-Type: application/json' \ -d '{"urls": ["https://example.com", "https://iana.org"]}' # 4. Top up with Base or Polygon USDC TxHash curl -s -X POST https://neon-api.austneo.workers.dev/v1/billing/redeem -H 'X-API-Key: YOUR_KEY' -H 'Content-Type: application/json' \ -d '{"chain": "base", "tx_hash": "0x..."}' ```