What Is URL Inspection?
URL inspection parses, normalizes, and analyzes destinations — status codes, redirects, and metadata — for link health and agent destination controls.
URL inspection is the practice of parsing, normalizing, and analyzing a destination URL through controlled HTTP requests — without treating the link as safe or malicious by default. Inspectors report observable web behavior: HTTP status codes, redirect chains, final resolved URL, and page metadata such as title tags. They help engineering teams validate links before agents fetch them, debug broken redirects, and enrich security workflows with structured destination facts.
URL inspection is not the same as malware scanning, phishing classification, or sandboxed browser execution. Those require different tooling and threat intelligence. This guide defines what inspection establishes, what it cannot establish, and where it fits in AI agent and SaaS architectures.
Try structured inspection via the URL Inspector API on RapidAPI.
What URL inspection answers
Given a publicly reachable URL, inspection typically answers:
- Does the URL resolve? — TCP/TLS/HTTP success or failure
- What HTTP status was returned? — 200, 301, 404, 403, 5xx
- What redirect chain occurred? — hop-by-hop locations and status codes
- What is the final URL after redirects? — normalized destination
- What metadata is available at HTTP level? — HTML
<title>, selected meta tags where implemented
These are factual protocol observations, not trust verdicts. A 200 response does not mean a page is benign. A 404 does not mean a domain is fraudulent.
What URL inspection does not answer
Do not expect inspection alone to determine:
- Whether a page contains malware or exploit kits
- Whether content is a phishing credential harvester
- Whether JavaScript rendered client-side content matches initial HTML
- Whether a domain's reputation is good or bad globally
- Whether an agent should exfiltrate data to the destination
Malware and phishing programs combine URL signals with content analysis, blocklists, user reporting, and sandbox execution. Inspection provides pre-flight destination context — useful input to policy, not a substitute for full threat analysis.
Core pipeline stages
Raw URL string
↓
Parse + normalize (scheme, host, path, punycode)
↓
Policy pre-checks (scheme allowlist, block private IPs)
↓
HTTP HEAD/GET with redirect following (bounded hops)
↓
Collect status, redirects[], final_url, metadata
↓
Return structured JSON to caller
Normalization catches common bypass attempts — mixed case hosts, userinfo smuggling, ambiguous punycode — before any network call. Policy pre-checks belong before fetch in agent systems to prevent SSRF to internal services.
HTTP status and link health
Status codes drive link monitoring and CMS workflows:
| Status | Typical meaning for inspection |
|---|---|
| 200 | Resource responded OK at HTTP level |
| 301/302/307/308 | Redirect; follow and record chain |
| 404 | Not found — broken link |
| 403 | Forbidden — may block automated clients |
| 5xx | Server error — transient or misconfiguration |
Campaign QA and affiliate tooling use inspection to catch broken tracking links before publish. Security tooling uses status and redirect anomalies as signals combined with other controls.
Redirect analysis
Redirects are high-value for security and agent policy:
- Open redirect chains — short URL → multiple hops → unexpected domain
- Scheme downgrade attempts — https → http (policy may block)
- Cross-domain hops — marketing domain → login lookalike (human review trigger)
- Loop detection — infinite redirect protection required
Agent allowlists must evaluate final URL after redirects, not only the model-proposed string. Re-inspect each hop when policy requires per-hop validation.
See How to Validate URLs Before an AI Agent Opens Them and URL Allowlist vs Domain Allowlist.
Metadata extraction
HTTP-level metadata — primarily document title and common meta tags — supports triage without full page rendering. Limitations:
- Single-page apps may return shell HTML with little metadata until JavaScript runs
- Title tags can mislead; they are not authentication
- Meta description is not a security label
Use metadata for context display ("Destination title: Example Login") rather than automated allow decisions unless combined with stronger controls.
URL inspection vs related concepts
| Concept | Scope |
|---|---|
| URL parsing | Syntax only; no network |
| DNS lookup | Resolution; no HTTP behavior |
| URL inspection | HTTP status, redirects, metadata |
| Content fetch for RAG | Full body; injection risk — separate controls |
| Phishing API | Content + reputation signals — broader scope |
Read Phishing Detection API: What Developers Need for boundaries when evaluating commercial phishing products — many go beyond URL-only inspection.
AI agent use cases
Agents propose URLs for browse, webhook, and HTTP tools. Inspection supports:
- Pre-fetch validation — reject malformed or disallowed destinations early
- Redirect-aware allowlists — compare final host to tenant policy
- Logging — structured destination record before sandboxed fetch
- Broken link tools — CMS and research agents checking citations
Inspection precedes — but does not replace — SSRF controls, size limits, content scanning, and Agent Action Guard policy on tool execution.
IdenticAPI URL Inspector API
The URL Inspector API performs real-time HTTP inspection via RapidAPI:
- Host:
url-inspector.p.rapidapi.com - Endpoint:
GET /inspect?url={encoded_url} - Returns: status, final_url, redirects array, title, and related metadata fields
Example request:
curl -G "https://url-inspector.p.rapidapi.com/inspect" \
--data-urlencode "url=https://example.com" \
-H "X-RapidAPI-Key: YOUR_RAPIDAPI_KEY" \
-H "X-RapidAPI-Host: url-inspector.p.rapidapi.com"
Example response shape:
{
"url": "https://example.com",
"status": 200,
"final_url": "https://example.com/",
"redirects": [],
"title": "Example Domain"
}
Capabilities align with link health and destination transparency — not malware verdicts. Only inspect publicly reachable URLs; do not point the API at internal network addresses from misconfigured clients without SSRF guards on your side.
Integration patterns: Detect Suspicious URLs Programmatically.
Engineering guardrails
When operating an inspection service or consuming one:
- Timeout and size limits — prevent hung workers on slow hosts
- Redirect cap — default maximum hops (e.g., 10)
- Block private IP ranges — 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 169.254.169.254, localhost
- Scheme allowlist — https only in production agent contexts
- Rate limiting — protect API quota and avoid abuse
- Logging — request URL, final URL, status, redirect count — avoid storing full page bodies unless required
Honest product messaging
Tell users and stakeholders:
- "We inspect link HTTP behavior and redirects."
- Not: "We scan URLs for malware."
- Not: "All inspected links are safe."
Transparency prevents security theater and sets correct expectations for agent products.
Related reading
| Topic | Article |
|---|---|
| Agent URL validation | Validate URLs Before AI Agents Open Them |
| Suspicious URL signals | Detect Suspicious URLs Programmatically |
| Allowlist design | URL Allowlist vs Domain Allowlist for AI Agents |
| Exfiltration defense | URL-Based Data Exfiltration in AI Agents |
URL inspection gives developers deterministic destination facts at the HTTP layer. Used with SSRF prevention, allowlists, action guards, and content controls, it strengthens AI agent and SaaS link workflows — without overstating what a status code and title tag can prove.
Frequently asked questions
What is URL inspection?
URL inspection parses and normalizes a destination, performs controlled HTTP requests, and returns observable behavior: status codes, redirect chains, final resolved URL, and HTTP-level metadata such as page title — without claiming the link is safe or malicious.
Does URL inspection scan for malware?
No. IdenticAPI URL Inspector reports HTTP-level facts — status, redirects, metadata. Malware and phishing classification require different tooling and threat intelligence beyond URL-only inspection.
What does the URL Inspector API return?
Typical fields include url, status, final_url, redirects array, and title. Access via RapidAPI at url-inspector.p.rapidapi.com with GET /inspect?url= encoded destination.
Can URL inspection follow redirects?
Yes. Redirect chains are returned in the response payload. Agent allowlists should evaluate final_url after redirects, not only the initially proposed string.
Should agents inspect internal network URLs?
No. Apply SSRF blocks for private IPs and localhost before any inspection or fetch. URL Inspector is intended for publicly reachable destinations from properly guarded clients.
Related reading
- How to Validate URLs Before an AI Agent Opens Them
Validate URLs before AI agents fetch or open them — protocol restrictions, domain allowlists, redirect handling, and int…
- How to Detect Suspicious URLs Programmatically
Detect suspicious URLs programmatically with parsing, normalization, redirect analysis, and metadata inspection — using …
- URL Allowlist vs Domain Allowlist for AI Agents
Compare URL allowlists and domain allowlists for AI agents — exact paths, subdomains, schemes, redirects, and practical …