{"uid":"cap_nhK-Bw1K3-2urghGyRnHe","slug":"api-getsly-ai-df890538","name":"Sly Random Classical Poem","description":"Get a random classical poem (title, author, lines, line count) wrapped from poetrydb.org. Powered by Sly (https://getsly.ai).","url":"https://api.getsly.ai/x402/demo/poem","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","HEAD","DELETE"],"type":"string"}},"additionalProperties":true}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET"}},"response":{"_truncated":true,"_originalSize":28036}},"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_VdU1wwm3gAnvLr5MwqwA-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns a random classical poem (title, author, lines, and line count) sourced from PoetryDB, served via the Sly x402 micropayment gateway.","exampleAgentPrompt":"Can you grab me a random classical poem — something with the title, author, and full lines?","exampleUseCases":null,"resultDescription":"A JSON object containing the poem's title, author name, an array of lines, and a line count — sourced at random from the PoetryDB collection of classical poems.","failureModes":["Payment failure or insufficient USDC balance — x402 payment not accepted, returns 402 Payment Required","Upstream PoetryDB unavailability — gateway may return 502 or 503","Network timeout — no response from Sly gateway","Malformed request — missing required HTTP method field returns 400"],"whenToPreferThis":"Use this endpoint when you need a quick, random classical poem with structured metadata (title, author, lines, line count) and are operating in an x402 micropayment context. Ideal for creative inspiration, literary apps, or testing x402 payment flows at very low cost ($0.001 USDC per call).","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:38:47.000Z","isFirstParty":false}