{"uid":"cap_SKZUluVESKbVUpyUOgJVj","slug":"air-quality-observations-secondary-measure-weighted-mean-95c824ae","name":"Air Quality Observations – Secondary-Measure Weighted Mean","description":"Air quality observations - Secondary-measure weighted mean: Secondary-measure weighted mean for Air quality observations. Up to 200 supplied typed records. Local descriptive analytics; no enrichment or forecast. One of 25 new profiles across 20 shared operations in this industry. 0.01 USDC includes one bounded secondary-measure weighted mean report.","url":"https://market.datapackvibe.com/x402/assistant-ar-analytics-air-quality-observations-weighted-average?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","station","date","pm25","humidity_percent"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"pm25":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"station":{"type":"string","default":"","maxLength":80},"humidity_percent":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","pm25":10,"row_id":"row-1","station":"group-a","humidity_percent":1},{"date":"2026-10-02","pm25":20,"row_id":"row-2","station":"group-b","humidity_percent":2},{"date":"2026-10-03","pm25":15,"row_id":"row-3","station":"group-a","humidity_percent":3},{"date":"2026-10-04","pm25":30,"row_id":"row-4","station":"group-b","humidity_percent":4}],"maxItems":200,"minItems":1},"field":{"enum":["pm25","humidity_percent"],"type":"string","default":"pm25"}}},"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_Nxj0N12TZAUf-UFlGU4Is","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":"Computes a secondary-measure weighted mean over up to 200 air quality observation records (PM2.5 and humidity), returning a local descriptive statistic with no enrichment or forecasting.","exampleAgentPrompt":"Can you compute the humidity-weighted mean of PM2.5 readings for these 4 air quality station records: station group-a on 2026-10-01 had PM2.5=10 and humidity=1%, group-b on 2026-10-02 had PM2.5=20 and humidity=2%, group-a on 2026-10-03 had PM2.5=15 and humidity=3%, and group-b on 2026-10-04 had PM2.5=30 and humidity=4%? Use pm25 as the target field.","exampleUseCases":[{"title":"Daily PM2.5 station summary","prompt":"I have a week of PM2.5 readings from two monitoring stations with humidity values for each day — can you calculate the humidity-weighted mean of PM2.5 across all those records so I can see the weighted average air quality level?"},{"title":"Humidity-weighted air quality comparison","prompt":"Here are 50 air quality observations from our sensor network, each with a PM2.5 value and a humidity percentage. Compute the secondary-measure weighted mean using humidity as the weight and PM2.5 as the target field."},{"title":"Environmental compliance data rollup","prompt":"I need a single weighted-average PM2.5 figure for our compliance report — I have 120 daily station readings with corresponding humidity percentages. Can you run the weighted mean calculation on the pm25 field weighted by humidity_percent?"}],"resultDescription":"A secondary-measure weighted mean report for the supplied air quality records — a single computed weighted-average value for the selected field (PM2.5 or humidity), weighted by the corresponding secondary measure, derived from up to 200 typed observation rows. No external enrichment or forecasting is included.","failureModes":["Fewer than 1 row supplied — returns validation error","More than 200 rows supplied — exceeds maxItems limit","Invalid date format (not YYYY-MM-DD) — schema pattern mismatch","Missing required fields (row_id, station, date, pm25, humidity_percent) — validation failure","Null values for all rows in the selected field — may produce undefined or null result","Invalid field enum value (not 'pm25' or 'humidity_percent') — rejected by schema","Payment not provided or insufficient USDC — 402 payment required error"],"whenToPreferThis":"Choose this endpoint when you have a batch of air quality observation records (up to 200) and need a local, statistically sound weighted-mean summary using one measure as the weight and the other as the target, without requiring external data enrichment, forecasting, or cross-dataset joins. Ideal for compliance reporting, sensor network rollups, or descriptive analytics pipelines where PM2.5 or humidity weighted averages are the desired output.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T12:58:23.704Z","isFirstParty":false,"canonicalSlug":"air-quality-observations-secondary-measure-weighted-mean-95c824ae"}