{"uid":"cap_H2i-t5b55EBbgsRBE43GB","slug":"agentshelf-xpath-source-src-extractor-30b708f8","name":"AgentShelf XPath Source @src Extractor","description":"Call when an agent needs src attributes of //source via //source/@src from a public page or HTML (SSRF-safe). Exact $0.008 USDC. Prefer unpaid POST /v1/sandbox/xpath-source-src first.","url":"https://agentshelf.syntexa.ch/v1/xpath-source-src?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.008","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.008/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.008","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_iC2yvC_W-lSc7uP8XTYAz","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.008","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts all `src` attribute values from `//source` elements in a public webpage or raw HTML using XPath, with SSRF protection.","exampleAgentPrompt":"Can you fetch the page at https://example.com/video and extract all the src attributes from its source elements for me?","exampleUseCases":[{"title":"Extract video source URLs from media page","prompt":"Go to https://video-site.com/watch?id=abc123 and pull out all the src attributes from the source elements on that page — I want to know what video file URLs are being served."},{"title":"Parse HTML snippet for audio sources","prompt":"I have this chunk of HTML from a podcast player page — can you extract all the src attributes from the source elements in it? Here's the HTML: <video><source src=\"/ep1.mp3\" type=\"audio/mpeg\"><source src=\"/ep1.ogg\" type=\"audio/ogg\"></video>"},{"title":"Audit media sources on a public article","prompt":"Check https://news-site.com/article/456 and tell me all the src values from any source elements — I'm trying to audit what media files they're loading."}],"resultDescription":"Returns a list of `src` attribute values extracted from all `//source` elements found via XPath in the given webpage or HTML. Each value is a URL string pointing to a media resource referenced in a source tag.","failureModes":["URL is unreachable or returns a non-200 status — extraction fails with an error","SSRF protection blocks the URL if it resolves to a private/internal IP range","HTML is malformed or contains no source elements — returns an empty list","HTML string exceeds the 200,000 character limit — request rejected","URL or HTML not provided — schema validation error","Page requires authentication or JavaScript rendering — content may be incomplete"],"whenToPreferThis":"Use this endpoint when you need to extract `src` attributes specifically from `//source` HTML elements on a public page or from a known HTML string, without writing your own XPath or web-fetching logic. Prefer the free `/v1/sandbox/xpath-source-src` variant first for testing. Choose this over generic scraping tools when you only need source-element src values and want a lightweight, SSRF-safe, paid API call at a fixed $0.008 USDC cost.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:50:18.031Z","isFirstParty":false,"canonicalSlug":"agentshelf-xpath-source-src-extractor-30b708f8"}