Short-Link & Affiliate Redirect Chain Unwrapper
Safely follow bit.ly, t.co, aka.ms, amzn.to, and affiliate redirect chains hop-by-hop with post-DNS SSRF protection and UTM parameter stripping.
curl -sG "https://api.agentapigate.ai/v1/social/linkinbio/unwrap_link" \ --data-urlencode "url=https://aka.ms/vscode" \ --data-urlencode "max_hops=8" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# Short-Link & Affiliate Redirect Chain Unwrapper (`social.linkinbio.unwrap_link`) **input_url**: https://aka.ms/vscode · **final_url**: https://code.visualstudio.com/?WT.mc_id=devcloud-00000-cxa · **clean_final_url**: https://code.visualstudio.com/ · **final_domain**: code.visualstudio.com · **hop_count**: 1 ## hops - [1] step: 1, url: https://aka.ms/vscode, status: 301, location: https://code.visualstudio.com/?WT.mc_id=devcloud-00000-cxa - [2] step: 2, url: https://code.visualstudio.com/?WT.mc_id=devcloud-00000-cxa, status: 200
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:social.linkinbio.unwrap_link · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| url | string | required | https://aka.ms/vscode | Shortened or affiliate URL to unwrap (e.g. https://aka.ms/vscode) |
| max_hops | number | optional | 8 | Maximum HTTP 3xx redirect hops to trace (1-12) |
| format | enum | optional | json | compact | md | Response format; compact or md cuts LLM tokens. |
| dry_run | 0 | 1 | optional | 1 | Returns exact pre-flight price quote & validation at $0.00 cost. |
| Access Rail / Metric | Value | Policy & SLA |
|---|---|---|
| API Key (PAYG) | $0.0010 / call | $0/mo · Balance never expires |
| Remote MCP Tool | social_linkinbio_unwrap_link | OAuth 2.1 Hub & /mcp/social |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 247 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 358t → 145t (-62%) | Partner credit: eligible |
More social.linkinbio Sibling Endpoints
Detect Linktree, Beacons, Stan Store, Bento, Komi, Campsite, Bio.site, or custom-domain creator link hubs with handle and outbound link count.
Extract creator profile metadata, outbound links, social handles, and affiliate network tags from Linktree, Beacons, Stan Store, and bio pages.
Frequently Asked Questions
How do I call Short-Link & Affiliate Redirect Chain Unwrapper (social.linkinbio.unwrap_link) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/social/linkinbio/unwrap_link with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool social_linkinbio_unwrap_link on https://mcp.agentapigate.ai/mcp.
What does social.linkinbio.unwrap_link cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.001 USD from a non-expiring PAYG balance ($0/month minimum). Upstream errors, empty responses, and ?dry_run=1 pre-flight quotes always bill $0.00.
How does ?format=md or ?format=compact optimize AI agent token usage on social.linkinbio.unwrap_link?
Passing ?format=md transforms the response into normalized Markdown (~145 tokens vs ~358 raw tokens, saving 62% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only social endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["social"], optional allowed_endpoints: ["social.linkinbio.unwrap_link"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.