{"uid":"cap_ki8MTCn3uin-NWs40f9YS","slug":"link-header-parse-6b27bc2e","name":"Link Header Parse","description":"Link Header Parse: Link Header Parse parses bounded Link header targets and relation parameters from bounded caller-supplied values without an external provider. Call Link Header Parse before accepting, caching, redirecting, or retrying a caller-supplied web response. Returns normalized web evidence, the computed finding, and an explicit pass or advisory status for Link Header Parse as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, stateless, memory-only executi…","url":"https://api.delx.ai/api/v1/x402/link-header-parse","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"header":{"type":"string","maxLength":8192,"description":"Header supplied to Link Header Parse; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"count":1,"entries":[{"value":"https://api.example.com/items?page=2","parameters":{"rel":"next"}}]},"schema":"delx/util-link-header-parse/v1","status":"pass","evidence":{"retained":false,"input_sha256":"c29e9d075fe214f8f36932c4673fa5d7a8d63984c8a0ca8a21112ef48942249c","external_calls":0},"operation":"web_reliability:link_header_parse"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_heRlopppzCa8K8EyrzZ7K","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses and validates Link header values, extracting targets and relation parameters with deterministic pass/advisory status.","exampleAgentPrompt":"Can you parse this Link header for me and tell me if it's safe to follow — I got back '<https://example.com/page2>; rel=\"next\", <https://example.com/>; rel=\"first\"' from an HTTP response and need the targets and rel values extracted before I cache it.","exampleUseCases":[{"title":"Pagination link extraction for crawler","prompt":"I'm crawling a REST API and the response has this Link header: '<https://api.example.com/items?page=3>; rel=\"next\"; title=\"Next Page\", <https://api.example.com/items?page=1>; rel=\"first\"' — can you parse out all the targets and relation types so I know where to fetch next?"},{"title":"Validate link header before redirect","prompt":"Before I redirect my user, I got this Link header from an upstream service: '<https://cdn.example.com/asset.js>; rel=\"preload\"; as=\"script\"' — can you parse and validate it to make sure the target and parameters are well-formed and safe to use?"},{"title":"Cache-safe header normalization","prompt":"I need to cache a response but it has this Link header I'm not sure about: '<https://example.com/profile>; rel=\"canonical\"; type=\"text/html\"' — parse it and tell me if it passes validation before I store it."}],"resultDescription":"Returns versioned deterministic JSON containing the normalized link targets, extracted relation parameters, computed finding details, and an explicit pass or advisory status indicating whether the parsed header is safe to accept, cache, redirect from, or retry against.","failureModes":["Header string exceeds 8192 character limit — rejected with bounds error","Malformed or unparseable Link header syntax — returns advisory status with finding detail","Empty header value — may return pass with empty targets","Header contains ambiguous or conflicting relation parameters — advisory status returned","Payment failure via x402 protocol — request rejected before processing"],"whenToPreferThis":"Choose this endpoint when you need deterministic, stateless, security-conscious parsing of HTTP Link headers before acting on them — especially when accepting untrusted headers from external HTTP responses prior to caching, redirecting, following pagination, or retrying. Prefer over ad-hoc regex parsing because it returns explicit pass/advisory safety status and normalized output in versioned JSON, making it audit-friendly for agentic pipelines.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T13:11:32.117Z","isFirstParty":false}