Page metadata
GET /api/metaFetch page metadata for a URL: title, description, OpenGraph, Twitter cards, canonical URL, favicon. Send GET /api/meta with the required field url and pay $0.002 per call over x402 or MPP (there is no free tier). It returns a JSON object with url, title, description, canonical, og and 1 more.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
url | string | yes | Public http(s) URL Also accepted as link, uri, href, page. |
Example request
curl -i "https://agent402.tools/api/meta?url=https%3A%2F%2Fagent402.tools"
Without payment this returns HTTP 402 Payment Required with the exact price for meta; any x402 v2 or MPP client pays it and retries.
Example response
{
"url": "https://agent402.tools/",
"title": "Agent402: 500+ pay-per-call tools for AI agents over x402 and MPP",
"description": "Agentic Finance for AI agents: 500+ pay-per-call tools, metered models and finished reports over x402 and MPP, or by card.",
"canonical": "https://agent402.tools/",
"og": {
"type": "website",
"site_name": "Agent402",
"title": "Agent402: 500+ pay-per-call tools for AI agents over x402 and MPP"
},
"twitter": {
"card": "summary_large_image"
}
}
| Field | Type | Always present | In the example |
|---|---|---|---|
url | string | yes | https://agent402.tools/ |
title | string | yes | Agent402: 500+ pay-per-call tools for AI agents over x402 and MPP |
description | string | yes | Agentic Finance for AI agents: 500+ pay-per-call tools, metered models and fi... |
canonical | string | yes | https://agent402.tools/ |
og | object | yes | 3 fields: type, site_name, title |
twitter | object | yes | 1 field: card |
From an MCP client
catalog.call {
"slug": "meta",
"params": {
"url": "https://agent402.tools"
}
}
The hosted connector at https://agent402.tools/mcp needs a payment for meta; the stdio package pays it from a wallet or from AGENT402_CREDITS_KEY. Local install: npx -y agent402-mcp.
Errors and behavior
urlis required. An input the tool rejects returns an HTTP 4xx whose body carrieserror,tool,expected,requiredandexample, so the caller can correct it.- A paid call that ends in any status of 400 or above is not charged over x402, MPP or a prepaid credits key: settlement is cancelled when the tool fails. The exception is a Tempo push credential, a transfer the buyer sent before the call: it settles before the tool runs, so if the tool then fails the payment is recorded as a refund owed to the paying wallet.
- Wallet-only: this tool reaches the network or stored state, so it has no proof-of-work tier. A prepaid card-credits key issued earlier (
Authorization: Bearer a402_...) also pays it. - A
POSTwith a JSON body to /api/meta is served as this GET, with the body as the input. - An
Idempotency-Keyheader makes a retried paid call replay the first 200 instead of charging again (an answer larger than 1 MB is not replayed).
Paid call (JavaScript agent)
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
const client = new x402Client();
client.setSpendControls?.(false); // keep your own spending ceiling in code
registerExactEvmScheme(client, { signer: privateKeyToAccount(KEY) });
const payFetch = wrapFetchWithPayment(fetch, client);
const res = await payFetch("https://agent402.tools/api/meta?url=https%3A%2F%2Fagent402.tools");
Part of these workflows
Page metadata is one step in these 6 skill packs, each sold as a single call:
- Content extraction - Turn arbitrary URLs and PDFs into clean structured text - articles, page metadata, PDF pages, OCR'd images, browser-rendered SPAs.
- Link preview card - The 'turn a URL into a card-shaped preview' workflow. Pull OpenGraph/Twitter card metadata, fetch the article body as a description fallback, normalize the og:image into a standard 1200×630 social card variant and a 400×400 square thumbnail, and extract URL/mention entities from the body for related-link surfacing. Five tools, one structured card payload ready for chat embeds, social shares, or RSS-to-card pipelines.
- Technical SEO audit - Can search engines and AI crawlers actually index this page? One pass over reachability, TLS, robots policy, sitemap health, meta/OpenGraph tags, and the on-page link graph.
- Competitor scan - What's a competitor using? Tech stack, HTTP headers, WHOIS, and page metadata in one call.
- Page audit - Full page SEO + security audit: content extraction, metadata, HTTP headers, robots policy, and sitemap health in one call.
- URL inspector - Quick URL health and metadata check - parse the URL structure, verify reachability, and pull page metadata in one pass.
Related tools
HTML meta (from string)
POST /api/html-metaExtract <title>, <meta description>, OpenGraph/Twitter cards, canonical URL, and JSON-LD blocks from an HTML string. Dis…
Farcaster channel details
POST /api/fc-channelDetails for one Farcaster channel by id (e.g. base) or FIP-2 parent URL: name, description, follower and member counts, …
Image EXIF
POST /api/image-exifExtract EXIF metadata from an image (camera make/model, timestamps, exposure, orientation, GPS). Send a public image URL…
Media info (ffprobe)
POST /api/media-infoInspect any audio/video URL with ffprobe: container, duration, bitrate, and per-stream codec details (sample rate/channe…
PDF info
POST /api/pdf-infoInspect a PDF without downloading the whole thing into your model: page count, title, author, subject, creator, producer…
Site map (URL discovery)
POST /api/site-mapDiscover a website's URLs in one call: reads robots.txt, its declared sitemap(s) (sitemap indexes and gzipped sitemaps i…