{"uid":"cap_ZrPlEQMd09KCEj3mVWCmh","slug":"agentshelf-xpath-img-srcset-extractor-eb727277","name":"AgentShelf XPath IMG Srcset Extractor","description":"Call when an agent needs srcset attributes of //img via //img/@srcset from a public page or HTML (SSRF-safe). Exact $0.001 USDC. Prefer unpaid POST /v1/sandbox/xpath-img-srcset first.","url":"https://agentshelf.syntexa.ch/v1/xpath-img-srcset?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.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_JBdn_TbQmfmwl0TS0SKEC","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":"Extracts srcset attribute values from all img elements on a public webpage or HTML snippet using XPath","exampleAgentPrompt":"Can you extract all the srcset attributes from the img tags on https://example.com/gallery — I need to see what responsive image sources they're using?","exampleUseCases":[{"title":"Audit responsive images on a webpage","prompt":"Go to https://mysite.com/products and pull out all the srcset attributes from the img tags so I can audit which responsive image sizes are being served."},{"title":"Extract srcset from pasted HTML","prompt":"I have this HTML snippet from a news article — can you find all the img srcset values in it so I can see what image resolutions they offer?"},{"title":"Verify responsive image implementation","prompt":"Check https://brand.com/homepage and extract every img srcset attribute — I want to confirm they're properly implementing responsive images with multiple resolutions."}],"resultDescription":"Returns an array of srcset attribute values found in img elements on the given page or HTML, extracted via XPath (//img/@srcset). Each value is a raw srcset string that may contain multiple image URLs with width/density descriptors.","failureModes":["URL is not publicly accessible or returns non-200 status","HTML input exceeds 200,000 character limit","No img elements with srcset attributes found — returns empty array","SSRF-blocked URL (private IPs, internal hostnames) rejected for safety","Malformed HTML may result in incomplete extraction","URL string shorter than 8 characters or longer than 2048 characters rejected"],"whenToPreferThis":"Use this endpoint when you need to extract srcset attributes specifically from img elements on a public page or HTML fragment, and the free sandbox endpoint (/v1/sandbox/xpath-img-srcset) is unavailable or has been exhausted. Prefer this over a general XPath endpoint when the task is specifically about responsive image sources.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T02:48:26.704Z","isFirstParty":false,"canonicalSlug":"agentshelf-xpath-img-srcset-extractor-eb727277"}