{"uid":"cap_1nxN1csv0aABkNuHe_uui","slug":"agentindex-x402-structured-data-extraction-6dab04a0","name":"AgentIndex x402 – Structured Data Extraction","description":"Process the files and content an agent gives you. Nothing else. A pay-per-call kit for AI agents in USDC on Base (x402/MPP): pdf, web-read, extract, summarize, and the free detect-language entry point - see GET /capabilities. Plus two tools outside the kit: translate and jobs.","url":"https://x402.agentindex.world/extract","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","description":"URL to read and extract from. Provide this or text, not both."},"text":{"type":"string","description":"Raw text to extract from. Provide this or url, not both."},"schema":{"type":"object","description":"JSON Schema describing the fields to extract. The response's `data` field will strictly conform to it."}}},"responseSchema":{"type":"json","example":{"data":{"price":29.99,"in_stock":true,"product_name":"Widget Pro"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.05","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.05/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.05","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_xuYIdija32gno8yqnj8R3","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.05","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts structured fields from a URL or raw text according to a caller-supplied JSON Schema, returning a strictly conforming data object.","exampleAgentPrompt":"Extract the product name, price, and whether it's in stock from this URL — https://example-shop.com/widget-pro — and give me those fields as structured JSON.","exampleUseCases":[{"title":"Product data extraction from retailer","prompt":"Go to https://www.bestbuy.com/site/apple-macbook-air/6578584.p and extract the product name, current price, and availability status as structured fields."},{"title":"Article metadata extraction","prompt":"Extract the author, publication date, headline, and summary from this article: https://techcrunch.com/2024/06/01/openai-raises-funding — return them as structured JSON."},{"title":"Structured extraction from raw text","prompt":"I have this raw job listing text — 'Senior Engineer, Remote, $180k–$220k, apply by July 31' — extract the job title, location, salary range, and application deadline as structured fields."}],"resultDescription":"A JSON object whose `data` field strictly conforms to the JSON Schema you supplied. For example, {\"data\":{\"price\":29.99,\"in_stock\":true,\"product_name\":\"Widget Pro\"}}. Fields are typed and validated against your schema.","failureModes":["Both url and text provided — API requires exactly one","Neither url nor text provided — request will fail","URL is inaccessible, paywalled, or returns non-200 — extraction will fail or return empty fields","Schema has fields that cannot be found in source content — those fields may be null or omitted","Malformed JSON Schema supplied — API may reject or return unstructured output","Payment not processed (x402 flow failure) — 402 response, no extraction performed"],"whenToPreferThis":"Choose this endpoint when you need to extract specific, named fields from a URL or raw text and want the result as a strictly typed JSON object matching your own schema. It is ideal for e-commerce data harvesting, article metadata extraction, or any scenario where you know exactly which fields you need and want schema-validated output. Prefer it over a generic web-read endpoint when downstream code depends on predictable field names and types.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:30:13.052Z","isFirstParty":false}