81trust / 100

Web Jsonld

by api.x-402.online in Search & web

x402 APIPassing, checked 4 min ago

Read the structured data a page declares about itself: products, articles, events, organizations. The structured data a page declares about itself: every JSON-LD block parsed, the schema.org types found, and the Open Graph tags. Fetched through a residential IP with a real browser. No model in the path. Bo…

POST https://api.x-402.online/v1/web/jsonld

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
143 ms typical, 143 ms slowest 5%
Last check
4 min ago
Next check
in 27 min

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://api.x-402.online/v1/web/jsonld" \
  -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%2Fapi.x-402.online%2Fv1%2Fweb%2Fjsonld
const res = await pay("https://api.x-402.online/v1/web/jsonld", {
  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

{
  "jsonld": [
    {
      "@type": "Product",
      "name": "…"
    }
  ],
  "jsonld_count": 1,
  "open_graph": {
    "og:title": "…"
  },
  "types": [
    "Product"
  ]
}

Security scan

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

Recent checks

WhenResultHTTPTimePrice
4 min agoPassed402143 ms$0.005
5 h agoPassed402149 ms$0.005