# WebLens Credits Purchase

> WebLens Credits Purchase is a paid API for AI agents from api.weblens.dev, paid per call via x402, $2/call, status unknown (last checked 2026-10-24).

Purchases USDC credits for use with WebLens web intelligence API services via x402 micropayments

## Facts

- Endpoint: POST https://api.weblens.dev/credits/buy?utm_source=zero.xyz
- Price: $2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/weblens-credits-purchase-ab56e8c1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pblklB-z4IpjUwcFAUYA4

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability weblens-credits-purchase-ab56e8c1 -d '<json body>'
```

Example prompt: Add $10 worth of USDC credits to my WebLens account so I have balance ready for upcoming web scraping tasks.

## When to prefer this

Use this endpoint when you need to pre-fund a WebLens account with USDC credits before executing web scraping, research, or data extraction tasks. Choose this over per-call x402 payments when you plan to make many API calls and want to avoid per-request payment overhead or latency.

## Known failure modes

- Insufficient USDC funds in wallet — payment fails with x402 error
- Invalid or missing x402 payment header — authentication failure
- Network timeout during payment processing — indeterminate state, check balance before retrying
- Duplicate payment submission — may result in double charge if not idempotent
- Service unavailable — 5xx error with no credit added

## How this service works

# WebLens - Web Intelligence API, pay per call

Scrape, crawl, map and extract the web. No account, no API key, no monthly
minimum — you pay for the calls you make and nothing else.

## Pricing
Page fetching starts at **$0.002**, whole-site crawling at
**$0.0015/page**, and sitemap discovery at **$0.004**.
Comparable services bill $0.007-0.008 per request, or reach a lower per-page
rate only on a $99/month commitment. WebLens has no commitment to reach.

## Payment Protocol
All paid endpoints use the [x402 protocol](https://x402.org) for HTTP-native
micropayments (USDC on Base).

## Cache Discount
Cached responses are **70% cheaper** than fresh fetches.

## Output

Returns a JSON object confirming the transaction, including the number of credits added, any bonus credits, the updated account balance, a unique transaction ID, and a request ID for auditing.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "amount": {
   "type": "number",
   "example": 10,
   "maximum": 1000,
   "minimum": 2,
   "description": "Amount in USD to buy"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bonus": 0,
  "success": true,
  "requestId": "req_credits456",
  "newBalance": 15,
  "addedCredits": 10,
  "transactionId": "tx_123"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/weblens-credits-purchase-ab56e8c1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.weblens.dev](https://www.zero.xyz/host/api.weblens.dev/llms.txt)
