{"uid":"cap_whKJwYkvVv_CVSeO-M8kV","slug":"agentpay-extract-ai-powered-field-extraction-via-x402-f4418632","name":"AgentPay Extract — AI-Powered Field Extraction via x402","description":"Pay-per-call AI services via the 402 Payment Required protocol. No accounts, no API keys — just USDC on Base.","url":"https://agentpay.help/v1/extract","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","maxLength":20000,"minLength":10,"description":"Source text"},"fields":{"type":"array","items":{"type":"string"},"description":"Field names to extract; omit to auto-detect"}}},"responseSchema":{"type":"json","example":{"date":"2026-08-14","total":"$4,180.50","vendor":"Northwind Traders","invoice_number":"INV-2291"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8x3L6dmeGYPC6D2C8N59Z","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","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 unstructured text or documents using AI, paid per-call with USDC via the x402 protocol — no API keys required.","exampleAgentPrompt":"Extract the date and vendor name from this invoice text: 'Invoice #4421 — Acme Corp, issued January 15, 2025, total due $1,200.'","exampleUseCases":[{"title":"Invoice data extraction for accounting","prompt":"Pull the invoice date, vendor name, and total amount from this text: 'Invoice from Bright Solutions LLC, dated March 3, 2025, for $4,750 net 30.'"},{"title":"Contract clause parsing for legal review","prompt":"Extract the effective date and party names from this contract snippet: 'This Agreement is entered into on February 1, 2025, between Horizon Ventures Inc. and Clearwater Partners Ltd.'"},{"title":"Email field parsing for CRM entry","prompt":"From this email signature — 'John Dawson, Senior Manager, Apex Group, john.dawson@apexgroup.com, +1 415-555-0192' — extract the person's name, job title, company, and email address."}],"resultDescription":"Returns a JSON object with a 'fields' key containing the requested field names mapped to their extracted string values from the input text (e.g. {\"fields\": {\"date\": \"January 15, 2025\", \"name\": \"Acme Corp\"}}).","failureModes":["Payment not received or insufficient USDC — returns HTTP 402 Payment Required","Requested fields not found in the input text — returns null or empty string values for those fields","Malformed request body — returns 400 Bad Request","Input text too long or unsupported format — may return 422 or partial extraction","Ambiguous field definitions leading to incorrect extraction results"],"whenToPreferThis":"Choose this endpoint when you need lightweight, pay-as-you-go field extraction from text without committing to a monthly subscription or managing API keys. Ideal for agents that process documents or text only occasionally and want to pay $0.03 per call in USDC. Prefer this over heavier NLP pipelines when the extraction schema is simple (named fields like dates, names, amounts) and you want zero-setup AI extraction with crypto micropayments via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:32:59.046Z","isFirstParty":false}