{"uid":"cap_jeaGWKLz6rFXGLSZ4NwP3","slug":"url-file-type-detector-47b3dd25","name":"URL File Type Detector","description":"Detects the real type of a file at a URL from its magic bytes (40+ signatures: images, audio, video, archives, PDF, Office, executables, fonts, WASM, SQLite, text/JSON/HTML) and compares with the declared Content-Type and the URL extension, flagging mismatches. Also returns size, content-disposition and whether the server supports ranges. Reads only the first 64 KB. $0.01 per file.","url":"https://intel.rallylive.ca/dev/file-type","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","properties":{}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_17KvzmQlc3ghMkw2qOwTD","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Detects the true MIME type of a file at a URL by reading magic bytes, then flags mismatches against the declared Content-Type header and URL extension","exampleAgentPrompt":"Can you check what type of file is actually at this URL — https://example.com/download/report.pdf — and tell me if the real file type matches the Content-Type header and the .pdf extension?","exampleUseCases":[{"title":"Detect disguised executable downloads","prompt":"I have this download link — https://cdn.example.com/installer.zip — can you check what the file really is at the byte level and tell me if it matches the .zip extension and the Content-Type the server sends back?"},{"title":"Validate image URL before processing","prompt":"Before I pass this URL to my image pipeline, can you verify that https://uploads.example.com/avatar.jpg is actually a JPEG image and not something else disguised as one?"},{"title":"Audit suspicious file served from CDN","prompt":"This CDN URL is claiming to serve an MP4 video but users are reporting issues — can you inspect https://media.example.com/video.mp4 to see what type the magic bytes reveal and whether there's a mismatch with the declared content type?"}],"resultDescription":"Returns the detected MIME type inferred from magic bytes (covering 40+ signatures including images, audio, video, archives, PDF, Office, executables, fonts, WASM, SQLite, and text formats), the declared Content-Type from the server, the file extension from the URL, any mismatch flags between those three, the file size, the content-disposition header, and whether the server supports byte-range requests. Only the first 64 KB of the file is fetched.","failureModes":["URL is unreachable or returns a non-200 status — detection fails with an error","File requires authentication and returns 401/403 — no bytes can be read","Server does not return any Content-Type header — comparison is partial","File is smaller than the magic byte signature region — detection may be inconclusive","Unknown file format not among 40+ supported signatures — type reported as unknown"],"whenToPreferThis":"Choose this endpoint when you need to verify the true binary type of a file at a remote URL without downloading the whole file, especially when you suspect MIME type spoofing, mismatched extensions, or want to validate a file before passing it to a downstream processor. It is distinct from content-analysis endpoints because it uses low-level magic byte inspection rather than parsing or rendering the file.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T17:40:52.033Z","isFirstParty":false}