Page metadata

$0.002 per call · USDC via x402 · GET /api/meta

Fetch 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.

Category: Web & documents · Tags: metadata opengraph seo

TRY IN PLAYGROUND →

Parameters

NameTypeRequiredDescription
urlstringyesPublic 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"
  }
}
FieldTypeAlways presentIn the example
urlstringyeshttps://agent402.tools/
titlestringyesAgent402: 500+ pay-per-call tools for AI agents over x402 and MPP
descriptionstringyesAgentic Finance for AI agents: 500+ pay-per-call tools, metered models and fi...
canonicalstringyeshttps://agent402.tools/
ogobjectyes3 fields: type, site_name, title
twitterobjectyes1 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

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:

Related tools

HTML meta (from string)

FREE w/ compute · or $0.001 · POST /api/html-meta

Extract <title>, <meta description>, OpenGraph/Twitter cards, canonical URL, and JSON-LD blocks from an HTML string. Dis…

Farcaster channel details

$0.003 · POST /api/fc-channel

Details for one Farcaster channel by id (e.g. base) or FIP-2 parent URL: name, description, follower and member counts, …

Image EXIF

$0.003 · POST /api/image-exif

Extract EXIF metadata from an image (camera make/model, timestamps, exposure, orientation, GPS). Send a public image URL…

Media info (ffprobe)

$0.005 · POST /api/media-info

Inspect any audio/video URL with ffprobe: container, duration, bitrate, and per-stream codec details (sample rate/channe…

PDF info

$0.001 · POST /api/pdf-info

Inspect a PDF without downloading the whole thing into your model: page count, title, author, subject, creator, producer…

Site map (URL discovery)

$0.005 · POST /api/site-map

Discover a website's URLs in one call: reads robots.txt, its declared sitemap(s) (sitemap indexes and gzipped sitemaps i…