{"uid":"cap_E1Mkj7WpMX1Jry1bTfpjL","slug":"thecocktaildb-drink-search-via-x402-30a572c2","name":"TheCocktailDB Drink Search via x402","description":"TheCocktailDB drink search (keyless). POST {s|q|name}. Unpaid empty → 402; after settle empty/invalid → 400 charged:false. Soft disclose mealdb-search (food/drink lane).","url":"https://x402-v2-mint-cocktail-search.vercel.app/v1/cocktail-search?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"q":{"type":"string","maxLength":128},"s":{"type":"string","maxLength":128},"name":{"type":"string","maxLength":128},"query":{"type":"string","maxLength":128},"request_id":{"type":"string"}}},"responseSchema":{"type":"json","example":{"ok":true,"skill":"cocktail-search","charged":true,"summary":"ok"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.020191","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.020191/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.020191","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.020191","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_9Yjdl9sGIVjAFFNc6SLFQ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.020191","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Searches TheCocktailDB for cocktail recipes and drink information by name or keyword, gated behind x402 micropayment.","exampleAgentPrompt":"Can you search for cocktail recipes for 'margarita' and show me what comes back?","exampleUseCases":[{"title":"Home bartender recipe lookup","prompt":"I want to make a classic Old Fashioned tonight — can you look up the recipe and ingredients for me?"},{"title":"Keyword-based cocktail discovery","prompt":"Search for any cocktails with 'rum' in the name so I can pick something to make this weekend."},{"title":"Party drink planning","prompt":"Can you find recipes for 'cosmopolitan' cocktails so I can prep for the party I'm hosting?"}],"resultDescription":"Returns a JSON object with ok:true, the skill name 'cocktail-search', a charged:true flag confirming the micropayment was processed, and a summary field. The drink data from TheCocktailDB (names, ingredients, instructions) is included in the response when a match is found. If the search query yields no results after payment, charged:false is returned with a 400 status.","failureModes":["402 Payment Required — request made without settling x402 payment first; returns empty response until payment is completed","400 Bad Request with charged:false — payment was processed but search term returned no matching cocktails or was invalid","Missing or empty search field — none of s, q, name, or query provided; likely results in error or empty response","Network/upstream failure — TheCocktailDB is unreachable, causing downstream error despite payment"],"whenToPreferThis":"Use this endpoint when an AI agent needs to retrieve cocktail recipe data on demand with per-query micropayment billing via x402, without requiring a TheCocktailDB API key. Prefer this over direct TheCocktailDB access when operating in a keyless, pay-per-use agent environment. Best suited for agents that need occasional drink lookups rather than high-volume batch queries.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-17T18:38:08.453Z","isFirstParty":false,"canonicalSlug":"thecocktaildb-drink-search-via-x402-30a572c2"}