81trust / 100

Web Extract

by API Acre in Search & web

x402 APIPassing, checked 6 min ago

Convert and extract a public website URL into clean Markdown or readable text plus bounded structured links, canonical and heading signals, Schema.org types, redirect evidence, content hashes, and response provenance for RAG, research, or agent context.

POST https://apiacre.com/v1/web/extract

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
184 ms typical, 188 ms slowest 5%
Last check
6 min ago
Next check
in 26 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://apiacre.com/v1/web/extract" \
  -H "content-type: application/json" \
  -d '{"url":"https://example.com"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapiacre.com%2Fv1%2Fweb%2Fextract
const res = await pay("https://apiacre.com/v1/web/extract", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"url":"https://example.com"}),
});
console.log(await res.json());

Example input

{
  "url": "https://example.com"
}

Example output

{
  "data": {
    "characters": 167,
    "content": "# Example Domain\n\nThis domain is for use in documentation examples without ne...",
    "contentSha256": "5945db6fd8137aa377638814ca9bb1ac0a663fd90a97f11f86c3f5c09cfb40e3",
    "description": null,
    "extraction": {
      "javascriptRendered": false,
      "limitations": [
        "Client-rendered content is not executed.",
        "Markdown preserves readable block text, not the complete page layout.",
        "Structured links are bounded and exclude non-HTTP(S) targets."
      ],
      "linksPreserved": true,
      "method": "bounded HTML DOM extraction",
      "version": "apiacre-content-extract/3"
    },
    "format": "markdown",
    "language": "en",
    "links": {
      "detected": 1,
      "external": 1,
      "internal": 0,
      "returned": 1,
      "truncated": false
    },
    "pageSignals": {
      "alternateLanguageCount": 0,
      "canonicalUrl": null,
      "feedCount": 0,
      "headings": {
        "h1": [
          "Example Domain"
        ],
        "h2Count": 0,
        "h3Count": 0
      },
      "structuredData": {
        "blocks": 0,
        "invalidBlocks": 0,
        "truncated": false,
        "types": [],
        "validBlocks": 0
      }
    },
    "redirected": false,
    "requestedUrl": "https://example.com/",
    "response": {
      "bodySha256": "ff67a9d764d6a2367a187734e697f6a53217db9a21c101d410a113ca871a299d",
      "bytes": 559,
      "contentType": "text/html",
      "elapsedMs": 36,
      "statusCode": 200
    },
    "sha256": "5945db6fd8137aa377638814ca9bb1ac0a663fd90a97f11f86c3f5c09cfb40e3",
    "title": "Example Domain",
    "url": "https://example.com/",
    "words": 19
  },
  "meta": {
    "cached": false,
    "duration_ms": 42,
    "next_actions": [],
    "sources": [],
    "warnings": []
  },
  "request_id": "018f1f54-7f38-7ba2-8dc3-5f90272d9f1a",
  "service": "web.extract",
  "version": "1"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
6 min agoPassed402197 ms$0.01
5 h agoPassed402180 ms$0.01
8 h agoPassed402188 ms$0.01
11 h agoPassed402184 ms$0.01
16 h agoPassed40273 ms$0.01