# Neuroterminal Web Extraction — CSS Selector Scraper

> Neuroterminal Web Extraction — CSS Selector Scraper is a paid API for AI agents from api.neuroterminal.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Fetches a URL and extracts text or attribute values from HTML elements matching given CSS selectors, paid per-call in USDC via x402.

## Facts

- Endpoint: GET https://api.neuroterminal.xyz/v1/extract
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/neuroterminal-web-extraction-css-selector-scraper-c5c55430
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_S4F4bilIl1y6nkvUNutnh

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 neuroterminal-web-extraction-css-selector-scraper-c5c55430
```

Example prompt: Fetch the page at https://shop.example.com/product/42 and extract the text from the .price and .product-title elements so I can see the current price and name.

## When to prefer this

Choose this endpoint when you need to extract specific fields from a known webpage using CSS selectors and want a pay-per-call model with no API key setup. It is ideal for targeted, structured extraction (prices, titles, metadata) from static or server-rendered HTML pages. Prefer it over full-page scraping services when you already know the selector paths and want lightweight, low-cost per-call access settled in USDC on Base.

## Known failure modes

- Target URL is unreachable or returns a non-200 status — extraction returns empty or error
- CSS selectors do not match any elements on the page — arrays in response will be empty
- Page requires JavaScript rendering — static HTTP fetch will miss dynamically loaded content
- Payment via x402/USDC fails or is insufficient — 402 response, extraction not performed
- Malformed or missing required query parameters (url, selectors) — request rejected

## How this service works

Paid HTTP endpoints for AI agents, settled in USDC on Base via the x402 protocol. No account, no API key — pay per call.

## Output

A JSON object keyed by each CSS selector provided, where each value is an array of objects containing the extracted text (and optionally an attribute value) from all matching elements on the page. Example: { ".price": [{"text": "$49.00"}], ".title": [{"text": "Product name"}] }

## 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",
     "required": [
      "url",
      "selectors"
     ],
     "properties": {
      "url": {
       "type": "string"
      },
      "attr": {
       "type": "string"
      },
      "selectors": {
       "type": "string",
       "description": "comma-separated CSS selectors"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "results": {
   ".price": [
    {
     "text": "$49.00"
    }
   ],
   ".title": [
    {
     "text": "Product name"
    }
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/neuroterminal-web-extraction-css-selector-scraper-c5c55430/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.neuroterminal.xyz](https://www.zero.xyz/host/api.neuroterminal.xyz/llms.txt)
