{"uid":"cap_FZeatEbRu7qwq03KD6cL9","slug":"research-grant-spending-category-frequencies-secondary-measure-9ed9cf9a","name":"Research Grant Spending — Category Frequencies + Secondary-Measure Weighted Mean","description":"Research grant spending — Category frequencies + Secondary-measure weighted mean: Category frequencies + Secondary-measure weighted mean for supplied research grant spending records (budget_amount, spend_amount). 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-education-20-109?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"rows":{"type":"array","items":{"type":"object","required":["row_id","course_group","date","budget_amount","spend_amount"],"properties":{"date":{"type":"string","default":"","pattern":"^\\d{4}-\\d{2}-\\d{2}$","maxLength":10},"row_id":{"type":"string","default":"","maxLength":80,"minLength":1},"course_group":{"type":"string","default":"","maxLength":80},"spend_amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000},"budget_amount":{"type":["number","null"],"maximum":1000000000000,"minimum":-1000000000000}},"additionalProperties":false},"default":[{"date":"2026-10-01","row_id":"row-1","course_group":"group-a","spend_amount":1,"budget_amount":10},{"date":"2026-10-02","row_id":"row-2","course_group":"group-b","spend_amount":2,"budget_amount":20},{"date":"2026-10-03","row_id":"row-3","course_group":"group-a","spend_amount":3,"budget_amount":15},{"date":"2026-10-04","row_id":"row-4","course_group":"group-b","spend_amount":4,"budget_amount":30}],"maxItems":200,"minItems":1},"field":{"enum":["budget_amount","spend_amount"],"type":"string","default":"budget_amount"}}},"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_1AmlJu9mTszqr9d-aplLO","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 category frequency counts and a secondary-measure weighted mean for research grant spending records (budget_amount, spend_amount) over up to 200 rows.","exampleAgentPrompt":"I have 150 research grant spending records with fields row_id, course_group, date, budget_amount, and spend_amount — can you run category frequency counts on the course_group field and compute the spend_amount weighted mean for me in one call?","exampleUseCases":[{"title":"Grant budget allocation review","prompt":"I've got 80 research grant rows with course_group, budget_amount, and spend_amount for Q3 — can you count how often each course group appears and calculate the budget_amount weighted mean across all of them?"},{"title":"Education spend variance analysis","prompt":"Here are 120 education grant spending records. I need two things: the frequency of each course_group category, and the weighted mean of spend_amount using budget_amount as the weight — can you compute both at once?"},{"title":"Research program comparison summary","prompt":"I have grant data for 60 research programs, each with a course_group, a date, a budget_amount, and a spend_amount. Give me the category frequencies and the secondary-measure weighted mean on spend_amount so I can compare programs."}],"resultDescription":"Returns two reports: (1) category frequency counts showing how often each course_group value appears across the supplied rows, and (2) a secondary-measure weighted mean of the chosen field (budget_amount or spend_amount) using the other measure as the weight — all computed locally from supplied data with no external lookups.","failureModes":["Rows array empty or missing — rejected (minItems:1 enforced)","More than 200 rows supplied — request rejected (maxItems:200)","Invalid date format (not YYYY-MM-DD) — validation error","Missing required fields (row_id, course_group, date, budget_amount, spend_amount) — schema validation failure","Null values in both numeric fields for all rows — weighted mean may be undefined or zero","Payment of 0.01 USDC not provided — request blocked by x402 paywall"],"whenToPreferThis":"Choose this endpoint when you need both a categorical frequency breakdown and a weighted mean statistic on research grant spending data (budget_amount/spend_amount) in a single low-cost call. It is ideal for batch offline analysis of up to 200 grant records without needing a live data connection, prediction, or external service. Prefer alternatives if you need more than 200 rows, real-time data enrichment, forecasting, or more than these two specific analytics.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-24T12:53:52.882Z","isFirstParty":false,"canonicalSlug":"research-grant-spending-category-frequencies-secondary-measure-9ed9cf9a"}