HTTP Redirect Chain & TLS Upgrade Tracer
Trace HTTP 301/302/307/308 redirect hops, final canonical URL, HTTP-to-HTTPS upgrade status, and HSTS header with hop-by-hop SSRF protection.
curl -sG "https://api.agentapigate.ai/v1/intel/http/redirect_chain" \ --data-urlencode "url=http://github.com" \ --data-urlencode "max_hops=10" \ --data-urlencode "format=md" \ -H "Authorization: Bearer aag_live_YOUR_KEY" \ -H "X-AAG-Max-Cost: 0.0100"
# HTTP Redirect Chain & TLS Upgrade Tracer (`intel.http.redirect_chain`) **start_url**: http://github.com · **final_url**: https://github.com/ · **hop_count**: 1 · **final_status**: 200 · **tls_upgraded**: true ## hops - [1] hop: 1, url: http://github.com/, status: 301, location: https://github.com/ - [2] hop: 2, url: https://github.com/, status: 200
Endpoint Parameters, Cost & Token Economy Reference
Endpoint ID:intel.http.redirect_chain · Method: GET| Parameter | Type | Req | Sample / Default | Description |
|---|---|---|---|---|
| url | string | required | http://github.com | Starting URL (e.g. http://github.com) |
| max_hops | number | optional | 10 | Max redirect hops to follow (1-10) |
| 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.0015 / call | $0/mo · Balance never expires |
| Remote MCP Tool | intel_http_redirect_chain | OAuth 2.1 Hub & /mcp/intel |
| x402 Base USDC | $0.0020 / call | Zero-signup USDC enabled |
| P50 Latency | 21 ms | $0 billed on empty or 4xx/5xx |
| Token Economy | 200t → 98t (-56%) | Partner credit: eligible |
More Dev, AI & Security Real-Time APIs
All-in-one domain intelligence combining RDAP registrar/expiry data, Cloudflare DoH A/MX/TXT/NS records, and live TLS SAN certificate inspection.
Use when you need commercial-grade passive IP reconnaissance: RIR RDAP CIDR/organization/abuse contacts, Cloudflare DoH reverse PTR hostnames, and port-443 TLS SAN inspection.
Resolve country, city, coordinates, timezone, ASN, and ISP organization for any public IP address.
Use when you need Common Vulnerabilities and Exposures (CVEs) from NIST NVD 2.0 and OSV.dev enriched with FIRST.org EPSS 30-day exploitation probability.
Search 250M+ peer-reviewed and preprint research papers across OpenAlex and arXiv with citation counts, DOIs, and abstracts.
Query recruiting and completed clinical trials by condition, drug intervention, sponsor, and phase from ClinicalTrials.gov v2.
Frequently Asked Questions
How do I call HTTP Redirect Chain & TLS Upgrade Tracer (intel.http.redirect_chain) over REST and Remote MCP?
Send GET requests to https://api.agentapigate.ai/v1/intel/http/redirect_chain with an aag_live_* / aag_agent_* Bearer key, pay per call via x402 USDC, or call MCP tool intel_http_redirect_chain on https://mcp.agentapigate.ai/mcp.
What does intel.http.redirect_chain cost per call and are failed calls billed?
Each successful HTTP 200 response costs $0.0015 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 intel.http.redirect_chain?
Passing ?format=md transforms the response into normalized Markdown (~98 tokens vs ~200 raw tokens, saving 56% of LLM context budget) while preserving structured JSON via ?format=json.
Can I restrict an AI agent key to only intel endpoints with a daily USD cap?
Yes. Create a scoped aag_agent_* sub-key via POST /v1/keys with allowed_packs: ["intel"], optional allowed_endpoints: ["intel.http.redirect_chain"], read_only: true, and a hard daily_cap_usd enforced atomically in Redis.