{"uid":"cap_Y3vay6-VCMB9iaqx279Td","slug":"base-intel-api-structured-text-web-extraction-d5d0b087","name":"Base Intel API — Structured Text & Web Extraction","description":"One-call ALLOW, WARN, or BLOCK trade-risk decisions for Base agents, combining contract safety with live DEX liquidity and activity. Paid per result in USDC over x402.","url":"https://base-intel-api.jakemaxsigal.workers.dev/extract?utm_source=zero.xyz","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":["fields"],"properties":{"url":{"type":"string","description":"A web page to fetch and extract from instead of text."},"text":{"type":"string","description":"The text to extract from (max 12,000 characters). Use this or url."},"fields":{"type":"string","description":"Comma-separated fields to extract, with optional types: name,email,price:number,in_stock:boolean,tags:array."},"schema":{"type":"string","description":"Alternative to fields: a JSON Schema object of properties."},"instructions":{"type":"string","description":"Optional extra guidance, e.g. 'amounts in USD'."}}}}},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"data":{"type":"object","properties":{"date":{"type":"string"},"amount":{"type":"number"},"company":{"type":"string"}}},"found":{"type":"number"},"model":{"type":"string"},"source":{"type":"string"},"missing":{"type":"array","items":{}},"provider":{"type":"string"},"timestamp":{"type":"string"},"truncated":{"type":"boolean"}}}}}}},"responseSchema":{"type":"json","example":{"data":{"date":"2026-10-09","amount":1200,"company":"Acme Corp"},"found":3,"model":"@cf/meta/llama-3.3-70b-instruct-fp8-fast","source":"text","missing":[],"provider":"base-intel-extract","timestamp":"2026-10-07T00:00:00.000Z","truncated":false}},"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_wu-26_-zFE_8s5Qy7sZwv","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 structured fields from raw text or a web page URL using LLM inference, returning typed key-value data in a single call","exampleAgentPrompt":"Pull the company name, invoice date, and total amount (as a number) from this text: 'Acme Corp — Invoice #4421, dated March 15 2025, total due $3,450.00.'","exampleUseCases":[{"title":"Invoice field extraction from raw text","prompt":"Extract the vendor name, invoice date, and total amount as a number from this invoice text: 'TechSupplies Inc — Invoice #998, issued April 2 2025, amount owed: $12,800.'"},{"title":"Product detail scraping from a URL","prompt":"Fetch this product page and pull out the product name, price as a number, and whether it's in stock as a boolean: https://example.com/products/widget-pro"},{"title":"Contact info parsing from unstructured email body","prompt":"From this email text, extract the sender's name, email address, and phone number: 'Hi, I'm Jordan Lee, reach me at jordan.lee@company.com or call 555-867-5309.'"}],"resultDescription":"A JSON object containing a 'data' map of extracted field names to typed values, a count of fields found, a list of missing fields, the LLM model used, the source type (text or url), a timestamp, and a truncation flag indicating if the input was cut off.","failureModes":["Missing required 'fields' query parameter returns an error","Text exceeding 12,000 characters gets truncated (truncated: true in response)","Ambiguous field names may result in empty or incorrect extractions","URL fetch failures return an error if the page is inaccessible or paywalled","Payment not sent or insufficient USDC results in HTTP 402 response","Schema and fields both omitted causes undefined extraction behavior"],"whenToPreferThis":"Choose this endpoint when you need to turn unstructured text or a live web page into typed, named fields in a single API call without building a custom parsing pipeline. It is ideal for document parsing (invoices, receipts, emails), lightweight web scraping into structured JSON, and any scenario where you need LLM-powered extraction billed per-call at $0.02 USDC rather than managing your own model infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T18:31:26.194Z","isFirstParty":false,"canonicalSlug":"base-intel-api-structured-text-web-extraction-d5d0b087"}