{"uid":"cap_Gmaz_0YD6BMF_CoMfVEUE","slug":"agentshelf-profile-rel-shortlink-extractor-7cc0b69c","name":"AgentShelf Profile Rel Shortlink Extractor","description":"Call when an agent needs link rel=shortlink hrefs extracted from a public page or HTML (SSRF-safe). Exact $0.01 USDC. Prefer unpaid POST /v1/sandbox/profile-rel-shortlink first.","url":"https://agentshelf.syntexa.ch/v1/profile-rel-shortlink?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"minLength":8,"description":"Public page to fetch. The selector or profile is fixed by the SKU. Provide url or html."},"html":{"type":"string","examples":["<!doctype html><html lang=\"en\"><head><title>Hello</title>\n<meta name=\"description\" content=\"Desc\"><meta property=\"og:title\" content=\"OG\">\n<link rel=\"canonical\" href=\"https://example.com/\"><link rel=\"icon\" href=\"/favicon.ico\">\n</head><body><h1>Hello</h1><a href=\"https://example.com/a\">A</a></body></html>"],"maxLength":200000,"minLength":1,"description":"HTML to extract from locally. Provide html or url. When both are set, html is used."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MbgoEDC1YWb8OHno7dzON","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts link[rel=shortlink] href values from a public webpage URL or raw HTML, with SSRF protection.","exampleAgentPrompt":"Can you extract the rel=shortlink href from this page: https://example.com/some-long-blog-post-url?","exampleUseCases":[{"title":"Find WordPress post shortlink","prompt":"Get the shortlink href from this WordPress blog post at https://myblog.wordpress.com/2024/05/01/my-very-long-post-title — I need the short ?p=123 style URL."},{"title":"Extract shortlink from raw HTML","prompt":"I have the HTML source of a page here, can you pull out the link rel=shortlink href value from it? Here's the HTML: <html><head><link rel='shortlink' href='https://wp.me/abc123'/></head></html>"},{"title":"Audit page for shortlink presence","prompt":"Check whether this page https://news.example.com/articles/breaking-story-today-2024 has a rel=shortlink link tag and tell me what URL it points to."}],"resultDescription":"Returns the href value(s) found in link[rel=shortlink] elements on the given page or within the provided HTML. If multiple shortlinks exist, all are returned. If none are found, an empty result or null is returned.","failureModes":["URL is unreachable or returns non-200 status — extraction fails with error","SSRF-blocked URL (private IP range, localhost) — request rejected for safety","HTML exceeds 200,000 character limit — input rejected","URL string shorter than 8 characters — validation error","No link[rel=shortlink] present in the page — returns empty result","Malformed HTML may cause parser to miss elements — partial or empty result"],"whenToPreferThis":"Use this endpoint when you specifically need to retrieve link[rel=shortlink] href values from a webpage or HTML snippet, such as finding the short URL associated with a WordPress post or CMS-generated page. Prefer the unpaid sandbox version (/v1/sandbox/profile-rel-shortlink) for testing. Choose this over general link extraction endpoints when you specifically target the rel=shortlink relationship rather than all links or other rel types.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T04:52:40.116Z","isFirstParty":false,"canonicalSlug":"agentshelf-profile-rel-shortlink-extractor-7cc0b69c"}