{"uid":"cap_jMoyA7bn2850oznGDcqwC","slug":"web-traffic-secondary-measure-weighted-mean-9cc01178","name":"Web Traffic Secondary-Measure Weighted Mean","description":"Web traffic - Secondary-measure weighted mean: Secondary-measure weighted mean for Web traffic. Up to 200 supplied typed records. Local numeric and data-quality processing; no external enrichment or forecasting. One of 25 profiles or calculations across 20 shared operations in this sector. 0.01 USDC includes one bounded secondary-measure weighted mean deliverable.","url":"https://market.datapackvibe.com/x402/assistant-sector-analytics-web-traffic-weighted-average?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","channel","date","sessions","conversions"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"channel":{"type":"string","default":"","maxLength":80},"sessions":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"conversions":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","channel":"group-a","sessions":10,"conversions":1},{"date":"2026-10-02","row_id":"row-2","channel":"group-b","sessions":20,"conversions":2},{"date":"2026-10-03","row_id":"row-3","channel":"group-a","sessions":15,"conversions":3},{"date":"2026-10-04","row_id":"row-4","channel":"group-b","sessions":30,"conversions":4}],"maxItems":200,"minItems":1},"field":{"enum":["sessions","conversions"],"type":"string","default":"sessions"}}},"responseSchema":null,"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_dzkahuycQOZb5eTYcgREv","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":"Calculates a secondary-measure weighted mean (e.g. conversions-weighted sessions) across up to 200 web traffic records grouped by channel and date.","exampleAgentPrompt":"I have web traffic data for two channels over the past week — compute the secondary-measure weighted mean of sessions (weighted by conversions) across these rows: group-a on 2026-10-01 had 10 sessions and 1 conversion, group-b on 2026-10-02 had 20 sessions and 2 conversions, group-a on 2026-10-03 had 15 sessions and 3 conversions, and group-b on 2026-10-04 had 30 sessions and 4 conversions.","exampleUseCases":[{"title":"Conversion-weighted session average by channel","prompt":"I have daily session and conversion data for my paid and organic channels over the last month — can you compute the weighted mean of sessions using conversions as the weight across all those rows?"},{"title":"Comparing traffic quality across marketing groups","prompt":"I want to understand which marketing channels are driving the most valuable traffic — calculate the conversion-weighted mean of sessions for group-a and group-b using my last 30 days of data."},{"title":"Weekly report weighted traffic summary","prompt":"For my weekly analytics report, can you compute the secondary-measure weighted mean of conversions (weighted by sessions) across all our traffic rows from the past seven days?"}],"resultDescription":"Returns a single weighted mean value computed from the supplied web traffic records, where one numeric field (sessions or conversions) is weighted by the other secondary measure across all provided rows.","failureModes":["Empty or missing rows array returns validation error","Row count exceeding 200 items rejected","Invalid date format (not YYYY-MM-DD) causes schema validation failure","Null values in both sessions and conversions may produce undefined weighted mean","Missing required fields (row_id, channel, date) cause request rejection"],"whenToPreferThis":"Choose this endpoint when you have structured web traffic records with both sessions and conversions and need a statistically sound weighted average that accounts for traffic volume differences across channels or dates. Prefer this over simple arithmetic means when you want higher-traffic periods or channels to contribute proportionally more to the result.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-18T00:58:41.046Z","isFirstParty":false,"canonicalSlug":"web-traffic-secondary-measure-weighted-mean-9cc01178"}