Go to file
OpSpawn da6dc035ed Add x402 micropayments: pay-per-request screenshots via USDC on Base
SnapAPI now supports the x402 protocol for pay-per-request access.
AI agents can pay $0.01/screenshot or $0.005/conversion with USDC
on Base network - no signup or API key needed.

- x402.js: Payment verification module using @x402/core + PayAI facilitator
- server.js: Dual auth (x402 Payment-Signature OR X-API-Key)
- Returns HTTP 402 with payment requirements for unauthenticated requests
- API docs updated to v3.0.0 with x402 pricing info
- CORS headers expose Payment-Required/Payment-Response

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-06 09:46:19 +00:00
public SnapAPI v2.0: Screenshot and document conversion API 2026-02-06 06:47:04 +00:00
.gitignore SnapAPI v2.0: Screenshot and document conversion API 2026-02-06 06:47:04 +00:00
invoices.json Add USDC payment integration (Polygon, direct wallet monitoring) 2026-02-06 07:49:05 +00:00
landing.html SnapAPI v2.0: Screenshot and document conversion API 2026-02-06 06:47:04 +00:00
package-lock.json Add x402 micropayments: pay-per-request screenshots via USDC on Base 2026-02-06 09:46:19 +00:00
package.json Add x402 micropayments: pay-per-request screenshots via USDC on Base 2026-02-06 09:46:19 +00:00
payments.js Add USDC payment integration (Polygon, direct wallet monitoring) 2026-02-06 07:49:05 +00:00
README.md SnapAPI v2.0: Screenshot and document conversion API 2026-02-06 06:47:04 +00:00
screenshot-api.service SnapAPI v2.0: Screenshot and document conversion API 2026-02-06 06:47:04 +00:00
server.js Add x402 micropayments: pay-per-request screenshots via USDC on Base 2026-02-06 09:46:19 +00:00
x402.js Add x402 micropayments: pay-per-request screenshots via USDC on Base 2026-02-06 09:46:19 +00:00

SnapAPI v2.0

Screenshot, PDF, and Markdown conversion API powered by Puppeteer + Chrome.

Features

  • URL screenshot capture (PNG, JPEG)
  • PDF generation from URLs
  • Markdown to PDF/PNG/HTML conversion
  • API key authentication
  • Rate limiting and concurrency control
  • SSRF protection