# ScrapePay Web Scraper

> ScrapePay Web Scraper is a paid API for AI agents from scrapepay.melis.ai, paid per call via x402, $0.010000/call, status down (last checked 2026-09-15, last successful call 2026-05-19).

Scrapes a given URL and returns the page content as plain text, HTML, or Markdown, optionally filtered by CSS selector

## Facts

- Endpoint: POST https://scrapepay.melis.ai/scrape
- Price: $0.010000/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Last successful call: 2026-05-19
- Success rate: 50% of calls made through Zero
- Activations on Zero: 4
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scrapepay-melis-ai-32c99d63
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mpRPWyv52PJW4ysxfoMiA

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 scrapepay-melis-ai-32c99d63 -d '<json body>'
```

Example prompt: Can you scrape https://news.ycombinator.com and return the content as markdown, just the main article list — use the CSS selector '#hnmain' to focus on that section?

## When to prefer this

Choose this endpoint when you need to retrieve live web content from a public URL and want the result in a clean format (text, HTML, or Markdown) — especially when you need to focus on a specific page section via CSS selector. It is pay-per-use at $0.01 USDC per successful scrape, making it cost-effective for on-demand or low-volume scraping without managing infrastructure.

## Known failure modes

- URL is unreachable or returns a non-200 status — scrape fails with an error
- CSS selector matches no elements — returns empty or full-page fallback
- Invalid format value — may return an error or default behavior
- Target page blocks bots or requires authentication — content may be incomplete or access denied
- Payment fails — endpoint returns 402 and no scrape is performed

## How this service works

ScrapePay: $0.01 per successful web scrape

## Output

Returns the scraped content of the target URL in the requested format (text, HTML, or markdown), optionally scoped to the matched CSS selector element

## Example request

```json
{
 "url": "https://example.com",
 "format": "markdown",
 "selector": "body"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string",
   "description": "URL to scrape"
  },
  "format": {
   "type": "string",
   "description": "Output format: text, html, or markdown"
  },
  "selector": {
   "type": "string",
   "description": "Optional CSS selector to extract"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "url",
  "cached",
  "format",
  "content",
  "success",
  "scraped_at",
  "word_count",
  "payment_hash"
 ],
 "properties": {
  "url": {
   "type": "string"
  },
  "cached": {
   "type": "boolean"
  },
  "format": {
   "type": "string"
  },
  "content": {
   "type": "string"
  },
  "success": {
   "type": "boolean"
  },
  "scraped_at": {
   "type": "string"
  },
  "word_count": {
   "type": "number"
  },
  "payment_hash": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scrapepay-melis-ai-32c99d63/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scrapepay.melis.ai](https://www.zero.xyz/host/scrapepay.melis.ai/llms.txt)
