81trust / 100
Url Context
by Agent Mercantile in Search & web
x402 APIPassing, checked 3 h ago
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.
POST https://api.agentmercantile.com/v1/url-context
Last 30 days
All checks passedSome failedAll failedNot checked
- Uptime
- 100%
- Response time
- 269 ms typical, 269 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 POST "https://api.agentmercantile.com/v1/url-context" \
-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.03:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.agentmercantile.com%2Fv1%2Furl-context
const res = await pay("https://api.agentmercantile.com/v1/url-context", {
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
{
"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": []
}
}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 | 269 ms | $0.01 |