{"uid":"cap_itFhPPBRURtkl9ghg4xv2","slug":"air-quality-observations-string-normalisation-secondary-measure-4a3d07b8","name":"Air Quality Observations — String Normalisation + Secondary-Measure Weighted Mean","description":"Air quality observations — String normalisation + Secondary-measure weighted mean: String normalisation + Secondary-measure weighted mean for supplied air quality observations records (concentration, observation_count). Up to 200 rows; 2 independent reports using shared local analytical engines. No live lookup, prediction, professional assessment or external action. 0.01 USDC includes 2 supplied-data reports for up to 200 rows.","url":"https://market.datapackvibe.com/x402/assistant-ib26-weather-10-034?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","station_group","date","concentration","observation_count"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"concentration":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"station_group":{"type":"string","default":"","maxLength":80},"observation_count":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","concentration":10,"station_group":"group-a","observation_count":1},{"date":"2026-10-02","row_id":"row-2","concentration":20,"station_group":"group-b","observation_count":2},{"date":"2026-10-03","row_id":"row-3","concentration":15,"station_group":"group-a","observation_count":3},{"date":"2026-10-04","row_id":"row-4","concentration":30,"station_group":"group-b","observation_count":4}],"maxItems":200,"minItems":1},"field":{"enum":["concentration","observation_count"],"type":"string","default":"concentration"}}},"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_ln46P879hZj-RUa9gqfiU","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":"Normalises station group strings and computes observation-count-weighted mean concentrations across up to 200 air quality observation rows.","exampleAgentPrompt":"I have a batch of air quality readings — can you normalise the station group names and compute the observation-count weighted mean concentration for these rows? Here are 4 records: row-1 on 2026-10-01 station group-a concentration 10 count 1, row-2 on 2026-10-02 station group-b concentration 20 count 2, row-3 on 2026-10-03 station group-a concentration 15 count 3, row-4 on 2026-10-04 station group-b concentration 30 count 4 — I want the weighted mean on the concentration field.","exampleUseCases":[{"title":"Pollution monitoring station aggregation","prompt":"I have 150 daily air quality readings from various monitoring stations with messy station group labels — can you normalise those string names and give me the observation-count weighted mean concentration across each group?"},{"title":"Environmental compliance data cleaning","prompt":"Our air quality dataset has inconsistent capitalisation and spacing in the station_group field. Can you clean those strings and compute the weighted average pollutant concentration using observation_count as the weight for all 80 rows?"},{"title":"Research dataset preprocessing","prompt":"Before I run my analysis I need to standardise the station group names in my air quality CSV and get a weighted mean of the concentration readings — the weights should be the observation_count column. There are about 60 rows total."}],"resultDescription":"Returns two analytical reports per call: (1) normalised/cleaned station_group string values for each input row, and (2) a secondary-measure weighted mean of the selected field (e.g. concentration) using observation_count as the weight, grouped or summarised across the supplied rows. Results are computed locally with no external lookups.","failureModes":["Missing required fields (row_id, station_group, date, concentration, observation_count) cause validation errors","Exceeding 200 rows returns an error or truncation","Invalid date format (not YYYY-MM-DD) fails schema validation","Null values in concentration or observation_count may affect weighted mean calculation","Invalid enum value for field parameter (only 'concentration' or 'observation_count' accepted)","Payment failure via x402 protocol results in no response"],"whenToPreferThis":"Choose this endpoint when you have a batch of air quality observation records (up to 200 rows) that need both string normalisation on station group labels AND a weighted mean computation in a single call. It is well-suited for lightweight, offline analytical preprocessing without any live data lookup, prediction, or external service dependency. Prefer it over general-purpose analytics tools when you want a low-cost ($0.01 USDC for two reports) turnkey solution scoped specifically to air quality observation schemas.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-31T00:42:32.440Z","isFirstParty":false,"canonicalSlug":"air-quality-observations-string-normalisation-secondary-measure-4a3d07b8"}