{"uid":"cap_vonafNl56HRvZ_LHrvsoh","slug":"one-engine-array-chunk-b6b04367","name":"ONE Engine Array Chunk","description":"Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.","url":"https://one-search.one-engine.workers.dev/v1/array/chunk?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"size":{"type":"integer","maximum":1000,"minimum":1},"values":{"type":"array"}}},"responseSchema":{"type":"json","example":{"count":3,"chunks":[[1,2],[3,4],[5]]}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.0011","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.0011/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0011","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.0011","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_pLiEfVfA3cTXQ8-ZVj037","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.0011","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Splits an array into fixed-size chunks, returning a list of sub-arrays and a count of how many chunks were produced.","exampleAgentPrompt":"Split this list of 500 product IDs into chunks of 100 each so I can process them in batches: [1, 2, 3, ... 500].","exampleUseCases":[{"title":"Batch API calls from large list","prompt":"I have a list of 300 user IDs and I need to call a downstream API that only accepts 50 at a time — can you chunk the list into groups of 50 for me?"},{"title":"Paginate data for display","prompt":"Take this array of 120 search results and split it into pages of 20 items each so I can show them one page at a time."},{"title":"Parallel task distribution","prompt":"I've got 80 image URLs I want to process in parallel across 4 workers — split them into chunks of 20 so each worker gets an equal share."}],"resultDescription":"Returns a JSON object with a 'count' field (number of chunks produced) and a 'chunks' field (array of sub-arrays, each containing at most 'size' elements from the input).","failureModes":["Invalid chunk size (less than 1 or greater than 1000) returns a validation error","Empty or missing 'values' array may return an empty chunks result or error","Payment failure via x402 if USDC balance is insufficient","Non-array value for 'values' field causes schema validation error"],"whenToPreferThis":"Choose this endpoint when an AI agent needs a simple, cheap, stateless utility to split arrays into fixed-size sub-arrays without running custom code. At $0.0011 per call it's cost-effective for high-frequency agent pipelines needing reliable batching logic without spinning up compute.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-02T12:43:32.308Z","isFirstParty":false,"canonicalSlug":"one-engine-array-chunk-b6b04367"}