{"uid":"cap_xCa1kqcbwCzBdwdoaMoHB","slug":"agentfeed-hash-api-a0cde6a9","name":"AgentFeed Hash API","description":"Hash: SHA-256, Keccak-256 (the Ethereum hash) or BLAKE2b-512 of UTF-8 text or hex bytes, as hex and 0x-hex. Use when you need to answer: What is the SHA-256, Keccak-256 or BLAKE2b hash of this input? Input up to 2 KB; over that is a 400, never billed.","url":"https://x402.ochinimus.app/api/hash?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":["alg","data"],"properties":{"as":{"enum":["utf8","hex"],"type":"string","description":"how to read data: utf8 (default) or hex bytes"},"alg":{"enum":["sha256","keccak256","blake2b"],"type":"string","description":"the hash"},"data":{"type":"string","description":"the input, up to 2,048 bytes"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"data":{"type":"object","properties":{"alg":{"type":"string"},"hex":{"type":"string"},"hex_0x":{"type":"string"},"input_as":{"type":"string"},"input_bytes":{"type":"number"}}},"paid":{"type":"boolean"},"tool":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"data":{"alg":"keccak256","hex":"1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8","hex_0x":"0x1c8aff950685c2ed4bc3174f3472287b56d9517b9c948127319a09a7a36deac8","input_as":"utf8","input_bytes":5},"paid":true,"tool":"get_hash"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0025","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_TTL2BMuuLBGpBAoZyOgXl","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Computes a cryptographic hash (SHA-256, Keccak-256, or BLAKE2b) of a given input string, returning the digest in hex format","exampleAgentPrompt":"Can you compute the keccak256 hash of the text 'hello world' and give me the result as a 0x-prefixed hex string?","exampleUseCases":[{"title":"Smart contract data integrity check","prompt":"Hash this Solidity ABI-encoded value 'transfer(address,uint256)' using keccak256 and give me the 0x-prefixed hex — I need it to verify a function selector on Ethereum."},{"title":"Content fingerprinting for deduplication","prompt":"Give me the SHA-256 hash of this document excerpt: 'The quick brown fox jumps over the lazy dog' — I want a fingerprint to detect duplicate content in my database."},{"title":"BLAKE2b digest for file verification","prompt":"Compute the blake2b hash of the string 'AgentFeed rocks' so I can verify its integrity later — return the raw hex digest."}],"resultDescription":"Returns a JSON object containing the chosen algorithm name, the hash digest as lowercase hex, the same digest with a 0x prefix, how the input was interpreted (utf8 or hex), and the number of input bytes processed, plus a boolean confirming payment was made.","failureModes":["Missing required 'alg' query parameter returns an error","Missing required 'data' query parameter returns an error","Input data exceeding 2,048 bytes is rejected","Invalid 'alg' value (not sha256, keccak256, or blake2b) returns a validation error","Invalid 'as' enum value returns a validation error","Payment failure via x402 blocks the response","Network timeout on the payment or compute layer"],"whenToPreferThis":"Choose this endpoint when you need a quick, pay-per-call cryptographic hash without setting up infrastructure or API keys. It is especially useful for AI agents operating in crypto/blockchain contexts that need keccak256 for EVM compatibility, or for lightweight data integrity checks using SHA-256 or BLAKE2b. Prefer it over self-hosted hashing when operating in an x402 micropayment environment where per-call USDC billing is already in place.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-23T18:32:22.596Z","isFirstParty":false,"canonicalSlug":"agentfeed-hash-api-a0cde6a9"}