{"uid":"cap_Y2ySYBL94CUAZGhF-O-Ny","slug":"delx-commerce-schema-inference-api-15e4dfc3","name":"Delx Commerce Schema Inference API","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/schema-inference?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"records":{"type":"array","description":"Input field: records."}}},"responseSchema":{"type":"json","example":{"fields":{"id":{"types":{"int":2},"nullable":false},"active":{"types":{"bool":2},"nullable":false}},"schema":"delx/util-schema-inference/v1","advisory":"Inference describes observed samples; it is not a validation contract.","record_count":2}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","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.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_bZor6I1RUXDDjv8a306Ir","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Infers the schema (field names, types, nullability) from an array of input records","exampleAgentPrompt":"Look at these JSON records and tell me what fields they have, what types each field is, and which ones can be null: [{\"id\":1,\"active\":true},{\"id\":2,\"active\":false}]","exampleUseCases":[{"title":"Unknown API response profiling","prompt":"I'm getting back JSON from a third-party API and I don't have their docs — can you analyze these 10 sample records and tell me the field names, their types, and which ones might be null?"},{"title":"ETL pipeline schema bootstrapping","prompt":"Before I set up my data pipeline, I need to know the schema of this batch of raw records. Can you infer the field types and nullability from these samples so I know how to configure my destination table?"},{"title":"Data quality audit before ingestion","prompt":"I have a sample of customer records from a CSV export and I want to understand what types each column actually contains before importing it into our database — can you infer the schema from these records?"}],"resultDescription":"Returns a JSON object with a 'fields' map where each key is a field name and the value contains observed types (with counts) and nullability; also includes a schema version identifier, an advisory note that the inference is descriptive not prescriptive, and the total record count analyzed.","failureModes":["Empty records array returns no field info","Highly heterogeneous or deeply nested records may produce ambiguous type counts","Payment failure via x402 results in 402 response before inference runs","Malformed JSON input returns a 400-level error","Very large record arrays may time out or be truncated"],"whenToPreferThis":"Use this endpoint when you need lightweight, instant schema detection from a sample of JSON records without setting up a full data catalog or schema registry. It is ideal for agents handling unknown or undocumented data sources, bootstrapping ETL pipelines, or quickly profiling a dataset before processing. Prefer it over manual inspection or heavier data-profiling tools when you need a pay-per-call, no-signup solution with verifiable delivery via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:53:34.696Z","isFirstParty":false,"canonicalSlug":"delx-commerce-schema-inference-api-15e4dfc3"}