{"uid":"cap_PqndkrYW7rayMgdL9B_iz","slug":"extract-data-attributes-as-text-76107455","name":"extract-data-attributes-as-text","description":"Extract the page's data attributes as text: fetches the URL, pulls every data attributes element and returns them as plain lines, with a count. Structured, one-element-type extraction for agents and pipelines; no browser needed. $0.01 per page.","url":"https://page.intel.rallylive.ca/page/data-attributes/text?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"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_7tJDinqLT5tmcFFmJcTIQ","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":"Fetches a web page and extracts all HTML data-* attributes, returning them as plain text lines with a count","exampleAgentPrompt":"Fetch https://example.com/product and extract all the HTML data attributes from the page as plain text lines so I can see what data-* values are embedded in the markup.","exampleUseCases":[{"title":"Audit product page metadata","prompt":"Pull all the data attributes from https://shop.example.com/product/42 as plain text — I want to see every data-* field the page has embedded in its HTML."},{"title":"Pipeline enrichment for scraped URLs","prompt":"For each URL in my list, grab all the HTML data attributes as plain text lines so my pipeline can ingest the structured metadata without spinning up a browser."},{"title":"Debug data layer on a landing page","prompt":"Can you fetch https://marketing.mysite.com/landing and extract every data attribute element as text? I need to verify the data layer values are set correctly."}],"resultDescription":"A plain-text response listing each extracted HTML data-* attribute value on its own line, along with a count of how many data attribute elements were found on the page.","failureModes":["URL is unreachable or returns a non-200 status — no data extracted","Page has no data-* attributes — returns empty list with count of 0","Malformed URL input causes a request error","Page requires JavaScript rendering — since no browser is used, dynamically injected data attributes will not be captured","Rate limiting or payment failure if USDC balance is insufficient"],"whenToPreferThis":"Choose this endpoint when you need a lightweight, serverless way to extract HTML data-* attributes from a page as plain text without spinning up a browser or running custom scraping code. It is ideal for agent pipelines, data enrichment workflows, and auditing tasks where simplicity and speed matter and the output needs to be human-readable plain lines rather than JSON or CSV.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-20T18:55:49.633Z","isFirstParty":false,"canonicalSlug":"extract-data-attributes-as-text-76107455"}