# Machine Shop – HTML Structured Data Extractor

> Machine Shop – HTML Structured Data Extractor is a paid API for AI agents from api.pay-forge.online, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-20).

Extracts and returns all structured data (e.g. JSON-LD, Microdata, RDFa) embedded in a supplied HTML document as typed, validated JSON objects.

## Facts

- Endpoint: POST https://api.pay-forge.online/v1/html-structured-data?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/machine-shop-html-structured-data-extractor-71ae1d5c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ek7kjY3IGCjFp7FzlaI2x

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 machine-shop-html-structured-data-extractor-71ae1d5c -d '<json body>'
```

Example prompt: Can you pull out all the structured data embedded in this HTML — things like JSON-LD, schema.org types, and any other machine-readable metadata? Here's the HTML: <paste HTML here>.

## When to prefer this

Choose this endpoint when you have raw HTML content in hand and need to extract, validate, or inspect embedded structured data (JSON-LD, Microdata, RDFa, schema.org) without making a live web request. It is ideal for offline or cached HTML analysis, SEO audits, x402 quote inspection, and evidence gathering from document snapshots. It does not perform live web fetching, so pair it with a separate scraping step if you need to retrieve the HTML first.

## Known failure modes

- HTML string exceeds 50,000 character limit — request rejected
- Malformed or unparseable HTML yields empty structured_data array
- No structured data present in document returns empty array
- Invalid base_url format causes parsing errors for relative references
- Oversized payload triggers HTTP 413 response

## How this service works

Turn Apify product scrape results into safe catalog updates with Catalog Update Gate. Find evidence in supplied documents, compare snapshots, extract typed JSON fields, inspect x402 quotes and assess API migrations. Preview inputs, evidence and cost for free. No live web search, scheduled monitoring or third-party purchasing.

## Output

Returns an array of structured data objects found in the HTML, each with a 'valid' boolean flag and a 'value' object containing the parsed typed fields (e.g. {'@type': 'Article', 'headline': '...'}). Multiple schema types (JSON-LD, Microdata, RDFa) may be returned in a single response.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "html": {
   "type": "string",
   "title": "Html",
   "maxLength": 50000
  },
  "base_url": {
   "type": "string",
   "title": "Base Url",
   "default": "",
   "maxLength": 2048
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "structured_data": [
   {
    "valid": true,
    "value": {
     "@type": "Article"
    }
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/machine-shop-html-structured-data-extractor-71ae1d5c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.pay-forge.online](https://www.zero.xyz/host/api.pay-forge.online/llms.txt)
