80trust / 100
Web Metadata
by 1gateway in News & content
x402 APIPassing, checked 3 h ago
Use when an agent needs to know what a URL is before reading it, or to build a link preview or citation. Input: url (public http/https). Output: JSON with final URL after redirects, HTTP status, content type, title, description, site name, language, canonical, preview image, favicon, Open Graph and Twitter tags, RSS/Atom feeds, hreflang alternates, JSON-LD types, robots, first H1. No JavaScript is run. Example: ?url=https://developer.mozilla.org/en-US/
GET https://1gateway.dev/v1/web/metadata
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 42 ms typical, 42 ms slowest 5%
- Last check
- 3 h ago
- Next check
- any minute now
How to call it
# See the payment challenge (nothing is charged)
curl -i -X GET "https://1gateway.dev/v1/web/metadata?url=https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2F"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.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2F1gateway.dev%2Fv1%2Fweb%2Fmetadata
const res = await pay("https://1gateway.dev/v1/web/metadata?url=https%3A%2F%2Fdeveloper.mozilla.org%2Fen-US%2F");
console.log(await res.json());Example input
{
"url": "https://developer.mozilla.org/en-US/"
}Example output
{
"alternates": [],
"author": null,
"cache": "miss",
"canonical": "https://developer.mozilla.org/en-US/",
"contentType": "text/html",
"description": "The MDN Web Docs site provides information about Open Web technologies including HTML, CSS, and APIs for both Web sites and progressive web apps.",
"favicon": "https://developer.mozilla.org/favicon.ico",
"feeds": [
{
"href": "https://developer.mozilla.org/en-US/blog/rss.xml",
"title": "MDN Blog RSS Feed",
"type": "application/rss+xml"
}
],
"finalUrl": "https://developer.mozilla.org/en-US/",
"generator": null,
"headingH1": "Resources for Developers, by Developers",
"icons": [
{
"href": "https://developer.mozilla.org/favicon.ico",
"rel": "icon",
"sizes": "32x32"
}
],
"image": "https://developer.mozilla.org/mdn-social-image.46ac2375.png",
"jsonLdTypes": [],
"keywords": [],
"lang": "en-US",
"modifiedTime": null,
"notes": [
"Parsed from the first 512 KiB of the page; JavaScript is not executed."
],
"openGraph": {
"description": "The MDN Web Docs site provides information about Open Web technologies including HTML, CSS, and APIs for both Web sites and progressive web apps.",
"locale": "en_US",
"title": "MDN Web Docs",
"url": "https://developer.mozilla.org/en-US/"
},
"publishedTime": null,
"redirects": [],
"robots": null,
"siteName": "MDN Web Docs",
"status": 200,
"themeColor": null,
"title": "MDN Web Docs",
"truncated": false,
"twitter": {
"card": "summary",
"creator": "MozDevNet"
},
"type": null,
"url": "https://developer.mozilla.org/en-US/"
}Security scan
- No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 42 ms | $0.002 |