$ man url-expander
/url-expander
PRICE / CALL
$0.02
USDC · base mainnet · scheme: exact
METHOD
POST
CLUSTER
webprobeCATEGORY
uncategorized
STATUS
● live
NAME
url-expander — url expander api / shortlink resolver / redirect-chain tracer
synonym alias of expand-url — reuses the canonical handler.
SYNOPSIS
POST https://x402.agentutility.ai/url-expander
Content-Type: application/json
X-PAYMENT: <signed-transferWithAuthorization>
{ ... }↳ first call →
402 Payment Required. Sign USDCtransferWithAuthorization, retry with theX-PAYMENT header.DESCRIPTION
URL expander API / shortlink resolver / redirect-chain tracer. Same expand-url backend, discoverable for agents expanding bit.ly, t.co, lnkd.in, goo.gl, tinyurl, and other redirects into final landing URLs with hop-by-hop status, Location, content-type, and timing details.
INPUT — request schema
| property | type | description | req? |
|---|---|---|---|
| url | string | Starting URL (typically a shortlink). Must be http(s). | required |
| max_hops | number | Maximum redirect hops to follow. 1-20. Default 10. | optional |
| user_agent | string | Optional User-Agent header to send (some shorteners gate by UA). Default is a generic browser UA. | optional |
OUTPUT — response shape
| field | type | description |
|---|---|---|
| initial_url | string | — |
| final_url | string | — |
| hop_count | string | — |
EXAMPLES — two ways to call
EXAMPLE 1 · curl
curl -X POST https://x402.agentutility.ai/url-expander \
-H 'Content-Type: application/json' \
-d '{ }'first response =
402 Payment Required with payment requirements; sign + retry with X-PAYMENT.EXAMPLE 2 · mcp
# Install the MCP package for this endpoint's cluster npx -y @agentutility/mcp-<cluster> # Required: EVM private key with USDC on Base export X402_PRIVATE_KEY=0x... # Then call the url-expander tool from your MCP-aware agent.
MCP server handles payment automatically — your coding agent just calls the tool by name.
METADATA
- tags
- web-probeurlexpanderurl-expander
- methods
- POST
- cluster
- webprobe
- price
- $0.02 USDC per call
ADJACENT — other endpoints in webprobe
| endpoint | description | price |
|---|---|---|
| archive-snapshot | Archive snapshot API / web archive lookup / Wayback Machine API / historical webpage snapshot / archived URL finder. | $0.02 |
| archive-snapshot-api | Archive snapshot API / Wayback Machine snapshot lookup / historical URL capture. | $0.02 |
| archive-url | Archive URL lookup / archive snapshot finder / web archive URL builder / Wayback Machine snapshot API. | $0.02 |
| brand-domain-check | Brand domain check API / startup domain diligence / company-name domain screen. | $0.02 |
| brand-watch-domain-risk | Brand watch domain risk API / lookalike-domain RDAP triage / trademark monitoring support. | $0.02 |
| creator-domain-check | Creator domain check API / newsletter domain age / personal brand domain diligence. | $0.02 |
| dmarc-check | DMARC + SPF + DKIM email-authentication checker / mail-auth posture audit / spoofing-resistance grader / phishing-readiness scanner / dom… | $0.02 |
| dns-lookup | DNS lookup / DNS resolver / dig replacement / nslookup API / DoH proxy / authoritative-record fetch / MX checker / SPF + DMARC TXT inspec… | $0.02 |
SEE ALSO