{"uid":"cap_GeYU_3xR1FR8l5UxPX3Uh","slug":"polypulse-polymarket-markets-closing-soon-831bac64","name":"PolyPulse: Polymarket Markets Closing Soon","description":"Live Polymarket prediction-market data for AI agents: markets closing soon, biggest movers, top by volume ($0.01 each) and a one-call cross-market digest ($0.02). USDC via x402 on Base.","url":"https://api.polypulse-x402.workers.dev/v1/markets/closing-soon?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","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","properties":{"days":{"type":"integer","default":7,"maximum":30,"minimum":1},"limit":{"type":"integer","default":15,"maximum":50,"minimum":1},"min_volume":{"type":"number","default":1000,"minimum":0,"description":"minimum 24h volume (USD)"},"include_settled":{"type":"boolean","default":false}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"count":1,"source":"Polymarket Gamma API (live, cached <=60s)","markets":[{"url":"https://polymarket.com/event/nfl-pit-cle-2026-10-02","event":"Steelers vs. Browns","spread":0.01,"best_ask":0.58,"best_bid":0.57,"end_date":"2026-10-02T00:15:00Z","outcomes":{"Browns":0.425,"Steelers":0.575},"question":"Steelers vs. Browns","change_1h":0,"yes_price":0.575,"change_24h":0.02,"liquidity_usd":3447209,"volume_24h_usd":516719}],"generated_at":"2026-10-01T15:00:00Z"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_oaK3uO6fk93pBC1bJoqpk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Returns live Polymarket prediction markets that are closing within a specified number of days, filtered by volume, with current odds and price movement data.","exampleAgentPrompt":"Show me Polymarket prediction markets closing in the next 3 days that have at least $5,000 in 24-hour volume — give me the current odds, price changes, and links.","exampleUseCases":[{"title":"Sports betting opportunity scanner","prompt":"Which Polymarket sports markets are closing in the next 2 days and have moved more than 2 cents in the last 24 hours? Show me the current odds and liquidity."},{"title":"Daily prediction market briefing","prompt":"Give me a summary of the top 10 Polymarket markets closing this week, filtered to those with at least $2,000 in daily volume — I want the question, current yes price, and how much it's moved today."},{"title":"Crypto event expiry tracker","prompt":"Are there any Polymarket markets related to crypto or blockchain events closing in the next 5 days? Show me with a minimum volume of $1,000 and include their current bid/ask prices."}],"resultDescription":"A JSON object containing a list of Polymarket markets closing within the specified window, each with the event name, market question, yes/no outcome probabilities, best bid/ask prices, spread, 24h and 1h price changes, 24h USD volume, liquidity in USD, closing date/time, and a direct Polymarket URL. Also includes total count, data source attribution, and a generated_at timestamp. Data is live from the Polymarket Gamma API, cached up to 60 seconds.","failureModes":["Payment failure if USDC balance insufficient or x402 header malformed — returns 402 Payment Required","Polymarket Gamma API downtime causes stale or missing data — response may reflect cached data up to 60s old","Invalid query parameter values (e.g. days > 30, limit > 50) return 400 Bad Request","No markets match the filter criteria — returns empty markets array with count 0","Network timeout on the Cloudflare Workers edge — returns 5xx error"],"whenToPreferThis":"Use this endpoint when you specifically need prediction markets that are approaching resolution, enabling time-sensitive analysis, arbitrage detection, or last-minute odds monitoring. Prefer this over the volume or movers endpoints when expiry timing is the primary filter criterion. Best for agents that need to act on markets before they settle rather than simply track the most popular or fastest-moving ones.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:34:57.034Z","isFirstParty":false,"canonicalSlug":"polypulse-polymarket-markets-closing-soon-831bac64"}