{"uid":"cap_bIUIzVjKx10mRRNjkOG7p","slug":"microscrape-structured-field-extraction-413576e2","name":"MicroScrape Structured Field Extraction","description":"MicroScrape: structured field extraction via caller-supplied CSS selectors","url":"https://microscrape-production.up.railway.app/api/v1/extract","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","required":["url","fields"],"properties":{"url":{"type":"string","description":"URL to extract fields from"},"fields":{"type":"string","description":"JSON object mapping field names to CSS selectors, e.g. {\"title\":\"h1\",\"price\":\".price\"}"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","required":["request_id","url","fields"],"properties":{"url":{"type":"string"},"fields":{"type":"object"},"request_id":{"type":"string"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","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_G_bMLFkJAZHSwnb0y0X1k","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts specific data fields from any webpage using caller-supplied CSS selectors, returning a structured JSON object with named fields","exampleAgentPrompt":"Scrape this product page https://example.com/product/123 and pull out the title using 'h1.product-title', the price using '.price-now', and the stock status using '.availability-label'.","exampleUseCases":[{"title":"E-commerce price monitoring","prompt":"Pull the product name and current price from https://shop.example.com/item/456 — the name is in 'h1.product-name' and the price is in 'span.sale-price'."},{"title":"News article metadata extraction","prompt":"From this article https://news.example.com/story/789, extract the headline from 'h1.article-title', the author from '.byline-author', and the publish date from 'time.published-date'."},{"title":"Real estate listing details","prompt":"Scrape the listing at https://realty.example.com/listing/321 and give me the address from '.listing-address', the asking price from '.listing-price', and the number of bedrooms from '.beds-count'."}],"resultDescription":"A JSON object containing a request_id, the scraped URL, and a fields object mapping each caller-supplied field name to the text content extracted from the corresponding CSS selector on the page. If a selector matches nothing, the field value will be null or empty.","failureModes":["CSS selector does not match any element on the page — field returns null or empty string","Target URL is unreachable or returns a non-200 status — extraction fails with an error","JavaScript-rendered content may not be available if the page requires JS execution","Malformed JSON in the fields parameter causes a 400 bad request","Rate limiting or bot protection on the target site blocks the fetch","Invalid URL format in the url parameter causes a validation error"],"whenToPreferThis":"Choose this endpoint when you need to extract specific, named data fields from a webpage and you know or can determine the CSS selectors for those fields. It is ideal for structured data extraction from product pages, articles, or listings where the page structure is consistent. Prefer it over the Markdown or metadata endpoints when you need precise field-level data rather than full-page content, and over a full crawler when you only need a small number of targeted fields.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:31:03.643Z","isFirstParty":false}