{"uid":"cap_V1Zn72A_biXrx4Ilk4n8r","slug":"delx-commerce-content-type-sniff-eabf1360","name":"Delx Commerce — Content-Type Sniff","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/content-type-sniff?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"sample":{"type":"string","description":"Input field: sample."},"filename":{"type":"string","description":"Input field: filename."}}},"responseSchema":{"type":"json","example":{"note":"local sniff only; not full MIME database","schema":"delx/util-content-type-sniff/v1","filename":"doc.pdf","confidence":"heuristic","content_type":"application/pdf","sample_bytes":13}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_2ukRSJETW8zfeq0ZltuWB","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Heuristically detects the MIME content type of a file or data sample based on filename and/or byte sample","exampleAgentPrompt":"What's the MIME type of a file named 'doc.pdf' — can you sniff the content type from the filename and the first few bytes?","exampleUseCases":[{"title":"Validate uploaded file format","prompt":"I have a file called 'report.xlsx' and some sample bytes from it — can you figure out what content type it actually is before I process it further?"},{"title":"Route file to correct parser","prompt":"Before I decide which parser to use, can you detect the MIME type of this file named 'data.csv' using its filename and a sample of its bytes?"},{"title":"Sanitize untrusted file uploads","prompt":"A user uploaded a file called 'image.png' but I'm not sure it's actually a PNG — can you sniff its real content type from the sample bytes and filename?"}],"resultDescription":"Returns a JSON object with the detected MIME content type (e.g. 'application/pdf'), a confidence indicator (heuristic), the filename used for inference, the number of sample bytes analyzed, a note about the local sniff scope, and a schema identifier (delx/util-content-type-sniff/v1).","failureModes":["Missing both filename and sample may result in low-confidence or unknown content type","Very short or ambiguous byte samples reduce detection accuracy","Exotic or rare MIME types may not be in the local heuristic database","Malformed input JSON returns an error response"],"whenToPreferThis":"Use this endpoint when you need a fast, cheap ($0.001 USDC), no-signup content-type detection utility for agent workflows — especially when handling untrusted file uploads, routing files to parsers, or validating file formats before processing. Prefer this over full MIME database lookups when heuristic confidence is sufficient and low latency is important.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:02.968Z","isFirstParty":false,"canonicalSlug":"delx-commerce-content-type-sniff-eabf1360"}