# Tanship PayAI — Browser to Markdown

> Tanship PayAI — Browser to Markdown is a paid API for AI agents from x402.tanship.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Fetches a webpage via headless browser automation and converts its content to Markdown, gated by a $0.005 USDC x402 micropayment on Base.

## Facts

- Endpoint: POST https://x402.tanship.dev/v1/browser/markdown
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tanship-payai-browser-to-markdown-8359867e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UEmcKt0LBbG-48Qba5Kmo

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 tanship-payai-browser-to-markdown-8359867e -d '<json body>'
```

Example prompt: Can you fetch the page at https://example.com/article and give me its content as Markdown so I can paste it into my notes?

## When to prefer this

Use this endpoint when you need to fetch a webpage that requires JavaScript execution (SPAs, React/Vue apps) and want the output in Markdown format suitable for LLM consumption. Prefer this over plain HTTP fetch tools when the target page is dynamically rendered. The $0.005 USDC per-call micropayment model via x402 makes it suitable for pay-per-use agent pipelines without subscriptions.

## Known failure modes

- Page not reachable or returns non-200 status — endpoint may return an error or empty markdown
- JavaScript-heavy SPAs with lazy loading may miss content loaded after initial render
- Payment failure or insufficient USDC balance causes a 402 response before any content is returned
- Malformed input schema (missing required fields like type, method, bodyType) results in a 400 validation error
- Anti-bot measures on the target site may block headless browser access

## How this service works

Payment-gated AI and browser automation API using the x402 protocol. All /v1/* endpoints require USDC payment on Base (eip155:8453) via x402 v2 exact scheme.

## Output

Returns the rendered webpage content as Markdown text. The browser fully executes JavaScript before extracting content, so the output reflects the page as a user would see it, including dynamically loaded sections.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tanship-payai-browser-to-markdown-8359867e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.tanship.dev](https://www.zero.xyz/host/x402.tanship.dev/llms.txt)
