{"uid":"cap_c8z-KwLTRjwaN_oRkPUo_","slug":"agentshelf-xpath-image-src-extractor-1ccfa020","name":"AgentShelf XPath Image Src Extractor","description":"Call when an agent needs src attributes of //img via //img/@src from a public page or HTML (SSRF-safe). Exact $0.01 USDC. Prefer unpaid POST /v1/sandbox/xpath-img-src first.","url":"https://agentshelf.syntexa.ch/v1/xpath-img-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.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_SaM-JJ8U4FCUXJLhEZSER","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 all src attribute values from img elements on a public webpage or HTML document using XPath, with SSRF protection","exampleAgentPrompt":"Can you extract all the image src URLs from https://example.com/gallery — I need every img element's src attribute from that page.","exampleUseCases":[{"title":"Gallery page image inventory","prompt":"Go to https://shop.example.com/products and pull out all the image src URLs from the page so I can see what product photos they're using."},{"title":"Extract images from pasted HTML","prompt":"I've got this big chunk of HTML from a news article — can you parse it and give me all the img src values so I know what images are embedded in it?"},{"title":"Audit competitor website images","prompt":"Fetch all the image sources from https://competitor.com/about and list them out — I want to see what images they have on their about page."}],"resultDescription":"An array or list of src attribute values extracted from all img elements found in the provided URL or HTML content, representing the image URLs or paths present on the page.","failureModes":["URL is not publicly accessible or returns a non-200 status — extraction fails","SSRF-blocked URL (private IP ranges, localhost) — rejected for security reasons","HTML provided exceeds 200,000 character limit — request rejected","No img elements with src attributes found — returns empty result","Malformed HTML may result in incomplete extraction","URL parameter too short (under 8 chars) or too long (over 2048 chars) — validation error","Payment of $0.01 USDC not provided or insufficient — 402 error returned"],"whenToPreferThis":"Use this endpoint when you need to programmatically extract all image src attributes from a public webpage or HTML snippet without managing browser infrastructure. Prefer the free sandbox endpoint (/v1/sandbox/xpath-img-src) for testing before paying. Choose this over general scraping services when you specifically need only image URLs via XPath and want SSRF-safe fetching of public URLs.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:50:09.842Z","isFirstParty":false,"canonicalSlug":"agentshelf-xpath-image-src-extractor-1ccfa020"}