AgentAPIGate
Back to Catalog
GET /v1/social/linkinbio/unwrap_linkPack: social·MCP Tool: social_linkinbio_unwrap_link

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.

API Key Price:$0.0010 / call
x402 Base USDC:$0.0020 / call
Partner Credit:eligible
1. Parameters & Controls
Shortened or affiliate URL to unwrap (e.g. https://aka.ms/vscode)
Maximum HTTP 3xx redirect hops to trace (1-12)
Get $0.25 Free Key →
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"
1-Click Agent IDE Install
Add to Cursor (1-Click OAuth)
-62% tokens
# 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
ParameterTypeReqSample / DefaultDescription
urlstringrequiredhttps://aka.ms/vscodeShortened or affiliate URL to unwrap (e.g. https://aka.ms/vscode)
max_hopsnumberoptional8Maximum HTTP 3xx redirect hops to trace (1-12)
formatenumoptionaljson | compact | mdResponse format; compact or md cuts LLM tokens.
dry_run0 | 1optional1Returns exact pre-flight price quote & validation at $0.00 cost.
Access Rail / MetricValuePolicy & SLA
API Key (PAYG)$0.0010 / call$0/mo · Balance never expires
Remote MCP Toolsocial_linkinbio_unwrap_linkOAuth 2.1 Hub & /mcp/social
x402 Base USDC$0.0020 / callZero-signup USDC enabled
P50 Latency247 ms$0 billed on empty or 4xx/5xx
Token Economy358t → 145t (-62%)Partner credit: eligible

More social.linkinbio Sibling Endpoints

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.