{"uid":"cap_9QoV2ZDJtTkvcK5mr6K7l","slug":"400860-data-api-web-scrape-extract-0efe39f5","name":"400860 Data API – Web Scrape Extract","description":"x402-native paid API tools for DeFi yields, protocol TVL, AI pricing, paid MCP calls, and web scraping.","url":"https://api.400860.xyz/v1/scrape/extract","method":"POST","headers":{},"bodySchema":{"type":"object","required":["url","selector"],"properties":{"url":{"type":"string"},"selector":{"type":"string"},"maxLength":{"type":"integer"}}},"responseSchema":{"type":"object","additionalProperties":true},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_KWtOGxm_Xukdb8Mo8PnU3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts specific content from a web page using a CSS selector, returning the matched text or HTML.","exampleAgentPrompt":"Scrape the main article text from https://example.com/post using the selector '.article-body' and limit the output to 2000 characters.","exampleUseCases":[{"title":"Extract DeFi yield from protocol page","prompt":"Pull the current APY rate from https://app.aave.com/markets using the selector '.apy-value' so I can compare it with other protocols."},{"title":"Monitor token price on exchange site","prompt":"Scrape the current price of ETH from https://coinmarketcap.com/currencies/ethereum/ using the selector '.priceValue' — I want to know what it says right now."},{"title":"Extract article headline for research","prompt":"Get the headline text from https://decrypt.co/latest using the selector 'h1.article-title' and return up to 500 characters."}],"resultDescription":"A JSON object containing the extracted content matched by the provided CSS selector on the target URL — typically text, HTML, or attribute values from the selected element(s). The response structure is flexible and may include the raw extracted string and metadata about the match.","failureModes":["Selector matches nothing on the page — returns empty result or error","Target URL is unreachable or returns a non-200 status — request fails","JavaScript-rendered content not accessible — static scraper may miss dynamic elements","maxLength truncates content unexpectedly if set too low","Rate limiting or bot protection on target site blocks the fetch","Invalid CSS selector syntax causes a parsing error"],"whenToPreferThis":"Choose this endpoint when you need to extract a specific element from a public webpage by CSS selector and want to pay per-call with no subscription. It is well-suited for agent workflows that need lightweight, targeted extraction rather than full-page crawls, especially in DeFi or Web3 contexts where x402 micropayment rails are already in use.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:45:35.443Z","isFirstParty":false}