{"uid":"cap_UCP6xHuS6jMex8G3Gq4KD","slug":"preplayer-ai-custom-field-extractor-b348dba1","name":"PrepLayer.ai Custom Field Extractor","description":"Pull caller-defined structured fields from text using regex patterns with deterministic type coercion. Supported types: string, bool, date, url, email, number. Returns {fields: {name: value|null}, found, missing}. Pure deterministic — no LLM call.","url":"https://api.maximusmediahouse.com/v1/extract_custom?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"Source text (1-100000 chars)."},"fields":{"type":"array","items":{"type":"object","required":["name","pattern"],"properties":{"name":{"type":"string"},"type":{"enum":["string","number","bool","date","url","email"],"type":"string","default":"string"},"pattern":{"type":"string","description":"JavaScript regex source (without flags)."}}},"maxItems":64,"minItems":1,"description":"Up to 64 field definitions."}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_RfM3beX7qCOUQ7El6W8Lp","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Extracts caller-defined structured fields from text using regex patterns with deterministic type coercion — no LLM involved.","exampleAgentPrompt":"From this invoice text, extract three fields using regex: 'invoice_number' as a string matching INV-\\d+, 'total_amount' as a number matching \\$[\\d.]+, and 'due_date' as a date matching \\d{2}/\\d{2}/\\d{4}.","exampleUseCases":[{"title":"Log line field parsing pipeline","prompt":"I have server log lines and I need to extract the HTTP status code as a number (pattern: \\s(\\d{3})\\s), the request URL as a url (pattern: \\\"[A-Z]+ (\\S+)), and the timestamp as a date (pattern: \\[([\\d/]+)) — can you run those three regex extractions on this log entry?"},{"title":"Invoice data extraction for accounting","prompt":"Pull the vendor email, invoice total as a number, and payment due date from this invoice text using these patterns: email with [a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}, total with Total:\\s*\\$([\\d,.]+), due date with Due:\\s*([\\w]+ \\d{1,2}, \\d{4})."},{"title":"Lead form submission parsing","prompt":"From this raw contact form submission, extract 'name' as a string matching Name:\\s*(.+), 'phone' as a string matching Phone:\\s*([\\d\\-\\(\\) ]+), and 'website' as a url matching Website:\\s*(https?://\\S+) so I can store them in my CRM."}],"resultDescription":"A JSON object with a 'fields' map of field name to extracted and type-coerced value (or null if not found), plus a 'found' array listing successfully matched field names and a 'missing' array listing field names whose patterns did not match.","failureModes":["Invalid or malformed regex pattern causes a parse error response","Text exceeds 100,000 character limit returns a validation error","More than 64 fields submitted returns a schema validation error","Pattern matches but type coercion fails (e.g. non-numeric string for number type) returns null for that field","Empty or missing 'text' or 'fields' properties return 400 bad request"],"whenToPreferThis":"Choose this endpoint when you need deterministic, reproducible field extraction from text and you already know the structure via regex — it is faster, cheaper, and fully auditable compared to LLM-based extraction. Ideal for pipeline preprocessing, log parsing, structured document parsing, or any scenario where non-determinism is unacceptable and patterns are well-defined.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T12:35:47.898Z","isFirstParty":false,"canonicalSlug":"preplayer-ai-custom-field-extractor-b348dba1"}