{"uid":"cap_bZblAaA4ZwCvEZZgaxg62","slug":"rate-limit-window-check-8f742051","name":"Rate Limit Window Check","description":"Rate Limit Window Check: Rate Limit Window Check checks remaining quota against reset timing and requested calls from bounded caller-supplied values without an external provider. Call Rate Limit Window Check before accepting, caching, redirecting, or retrying a caller-supplied web response. Returns normalized web evidence, the computed finding, and an explicit pass or advisory status for Rate Limit Window Check as versioned deterministic JSON. Price: $0.001 USDC via x402 on Base. First-party, s…","url":"https://api.delx.ai/api/v1/x402/rate-limit-window-check?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"now_epoch":{"type":"integer","description":"Now Epoch supplied to Rate Limit Window Check; used only for this bounded calculation and processed in memory without retention."},"remaining":{"type":"integer","description":"Remaining supplied to Rate Limit Window Check; used only for this bounded calculation and processed in memory without retention."},"requested":{"type":"integer","description":"Requested supplied to Rate Limit Window Check; used only for this bounded calculation and processed in memory without retention."},"reset_epoch":{"type":"integer","description":"Reset Epoch supplied to Rate Limit Window Check; used only for this bounded calculation and processed in memory without retention."}}},"responseSchema":{"type":"json","example":{"result":{"deficit":0,"within_quota":true,"reset_in_seconds":60},"schema":"delx/util-rate-limit-window-check/v1","status":"pass","evidence":{"retained":false,"input_sha256":"e12bef43e7d52fe13e28d9a9200483561a533bc0eed1e48f817303d9e23b66ee","external_calls":0},"operation":"web_reliability:rate_limit_window_check"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","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.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_gEHjPASyW53jfK_LCZBeI","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":"Checks whether a caller has sufficient remaining quota to fulfill a requested number of API calls given the current time and the rate limit reset epoch, returning a deterministic pass/advisory verdict.","exampleAgentPrompt":"Before I send those 50 requests, check if my rate limit window has enough headroom — I have 30 calls remaining, I want to send 50, the rate limit resets at epoch 1720000000, and the current time is epoch 1719996400.","exampleUseCases":[{"title":"Pre-flight quota check before burst","prompt":"I'm about to fire off 20 API calls but I only have 15 remaining in my quota. My rate limit resets at epoch 1720005000 and it's currently epoch 1719999000 — can you check if I should wait or proceed?"},{"title":"Retry decision after failed request","prompt":"My last request got rate-limited. I have 0 calls remaining, I want to retry 1 call, the reset epoch is 1720010000, and right now it's epoch 1720009500 — check if it's safe to retry yet or if I need to wait."},{"title":"Scheduled batch job gate check","prompt":"Before my scheduled batch job kicks off, check my rate limit window: I have 500 remaining quota, I need 480 calls, current epoch is 1720020000, and the reset is at epoch 1720025000 — give me a pass or advisory."}],"resultDescription":"Returns versioned deterministic JSON containing: normalized web evidence used in the check, the computed finding (e.g. whether remaining quota covers requested calls relative to reset timing), and an explicit pass or advisory status indicating whether the caller should proceed or hold off.","failureModes":["Missing or invalid input fields (now_epoch, remaining, requested, reset_epoch) result in a validation error","Non-integer values for epoch or count fields cause rejection","Payment failure via x402 prevents the check from executing","reset_epoch in the past may yield edge-case advisory results"],"whenToPreferThis":"Use this endpoint when an agent needs a deterministic, in-memory quota gate before accepting, caching, redirecting, or retrying outbound calls — especially in agentic pipelines where rate limit logic must be auditable and stateless. Prefer this over ad-hoc client-side quota math when you need a versioned, normalized JSON verdict with explicit pass/advisory output that downstream decision logic can reliably branch on.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-19T18:43:15.483Z","isFirstParty":false,"canonicalSlug":"rate-limit-window-check-8f742051"}