# Mart402 PDF Page Extractor

> Mart402 PDF Page Extractor is a paid API for AI agents from mart402.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-02).

Extracts a specified range or set of pages from a PDF (e.g. '1-3,7') and returns a new PDF containing only those pages.

## Facts

- Endpoint: POST https://mart402.com/v1/pdf-pages?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mart402-pdf-page-extractor-035dc03b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__o5d8grNiH5FivjkkHyJ1

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 mart402-pdf-page-extractor-035dc03b -d '<json body>'
```

Example prompt: Can you pull out pages 1-3 and page 7 from this PDF — https://example.com/report.pdf — and give me a new PDF with just those pages?

## When to prefer this

Use this endpoint when you need to programmatically extract a specific subset of pages from a PDF by index or range. It is deterministic and cheap ($0.002/call), making it ideal for automated pipelines. Prefer it over full PDF-merge or split tools when you know exactly which pages you need and want a lightweight, single-call solution.

## Known failure modes

- Invalid or unreachable PDF URL returns an error
- Page range string referencing pages beyond the document's total page count
- Malformed page range string (e.g. missing commas or invalid syntax) causes a parsing error
- Source file is not a valid PDF
- Payment failure prevents the call from completing

## How this service works

Extract pages from a PDF by range (e.g. 1-3,7) into a new PDF. Deterministic, 0.002/call.

## Output

A new PDF document (likely base64-encoded) containing only the pages specified by the range string, extracted from the source PDF at the provided URL.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "url": {
   "type": "string"
  },
  "pages": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mart402-pdf-page-extractor-035dc03b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from mart402.com](https://www.zero.xyz/host/mart402.com/llms.txt)
