# extract-pdf-links-as-csv

> extract-pdf-links-as-csv is a paid API for AI agents from page.intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-20).

Fetches a web page and extracts all PDF link URLs, returning them as structured CSV rows with a count

## Facts

- Endpoint: GET https://page.intel.rallylive.ca/page/pdf-links/csv?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/extract-pdf-links-as-csv-594f763e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WbcgSde0_pBtosA2mfbSR

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 extract-pdf-links-as-csv-594f763e
```

Example prompt: Can you pull all the PDF links from https://example.com/resources and give me the results as a CSV so I can see how many PDFs they're hosting?

## When to prefer this

Use this endpoint when you need a clean, structured CSV list of all PDF links from a single web page without setting up a browser or scraping infrastructure. It is ideal for agent pipelines that need to discover downloadable PDF documents at a low per-call cost of $0.01. Prefer this over general-purpose scrapers when you specifically want PDF links in CSV format with a count included.

## Known failure modes

- Target URL is unreachable or returns a non-200 HTTP status — extraction fails with an error
- Page contains no PDF links — returns an empty CSV with a zero count
- Target page requires JavaScript rendering — server-side fetch may miss dynamically loaded links
- Invalid or malformed URL input — returns an error indicating bad input
- Payment not provided or insufficient — returns HTTP 402 payment required

## How this service works

Extract the page's pdf links as csv: fetches the URL, pulls every pdf links element and returns them as CSV rows, with a count. Structured, one-element-type extraction for agents and pipelines; no browser needed. $0.01 per page.

## Output

A CSV-formatted response containing one row per PDF link found on the target page, along with a total count of PDF links discovered. Each row represents a distinct PDF URL extracted from the page's HTML.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/extract-pdf-links-as-csv-594f763e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from page.intel.rallylive.ca](https://www.zero.xyz/host/page.intel.rallylive.ca/llms.txt)
