{"uid":"cap__EHaa14kFnyxb-K6oeWk2","slug":"opentdb-trivia-via-x402-d53456bb","name":"OpenTDB Trivia via x402","description":"Open Trivia DB quiz questions (keyless). POST {amount?, category?, difficulty?, type?, encode?}. Unpaid empty → 402; after settle empty/invalid → 400 charged:false. Soft disclose dnd5e-spell (games lane).","url":"https://x402-v2-mint-opentdb-trivia.vercel.app/v1/opentdb-trivia?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"type":{"enum":["multiple","boolean"],"type":"string"},"amount":{"type":"integer","maximum":50,"minimum":1},"encode":{"enum":["url3986","base64",""],"type":"string"},"category":{"type":["integer","string"]},"difficulty":{"enum":["easy","medium","hard"],"type":"string"},"request_id":{"type":"string"}}},"responseSchema":{"type":"json","example":{"ok":true,"skill":"opentdb-trivia","charged":true,"summary":"ok"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.02018","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.02018/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02018","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.02018","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lGsRJYzzzg43u7b-RycCZ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.02018","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches trivia questions from the Open Trivia Database (OpenTDB) with configurable category, difficulty, type, and encoding, billed per call via x402.","exampleAgentPrompt":"Can you fetch me 10 multiple choice trivia questions on medium difficulty from the Science & Nature category — base64 encoded?","exampleUseCases":[{"title":"Quiz night question generator","prompt":"I'm hosting a pub quiz tonight — pull me 20 multiple choice trivia questions on hard difficulty, any category, no special encoding."},{"title":"True/false kids trivia round","prompt":"Get me 15 true/false trivia questions on easy difficulty from the General Knowledge category for a kids' game show."},{"title":"Category-specific team challenge","prompt":"Fetch 10 hard multiple choice trivia questions specifically about History — encode them with url3986 so I can pass them through a URL-safe pipeline."}],"resultDescription":"Returns a JSON object with ok:true, the skill name 'opentdb-trivia', a charged:true flag indicating the x402 payment was processed, and a summary field. The actual trivia questions are expected in the response payload per OpenTDB's standard format (question text, correct answer, incorrect answers, category, difficulty, type).","failureModes":["Invalid category ID returns an error or empty results","Amount outside 1–50 range is rejected by schema validation","Invalid difficulty or type enum value causes a 400-level error","Payment failure via x402 results in a 402 response before questions are returned","Network timeout to upstream OpenTDB API causes a 5xx error","Unsupported encode value returns a validation error"],"whenToPreferThis":"Use this endpoint when you need on-demand trivia questions from the well-known OpenTDB database and are operating in an x402 micropayment-enabled environment. Prefer it over direct OpenTDB calls when you need metered, per-call billing integration or when building agents that manage costs via USDC micropayments. Best suited for quiz apps, game bots, educational tools, and entertainment agents needing structured trivia data.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-12-03T06:37:28.228Z","isFirstParty":false,"canonicalSlug":"opentdb-trivia-via-x402-d53456bb"}