{"uid":"cap_9vjNJt0Qf5aqmcS_4WUOA","slug":"agentshelf-xpath-script-src-extractor-7137d47c","name":"AgentShelf XPath Script Src Extractor","description":"Call when an agent needs src attributes of //script via //script/@src from a public page or HTML (SSRF-safe). Exact $0.005 USDC. Prefer unpaid POST /v1/sandbox/xpath-script-src first.","url":"https://agentshelf.syntexa.ch/v1/xpath-script-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.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_N-f1cIML3P66A3_LWnvSi","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts the src attribute values of all script elements from a public URL or raw HTML using the XPath selector //script/@src","exampleAgentPrompt":"Can you pull out all the script src URLs from https://example.com so I can see which external JavaScript files that page loads?","exampleUseCases":[{"title":"Audit third-party scripts on a site","prompt":"I need to see every external JavaScript file being loaded on https://shop.acme.com — can you extract all the script src attributes from that page?"},{"title":"Analyze scripts from pasted HTML","prompt":"Here's the HTML source I copied from a competitor's landing page — can you extract all the script src values from it so I can see what tools they're using?"},{"title":"Security scan for injected scripts","prompt":"Can you fetch https://myblog.example.com and list all the script src URLs on it? I want to check if any unexpected third-party scripts got injected."}],"resultDescription":"Returns a list of src attribute values from all script elements found on the page or in the provided HTML, representing URLs or paths of external JavaScript files referenced via the XPath expression //script/@src.","failureModes":["URL is unreachable or returns non-2xx status — extraction fails with an error","Provided HTML exceeds 200,000 character limit — request rejected","URL is fewer than 8 characters or HTML is fewer than 1 character — validation error","Page has no script elements with src attributes — returns empty list","SSRF-blocked internal/private URL — request rejected for safety","Malformed HTML may cause incomplete results"],"whenToPreferThis":"Choose this endpoint when you specifically need script src attribute values from a public webpage or raw HTML and want a focused, SSRF-safe extraction without running a full CSS/XPath scraper. It is cheaper than general-purpose CSS selector endpoints and purpose-built for JavaScript dependency auditing. If you need a free attempt first, use the unpaid POST /v1/sandbox/xpath-script-src endpoint.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T06:50:19.245Z","isFirstParty":false,"canonicalSlug":"agentshelf-xpath-script-src-extractor-7137d47c"}