Math & Statistics Calculator API for AI Agents
Exact arithmetic and statistics for AI agents and apps. Evaluate math expressions safely and get count, sum, mean, median, mode, variance and standard deviation for a list of numbers, so your LLM stops guessing the numbers.
價格
US$0.002 每次 calculation run. 透過你的 Apify 帳號按次計費,新帳號每月有免費額度。
範例
輸入:
{
"expressions": [
"2+3*4"
]
}
輸出:
{
"type": "expression",
"expression": "2+3*4",
"result": 14
}
用程式呼叫(API)
curl -X POST "https://api.apify.com/v2/acts/axzkhcYBuNggX5xpz/run-sync-get-dataset-items" \
-H "Authorization: Bearer $APIFY_TOKEN" -H "Content-Type: application/json" \
-d '{"expressions":["2+3*4"]}'