{"uid":"cap_dT-xlRcBF1jOwkRDY5vJC","slug":"halowerk-price-history-median-drop-detector-8dfaf0d9","name":"HALOWERK Price History Median Drop Detector","description":"HALOWERK handelswerk — bezahlte Endpunkte nach x402. Preise in USDC auf Base Mainnet.","url":"https://handel.halowerk.com/v1/price/articles/history-median-drop?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048},"history":{"type":"array","items":{"type":"object","required":["url","observed_at","value","currency"],"properties":{"url":{"type":"string","maxLength":2048},"value":{"type":"number","maximum":1000000000,"minimum":0},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"observed_at":{"type":"string","maxLength":40}},"additionalProperties":false},"maxItems":60,"minItems":3},"previous":{"type":"object","required":["value","currency"],"properties":{"value":{"type":"number","maximum":1000000000,"minimum":0},"currency":{"type":"string","pattern":"^[A-Z]{3}$"}},"additionalProperties":false},"callback_url":{"type":"string","maxLength":2048},"drop_percent":{"type":"number","maximum":100,"exclusiveMinimum":0},"idempotency_key":{"type":"string","pattern":"^[A-Za-z0-9_-]+$","maxLength":128,"minLength":32}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.007","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.007/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.007","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.007","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ZiNedKciIXxytW32wSeHJ","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.007","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Analyzes a product's price history to compute the median price and detect whether a significant price drop has occurred relative to a previous price or a specified drop threshold.","exampleAgentPrompt":"Look at this product's price history — I have 10 observations over the last 3 months for https://shop.example.com/product/42, the previous price was 89.99 USD, and I want to know if the current price represents a drop of more than 15% from the median. Can you run the median drop analysis?","exampleUseCases":[{"title":"E-commerce deal alert validation","prompt":"I'm tracking this product at https://store.example.com/item/sneakers-pro — here are 8 price observations over the past 60 days in USD, the most recent listed price is 59.99 USD, and I need to know if that's more than 20% below the historical median so I can trigger a deal alert."},{"title":"Repricing sanity check for marketplace seller","prompt":"Before I reprice this listing to 34.50 EUR, can you check my last 5 observed prices for https://marketplace.example.com/listing/789 against the median and tell me if my new price would count as a significant drop — say beyond 10%?"},{"title":"Automated price-drop notification pipeline","prompt":"I'm building a price-drop bot — given this 12-entry price history in GBP for https://retailer.example.com/widget, with a previous price of 120 GBP, fire off an analysis and post the result to my webhook at https://hooks.myapp.com/price-alerts when it detects a drop over 25%."}],"resultDescription":"Returns a JSON object containing the computed median price from the supplied history, an indicator of whether a significant price drop was detected relative to the previous price and/or specified drop_percent threshold, the magnitude of the drop, and relevant currency information. If a callback_url was provided, the result may also be delivered asynchronously to that endpoint.","failureModes":["Fewer than 3 history items supplied — minimum minItems:3 validation error","Currency code not matching 3-letter ISO format — pattern validation failure","Observed_at timestamps malformed or too long (>40 chars)","Price values exceeding maximum of 1,000,000,000 or negative — schema validation error","drop_percent set to 0 or negative — exclusiveMinimum violation","Idempotency key too short (<32 chars) or contains invalid characters","Payment not provided or insufficient USDC on Base Mainnet — HTTP 402 response","callback_url unreachable or malformed — async delivery failure"],"whenToPreferThis":"Choose this endpoint when you have a structured price history series (at least 3 observations) for a specific product URL and need to compute the historical median and programmatically detect whether a price drop of a given magnitude has occurred. It is particularly useful in automated deal-detection pipelines, repricing validation workflows, and price-alert systems where you want a statistically grounded drop signal rather than a simple point-to-point comparison. Prefer it over simple delta comparisons when you need median-based robustness against price outliers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-10T12:30:02.357Z","isFirstParty":false,"canonicalSlug":"halowerk-price-history-median-drop-detector-8dfaf0d9"}