# SocialFetch Web HTML Fetcher

> SocialFetch Web HTML Fetcher is a paid API for AI agents from api.socialfetch.dev, paid per call via x402, $0.014/call, status unknown (last checked 2026-09-14).

Fetches and returns cleaned HTML content for any given web page URL.

## Facts

- Endpoint: GET https://api.socialfetch.dev/v1/web/html
- Price: $0.014/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/socialfetch-web-html-fetcher-d12172ba
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DuG24I2as88x6fkSDtHv1

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 socialfetch-web-html-fetcher-d12172ba
```

Example prompt: Can you fetch the cleaned HTML for this page — https://www.example.com/articles/latest — so I can parse its content?

## When to prefer this

Use this endpoint when you need the cleaned HTML source of any publicly accessible web page and want a ready-to-parse result without handling raw HTTP requests yourself. Prefer it over general-purpose web browsing tools when you specifically need HTML structure rather than rendered text or screenshots.

## Known failure modes

- Invalid or malformed URL returns a validation error
- URL is unreachable or returns a non-200 HTTP status
- Page requires JavaScript rendering and static fetch returns incomplete HTML
- Access blocked by target site's bot protection or firewall
- URL exceeds maximum length of 2083 characters

## How this service works

Fetch cleaned HTML for a web page URL.

## Output

Returns the cleaned HTML markup of the requested web page, with extraneous or noisy elements removed, suitable for parsing or further processing.

## 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"
     ],
     "properties": {
      "url": {
       "type": "string",
       "maxLength": 2083,
       "minLength": 1,
       "description": "Web page URL to fetch."
      },
      "waitFor": {
       "type": "string",
       "maxLength": 200,
       "description": "Wait for a CSS selector before extraction. Must be prefixed with \"css:\" (e.g. css:main). JavaScript wait conditions are not supported."
      },
      "scanFullPage": {
       "anyOf": [
        {
         "type": "boolean"
        },
        {
         "enum": [
          "0",
          "1",
          "true",
          "false"
         ],
         "type": "string"
        }
       ],
       "description": "When true, scroll the page to load dynamically appended content (infinite scroll). Default false."
      }
     }
    }
   },
   "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/socialfetch-web-html-fetcher-d12172ba/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.socialfetch.dev](https://www.zero.xyz/host/api.socialfetch.dev/llms.txt)
