{"uid":"cap_cNqgQZ2h2LEwWZaoBrePl","slug":"syntexa-agentshelf-css-selector-extractor-719cfdd3","name":"Syntexa AgentShelf CSS Selector Extractor","description":"Call when an agent needs text and attributes extracted with CSS selectors from a public page or HTML (SSRF-safe, node cap). Exact $0.004 USDC. Prefer unpaid POST /v1/sandbox/css-select first.","url":"https://agentshelf.syntexa.ch/v1/css-select?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"minLength":8,"description":"Public page to fetch. Provide url or html. Private hosts are rejected."},"html":{"type":"string","examples":["<a class=\"x\" href=\"https://example.com/a\">Hello</a>"],"maxLength":200000,"minLength":1,"description":"HTML to query locally. Provide html or url. When both are set, html is used."},"limit":{"type":"integer","maximum":50,"minimum":1,"examples":[5],"description":"Maximum nodes returned per selector, from 1 to 50. Default 20."},"selectors":{"type":"array","items":{"type":"object","required":["selector"],"properties":{"selector":{"type":"string","maxLength":200,"minLength":1,"description":"CSS selector, for example a.price or h1. At most 8 selectors per call."},"attribute":{"type":"string","maxLength":80,"minLength":1,"description":"Attribute to read, such as href. Omit it to return the element's text."}},"additionalProperties":false},"examples":[[{"selector":"a.x","attribute":"href"}]],"maxItems":8,"minItems":1,"description":"One to eight CSS selectors. Each may name an attribute to extract."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pejQZ5D99sJNXYKA_OqyA","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts text and attributes from a public webpage or raw HTML using user-specified CSS selectors, with SSRF protection and a node cap.","exampleAgentPrompt":"From the page at https://example.com/products, use CSS selectors to extract the text of every element matching '.product-title' and the 'href' attribute of every element matching 'a.buy-link', up to 10 results each.","exampleUseCases":[{"title":"Scrape product prices from listing page","prompt":"Go to https://shop.example.com/laptops and extract the text content of all elements matching '.price' and the 'data-sku' attribute of elements matching '.product-card', up to 20 results."},{"title":"Extract nav links from a website","prompt":"From the HTML I'm giving you, pull the text and 'href' attribute of every element matching 'nav a' — limit to 50 results."},{"title":"Pull structured article metadata from a blog","prompt":"Fetch https://blog.example.com/articles and extract the text from '.article-title' and the 'datetime' attribute from 'time.published', up to 15 results each."}],"resultDescription":"Returns an array of results per selector, each containing matched element text content and/or the requested attribute values, respecting the specified node cap (limit).","failureModes":["URL is not publicly accessible or returns a non-200 status","SSRF protection blocks private/internal IP ranges or localhost URLs","HTML input exceeds 200,000 character limit","CSS selector syntax is invalid","No elements match the provided selectors (empty result set)","Limit or selector array count out of allowed range","Payment not fulfilled, request rejected"],"whenToPreferThis":"Use this endpoint when you need to target specific elements on a webpage or within HTML using precise CSS selectors, especially when you need attribute values (e.g. href, src, data-*) alongside text. Prefer the free sandbox POST /v1/sandbox/css-select for testing before committing the $0.004 USDC paid call. Choose over heading-specific or phone-specific sibling endpoints when your extraction target is arbitrary and selector-defined.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T01:21:33.634Z","isFirstParty":false,"canonicalSlug":"syntexa-agentshelf-css-selector-extractor-719cfdd3"}