{"uid":"cap_x29-SrnI_n1a5RXJxs7eJ","slug":"statepulse-api-barcode-product-lookup-90e5bc7c","name":"StatePulse API - Barcode Product Lookup","description":"Resolves a UPC/EAN or ISBN barcode into detailed product metadata using OpenLibrary and UPCitemdb free search endpoints.","url":"https://statepulse-api.hahavoid0.workers.dev/product/barcode","method":"POST","headers":{},"bodySchema":null,"responseSchema":{"type":"json","example":{"result":{"brand":"Penguin Classics","image":"https://covers.openlibrary.org/b/id/8240502-M.jpg","title":"The Odyssey","category":"Books","metadata":{"author":"Homer","page_count":560}},"supported":true,"confidence":"high"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.02/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pMslpIDpxAT5eNsmcGVuN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up product information (brand, title, category, metadata) from a barcode identifier, returning structured product details with confidence scoring.","exampleAgentPrompt":"I just scanned the barcode 9780143107996 on a book I found — can you look it up and tell me the title, author, and category?","exampleUseCases":null,"resultDescription":"Returns a JSON object with: brand name, product title, category, image URL, extended metadata (e.g. author and page count for books), a 'supported' boolean indicating whether the barcode type is recognized, and a confidence level (e.g. 'high') for the match.","failureModes":["Barcode not found in database — supported may be false or result may be empty","Unknown barcode format — unsupported type returns supported: false","Low confidence match — confidence field may return 'low' indicating uncertain result","Payment failure — x402 USDC payment not completed, request rejected","Malformed barcode input — invalid format returns error response"],"whenToPreferThis":"Use this endpoint when an agent needs to identify a physical product from its barcode or UPC/EAN/ISBN number, especially to retrieve structured product metadata like brand, title, category, and images. Ideal for shopping assistants, inventory tools, book lookup, or receipt parsing where a barcode is available as the primary identifier.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:40:32.529Z","isFirstParty":false}