A

Agent Mercantile · URL Context

by Agent Mercantile

POSTBase

$0.01

per call · USD Coin on Base

Fetch deterministic, token-efficient context from one public HTTPS URL: canonical URL, title/description, headings, clean main content, structured-data types, freshness observations, evidence, and limitations. Call when you need a bounded JSON reading of one public page without a browser, login, crawl, or LLM.

Endpoint

POST https://api.agentmercantile.com/v1/url-context

5

Calls / 30d

4

Unique payers / 30d

Sep 8

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://api.agentmercantile.com/v1/url-context", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "url": "https://example.com/"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://api.agentmercantile.com/v1/url-context" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "checked_at": "2026-08-19T00:00:00.000Z",
  "content": {
    "approx_tokens": 39,
    "characters": 155,
    "extraction_basis": "body-heuristic",
    "text": "This domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.",
    "token_estimate_method": "ceil(characters/4)",
    "truncated": false
  },
  "evidence": {
    "final_response_headers": {
      "content-type": "text/html; charset=UTF-8"
    },
    "notes": []
  },
  "final_url": "https://example.com/",
  "freshness": {
    "observations": []
  },
  "http": {
    "content_type": "text/html; charset=UTF-8",
    "redirect_count": 0,
    "status": 200
  },
  "limitations": [],
  "metadata": {
    "canonical": "https://example.com/",
    "description": null,
    "title": "Example Domain"
  },
  "methodology_version": "url-context-0.1.0",
  "outline": [
    {
      "level": 1,
      "text": "Example Domain"
    }
  ],
  "requested_url": "https://example.com/",
  "size": {
    "normalized_content_characters": 155,
    "output_json_bytes": 1400,
    "source_bytes_read": 1256
  },
  "status": "OK",
  "structured_data": {
    "json_ld_types": []
  }
}

Payment details

Pay to0xdb7b2b54f80479826222749a2ea73a8acc306e1e
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase
Schemesexact

Is this your API?

Pin it to the top of Search & Web and the homepage with a featured placement.

Get featured →

More from Agent Mercantile & similar services