{"uid":"cap_uDMVPbkkCj26ikBtSOs-m","slug":"webref-content-type-advice-d2f624d3","name":"WebRef Content-Type Advice","description":"Web standards and time reference for AI agents: HTTP status codes with what the client should do, retry semantics, MIME types and content-type matching, request-method safety and idempotency, plus deadline arithmetic - time until a moment, weekday and business-day checks, duration conversion and Unix timestamps. Pay per call in USDC on Base via x402 or USDC on Tempo via MPP. No signup, no API key, no KYC.","url":"https://webref.johnaio281.workers.dev/api/web/content_type_advice?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","contentType":{"def":{"type":"string"},"type":"string"},"endpointKind":{"def":{"type":"enum","entries":{"xml":"xml","form":"form","json":"json","text":"text","binary":"binary","multipart":"multipart"}},"enum":{"xml":"xml","form":"form","json":"json","text":"text","binary":"binary","multipart":"multipart"},"type":"enum","options":["json","form","multipart","xml","text","binary"]}}},"additionalProperties":false}}},"responseSchema":null,"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_jFhI1XZYfr6etnZdfrPlC","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":"Returns content-type matching and MIME type guidance for HTTP GET, HEAD, or DELETE requests, including appropriate Accept headers and endpoint kind classification","exampleAgentPrompt":"What content type and Accept headers should I use when making a GET request to a JSON API endpoint?","exampleUseCases":[{"title":"Correct MIME type for REST call","prompt":"I'm building an HTTP client that calls a JSON REST API with GET requests — what content type and Accept headers should I be sending?"},{"title":"Content negotiation for XML endpoint","prompt":"I need to make a GET request to an XML data feed — what MIME type and content-type headers should I use for proper content negotiation?"},{"title":"Binary file download header advice","prompt":"My agent is doing a GET request to download a binary file from a server — what content-type headers should it include to signal it can handle binary responses?"}],"resultDescription":"Returns structured advice on appropriate MIME types, Accept headers, and content-type matching strategies for the specified HTTP method (GET, HEAD, or DELETE) and optional endpoint kind (json, form, multipart, xml, text, binary), helping agents configure HTTP requests correctly.","failureModes":["Missing required 'method' parameter returns validation error","Unsupported HTTP method (e.g. POST, PUT) rejected — only GET, HEAD, DELETE accepted","Invalid endpointKind enum value returns error","Payment not provided or insufficient USDC causes 402 response","Network timeout on the Cloudflare Workers edge"],"whenToPreferThis":"Use this endpoint when an AI agent needs authoritative, lookup-based guidance on HTTP content-type and MIME type selection for GET, HEAD, or DELETE requests — especially in agentic pipelines that dynamically construct HTTP calls and need to set correct Accept or Content-Type headers without hardcoding web standards knowledge. Prefer this over general LLM knowledge when you need deterministic, up-to-date standards compliance with no hallucination risk.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-22T12:41:12.764Z","isFirstParty":false,"canonicalSlug":"webref-content-type-advice-d2f624d3"}