{"uid":"cap_t3c-xQyG3d2_mPnkoDtZb","slug":"brainiac-agriculture-intelligence-commodity-price-series-normalize-ecfefa53","name":"BRAINIAC Agriculture Intelligence — Commodity Price Series Normalize","description":"Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.","url":"https://www.brainiac.software/api/v1/agriculture-intelligence/commodity-price-series-normalize?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"csv":{"type":"string","maxLength":200000},"asOf":{"type":"string","maxLength":40},"file":{"type":"object","required":["fileBase64"],"properties":{"role":{"type":"string","maxLength":80},"filename":{"type":"string","maxLength":180,"minLength":1},"mediaType":{"enum":["text/plain","text/csv","application/json","application/octet-stream"],"type":"string"},"fileBase64":{"type":"string","maxLength":12000000,"minLength":1}},"additionalProperties":false},"json":{"type":"string","maxLength":200000},"text":{"type":"string","maxLength":200000},"files":{"type":"array","items":{"type":"object","required":["fileBase64"],"properties":{"role":{"type":"string","maxLength":80},"filename":{"type":"string","maxLength":180,"minLength":1},"mediaType":{"enum":["text/plain","text/csv","application/json","application/octet-stream"],"type":"string"},"fileBase64":{"type":"string","maxLength":12000000,"minLength":1}},"additionalProperties":false},"maxItems":20},"fields":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"crop":{"type":"string","maxLength":80},"region":{"type":"string","maxLength":120},"source":{"type":"string","maxLength":200},"fieldId":{"type":"string","maxLength":80},"variety":{"type":"string","maxLength":120},"hectares":{"type":"number","maximum":1000000,"minimum":0},"plantedAt":{"type":"string","maxLength":40},"latitudeDeg":{"type":"number","maximum":90,"minimum":-90},"longitudeDeg":{"type":"number","maximum":180,"minimum":-180},"expectedHarvestAt":{"type":"string","maxLength":40}},"additionalProperties":false},"maxItems":2000},"prices":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","maxLength":40},"id":{"type":"string","maxLength":80},"side":{"enum":["spot","futures","basis","left","right","a","b"],"type":"string"},"unit":{"type":"string","maxLength":40},"price":{"type":"number","maximum":1000000000,"minimum":0},"market":{"type":"string","maxLength":80},"source":{"type":"string","maxLength":200},"symbol":{"type":"string","maxLength":40},"currency":{"type":"string","maxLength":12},"commodity":{"type":"string","maxLength":80}},"additionalProperties":false},"maxItems":10000},"yields":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"crop":{"type":"string","maxLength":80},"unit":{"type":"string","maxLength":40},"source":{"type":"string","maxLength":200},"fieldId":{"type":"string","maxLength":80},"hectares":{"type":"number","maximum":1000000,"minimum":0},"expectedYieldPerHa":{"type":"number","maximum":1000000,"minimum":0},"weatherStressFactor":{"type":"number","maximum":5,"minimum":0},"historicalYieldPerHa":{"type":"number","maximum":1000000,"minimum":0}},"additionalProperties":false},"maxItems":2000},"weather":{"type":"array","items":{"type":"object","properties":{"at":{"type":"string","maxLength":40},"id":{"type":"string","maxLength":80},"crop":{"type":"string","maxLength":80},"frost":{"type":"boolean"},"source":{"type":"string","maxLength":200},"fieldId":{"type":"string","maxLength":80},"periodEnd":{"type":"string","maxLength":40},"droughtDays":{"type":"number","maximum":3650,"minimum":0},"humidityPct":{"type":"number","maximum":100,"minimum":0},"periodStart":{"type":"string","maxLength":40},"windSpeedMs":{"type":"number","maximum":200,"minimum":0},"temperatureC":{"type":"number","maximum":80,"minimum":-80},"precipitationMm":{"type":"number","maximum":2000,"minimum":0}},"additionalProperties":false},"maxItems":5000},"calendars":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"crop":{"type":"string","maxLength":80},"stage":{"type":"string","maxLength":80},"region":{"type":"string","maxLength":120},"source":{"type":"string","maxLength":200},"eventAt":{"type":"string","maxLength":40},"windowEnd":{"type":"string","maxLength":40},"windowStart":{"type":"string","maxLength":40}},"additionalProperties":false},"maxItems":2000},"grainLots":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"grade":{"type":"string","maxLength":40},"lotId":{"type":"string","maxLength":80},"source":{"type":"string","maxLength":200},"commodity":{"type":"string","maxLength":80},"damagePct":{"type":"number","maximum":100,"minimum":0},"proteinPct":{"type":"number","maximum":100,"minimum":0},"testWeight":{"type":"number","maximum":1000,"minimum":0},"moisturePct":{"type":"number","maximum":100,"minimum":0},"foreignMaterialPct":{"type":"number","maximum":100,"minimum":0}},"additionalProperties":false},"maxItems":2000},"openMeteo":{"type":"object","required":["latitudeDeg","longitudeDeg"],"properties":{"crop":{"type":"string","maxLength":80},"days":{"type":"integer","maximum":16,"minimum":1},"start":{"type":"string","maxLength":40},"fieldId":{"type":"string","maxLength":80},"latitudeDeg":{"type":"number","maximum":90,"minimum":-90},"longitudeDeg":{"type":"number","maximum":180,"minimum":-180}},"additionalProperties":false},"worldBank":{"type":"object","required":["country","indicator"],"properties":{"country":{"type":"string","maxLength":3,"minLength":2},"perPage":{"type":"integer","maximum":100,"minimum":1},"commodity":{"type":"string","maxLength":80},"indicator":{"type":"string","maxLength":80,"minLength":2}},"additionalProperties":false},"grainSpecs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"source":{"type":"string","maxLength":200},"commodity":{"type":"string","maxLength":80},"maxDamagePct":{"type":"number","maximum":100,"minimum":0},"minProteinPct":{"type":"number","maximum":100,"minimum":0},"minTestWeight":{"type":"number","maximum":1000,"minimum":0},"requiredGrade":{"type":"string","maxLength":40},"maxMoisturePct":{"type":"number","maximum":100,"minimum":0},"maxForeignMaterialPct":{"type":"number","maximum":100,"minimum":0}},"additionalProperties":false},"maxItems":500},"inputCosts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"name":{"type":"string","maxLength":120},"side":{"enum":["left","right","a","b","prior","current"],"type":"string"},"unit":{"type":"string","maxLength":40},"source":{"type":"string","maxLength":200},"product":{"type":"string","maxLength":120},"category":{"enum":["fertilizer","seed","chemical","fuel","labor","other"],"type":"string"},"currency":{"type":"string","maxLength":12},"hectares":{"type":"number","maximum":1000000,"minimum":0},"nutrient":{"type":"string","maxLength":40},"ratePerHa":{"type":"number","maximum":1000000,"minimum":0},"pricePerUnit":{"type":"number","maximum":1000000,"minimum":0}},"additionalProperties":false},"maxItems":5000},"excessRainMm":{"type":"number","maximum":2000,"minimum":1},"evidenceItems":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":80},"crop":{"type":"string","maxLength":80},"label":{"type":"string","maxLength":200},"source":{"type":"string","maxLength":200},"fieldId":{"type":"string","maxLength":80},"present":{"type":"boolean"}},"additionalProperties":false},"maxItems":500},"frostThresholdC":{"type":"number","maximum":10,"minimum":-40},"requiredEvidence":{"type":"array","items":{"type":"string","maxLength":200},"maxItems":100},"droughtThresholdDays":{"type":"number","maximum":365,"minimum":1}}},"responseSchema":{"type":"json","example":{"items":[{"at":"2026-11-01","id":"P1","side":"spot","unit":"USD/bu","price":4.55,"market":"CBOT-style caller feed","source":"Caller-supplied","symbol":"C","currency":"USD","commodity":"corn","priceSupplied":true,"paidCommodityFeedUsed":false},{"at":"2026-11-02","id":"P2","side":"spot","unit":"USD/bu","price":4.62,"market":"CBOT-style caller feed","source":"Caller-supplied","symbol":"C","currency":"USD","commodity":"corn","priceSupplied":true,"paidCommodityFeedUsed":false}],"status":"normalized","findings":[],"checkedAt":"2026-11-04T21:00:00.000Z","priceCount":2,"limitations":["Agricultural fields, weather, calendars, yields, commodity prices, input costs, grain lots/specs, and insurance evidence are copied only from labeled fields supplied by the caller, or from key-free Open-Meteo / World Bank Open Data when explicitly requested.","No paid commodity feed or authenticated agricultural platform is used and no API key is required.","Missing values are not invented. Yield and cost calculations use only supplied quantities, rates, prices, and optional stress factors.","Crop calendars are validated against caller-supplied windows only—not regulatory planting mandates.","Market-risk reports aggregate only sections for which records were supplied or optionally fetched."],"apiKeyRequired":false,"openMeteoFetched":false,"paidProviderUsed":false,"worldBankFetched":false,"paidCommodityFeedUsed":false}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.03","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.03/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.03","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Q1ZQeOLBcRm4eWje2Pe2s","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.03","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Normalizes and standardizes a time-series of agricultural commodity prices supplied by the caller into a consistent, structured format.","exampleAgentPrompt":"I have a CSV of daily corn spot prices in USD/bu from my own feed spanning November 2026 — can you normalize and standardize that price series so each record has consistent commodity, symbol, currency, and market fields?","exampleUseCases":[{"title":"Harmonize multi-source grain price feeds","prompt":"I have two JSON arrays of wheat prices — one spot from a local elevator and one CBOT futures — both in USD/bu. Can you normalize them together into a single consistent price series with proper side labels and commodity metadata?"},{"title":"Clean CSV price data for farm risk report","prompt":"Here's a CSV of soybean spot prices I exported from my trading platform for the past 30 days. Please normalize it so each row has a standard commodity name, symbol, currency, and unit before I feed it into my farm risk model."},{"title":"Validate and structure corn price time series","prompt":"I've got a JSON blob of daily corn prices with inconsistent field names and mixed units — some in cents per bushel, some in USD. Normalize the whole series as of today's date so everything is in a consistent format I can trust."}],"resultDescription":"Returns a JSON object with an 'items' array of normalized price records, each containing standardized fields: at (date), id, side (spot/futures/basis), unit, price, market, source, symbol, currency, commodity, priceSupplied flag, and paidCommodityFeedUsed flag. Also includes status ('normalized'), a findings array, checkedAt timestamp, priceCount, and a limitations list clarifying what data sources were and were not used.","failureModes":["Malformed or unparseable CSV/JSON input returns an error or empty items","Prices outside the allowed range (0–1,000,000,000) are rejected","Missing required price fields result in items being flagged or omitted","Exceeding maxItems (2000 price records) or maxLength constraints causes rejection","No external paid commodity feed is used, so enrichment beyond caller-supplied data is not performed","If asOf date is malformed the normalization reference point may be undefined"],"whenToPreferThis":"Choose this endpoint when you have caller-supplied commodity price time-series data (CSV, JSON, or structured records) that needs normalization and standardization into a consistent schema before downstream analysis or reporting. It is ideal when you do not need a live price feed — only your own price data is processed. Prefer this over general-purpose data transformation tools when agricultural commodity context (crop, side, unit, market) is important for the output structure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-12T12:36:28.239Z","isFirstParty":false,"canonicalSlug":"brainiac-agriculture-intelligence-commodity-price-series-normalize-ecfefa53"}